Hot answers tagged

45 votes

Change style properties of several layers simultaneously?

This works for QGIS 3.4 => Create a group of all the layers you want to have the same style Edit the style of one of the layers in the group to your liking Right-click the correctly styled layer; '...
GISinHelsinki's user avatar
36 votes

Missing Processing Tools in Vector Menu of QGIS

According to https://hub.qgis.org/issues/15265, the GDAL tools might get lost if you have the processing tools installed as an external plugin. Since some time, it has become a core plugin, so no ...
AndreJ's user avatar
  • 76.3k
26 votes
Accepted

Missing Processing Tools in Vector Menu of QGIS

I had the same issue, first thought it was intentional, but discovered if you delete the .qgis2 directory from user account this fixes the problem. See https://hub.qgis.org/issues/15265
Geoffrey Sinclair's user avatar
26 votes

Missing Processing Tools in Vector Menu of QGIS

The fTools plugin offered these menus and it has been removed from QGIS and is replaced with the processing plugin. Just enable the processing plugin and the menu will be back. Note that you can go ...
Matthias Kuhn's user avatar
17 votes

Missing Processing Tools in Vector Menu of QGIS

In my case deactivating and then reactivating the processing plugin in Plugins -> Manage and Install Plugins fixed the issue. Everything is back on my Vector menu.
ePoQ's user avatar
  • 581
16 votes
Accepted

Assigning shortcut to PyQGIS script in QGIS

This is an example of how to open the Processing "Join attributes" algorithm by pressing Ctrl + Shift + 1 (you can copy and paste it into the QGIS Python console): For QGIS v3.x # Function ...
Germán Carrillo's user avatar
15 votes

Displaying QGIS attribute table on the right

Agree with @JochenSchwarze that it makes sense to have it (and thanks for making it a feature request). Saying that, it is possible to do it with a bit of Python. Make sure the Open attribute table ...
Joseph's user avatar
  • 75k
13 votes
Accepted

Deploying QGIS settings in an enterprise environment

Sure is. QGIS stores stuff in two places: {USERHOME}.qgis2 Registry (Windows) | .config (Linux) .qgis2 is for all templates, plugins, python code, processing models, etc However you can also use ...
Nathan W's user avatar
  • 34.6k
13 votes
Accepted

How to flash selected feature using pyqgis?

We can build a flashFeatures method in this way (give it a try in the QGIS Python Console): from qgis.gui import QgsHighlight from PyQt4.QtCore import QTimer from PyQt4.QtGui import QColor timer = ...
Germán Carrillo's user avatar
12 votes

Missing Processing Tools in Vector Menu of QGIS

I had this problem in QGIS 3.8. I just went into manage and install plugins searched for processing, which is a core plugin. I unclicked this to disable the plugin and then reclicked to enable. This ...
Mxblsdl's user avatar
  • 309
12 votes

How to flash selected feature using pyqgis?

In 3.0 you can use QGIS's built in flashFeatureIds method on MapCanvas objects canvas = iface.mapCanvas() layer = iface.activeLayer() my_features_ids = [42, 43, 45] canvas.flashFeatureIds(layer, ...
Jared Khan's user avatar
11 votes
Accepted

Launching Processing tool User Interface using PyQGIS

You can do that from the QGIS Python console in this way: # Import both Processing and CommanderWindow # classes from the Processing framework. from processing.core.Processing import Processing ...
Germán Carrillo's user avatar
11 votes

Is it possible to arrange multiple attribute tables in tabs in QGIS?

Starting from QGIS 3.14, they will open as tabs by default. If the option "Open new attribute tables as dock windows" is active, new attribute tables will be open as tabs on top of other ...
Kadir Şahbaz's user avatar
11 votes
Accepted

QComboBox multiple selection - PyQT5

For anyone interested, here is an implementation of a CheckableComboBox. class CheckableComboBox(QComboBox): # Subclass Delegate to increase item height class Delegate(QStyledItemDelegate): ...
Yoann Quenach de Quivillic's user avatar
10 votes

Is it possible to "crack open" the QGIS GUI to see what coding commands are executed whilst working?

QGIS is open source, so you can always see what its doing. The source code is here: https://github.com/qgis/QGIS if you follow the instructions to build QGIS from source then you can run it with a ...
Spacedman's user avatar
  • 61.6k
10 votes
Accepted

Interactive cursor to know coordinates (latitude and longitude) in boundary layer in QGIS

QGIS already shows the coordinates at the bottom of the screen when the cursor moves. See for more details: https://docs.qgis.org/testing/en/docs/user_manual/introduction/qgis_gui.html#control-the-...
Noura's user avatar
  • 3,369
10 votes
Accepted

Docking Results window on right side of another ArcMap window

Drag the window and drop onto the indicator. Click the "Pin" button at the top right of the window.
Kadir Şahbaz's user avatar
9 votes
Accepted

QGIS on UHD screen

As @Dave Pitman points out in his answer, that a user, Stu Smith, got the manifest hack to work. I actually got it to work too. Follow the instructions using the link: http://www.danantonielli.com/...
ccoder83's user avatar
  • 206
9 votes
Accepted

Where are the button icons stored in QGIS?

They are being packed into the application during the compilation phase. You can find them at the source unpacked: https://github.com/qgis/QGIS/tree/master/images/themes/default Edit: QGis 2.12 ...
nickves's user avatar
  • 11.5k
9 votes
Accepted

Add Help Menu entry in QGIS 3 from `startup.py`

Great idea you need place startup.py in C:\Users\<username>\AppData\Roaming\QGIS\QGIS3 and add missing import ,and voilá from qgis.utils import iface from PyQt5.QtWidgets import QAction import ...
Fran Raga's user avatar
  • 7,780
8 votes
Accepted

Why does the Select by expression dialog not show field values?

The information you are looking for is hidden in a panel that is collapsed/minimized on the right-hand side of the dialog. Here's how you can access it:
underdark's user avatar
  • 83.7k
8 votes
Accepted

Opening embedded canvas in new window with all layers

Review this script. It creates a new QMainWindow and moves the existing map canvas to that window. I've made some changes. Firstly, add a file path (to QgsVectorLayer) to be displayed in map canvas. ...
Kadir Şahbaz's user avatar
7 votes

Displaying QGIS attribute table on the right

Seems impossible at the moment. But I strongly agree that it makes sense. I have just started a feature request in the QGIS issue tracker https://hub.qgis.org/issues/14941
Jochen Schwarze's user avatar
7 votes
Accepted

Is it possible to arrange multiple attribute tables in tabs in QGIS?

You put the attribute table into a dock widget in settings => options => data sources. Docks can easily be stacked as tabs. There is still a manual process to it to stack the two tables. As far as I ...
Matthias Kuhn's user avatar
7 votes
Accepted

How to display QGIS "processing ..." bar from a plugin?

Create bar: bar = QProgressBar() Set range from 0 to 0: bar.setRange(0,0) And now you have: Just set normal values like (0,100) if you want to end this "busy" state. If you want to place this ...
dmh126's user avatar
  • 6,622
7 votes
Accepted

customizing QGIS Layers Panel to show layer CRS next to layer name

You could use something like this once your layers have been loaded into QGIS: for layer in QgsMapLayerRegistry.instance().mapLayers().values(): crs = layer.crs().authid() layer....
Joseph's user avatar
  • 75k
7 votes
Accepted

Create 2nd UI Window for Qgis 3.0 Plugin

You can use qt designer for creating second gui. Follow the steps mentioned below Goto start menu and search Qt Designer. Start Qt Designer and make the second UI. Save this UI to the path of your ...
Asad Abbas's user avatar
  • 1,634
7 votes
Accepted

PyQGIS custom application: no GUI appearing

Any GUI doesn't appear when using PyQGIS standalone application. You have to construct it. Here is an example: from qgis.core import * from qgis.gui import * from qgis.PyQt.QtWidgets import * ### GUI ...
Kadir Şahbaz's user avatar
6 votes
Accepted

PyGIS remove QgsVertexMarker from scene

I found a solution. Instead of iface.mapCanvas().scene().items().remove(ver) the item has to be deleted directly from the scene: vertex_items = [ i for i in iface.mapCanvas().scene().items() if ...
Martin's user avatar
  • 2,898
6 votes
Accepted

QGIS 3.22 UI theme > layer panel > increase line spacing?

Add the following lines to style.qss: QTableView::item, QListView::item, QTreeView::item { padding: 3ex; }
Kadir Şahbaz's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible