Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 97

PyQt provides bindings for Qt 2 and Qt 3.

9 votes
Accepted

Populating combobox with layers in TOC using PyQGIS?

layers = QgsMapLayerRegistry.instance().mapLayers().values() for layer in layers: if layer.type() == QgsMapLayer.VectorLayer and layer.geometryType() == QGis.Line: self.dlg.ui.layerCombo.ad …
Nathan W's user avatar
  • 35k
1 vote
Accepted

PyQGIS - QgsMapToolEmitPoint

You are just missing the connect for the clicked signal: self.tool_clickPoint.canvasClicked.connect(self.clicked) def clicked(self, point, button): ....
Nathan W's user avatar
  • 35k
2 votes
Accepted

QGIS 2.4 - Python 2.7 PyQT4.Qtcore.QStringList Import failed

You can't import QStringList in QGIS 2.x because we are using SIP bindings v2 which auto converts the types to Python types. If you are buildling at a standalone app you should import qgis.core befo …
Nathan W's user avatar
  • 35k
2 votes

QGIS plugin problem, can't reach objects in a Qt-based Stacked Widget

There is no page attribute on the QStackWidget object. Here are all the methods that it has: http://doc.qt.io/qt-4.8/qstackedwidget.html What you need to do get the widget is call the widget functio …
Nathan W's user avatar
  • 35k
4 votes
Accepted

How to add a message bar to custom canvas?

It's just a widget so you sure can. Normally you would add it to a layout however that will resize your canvas when it pops up which is a bit annoying IMO. What you can do is just some logic to resiz …
Nathan W's user avatar
  • 35k
5 votes
Accepted

Purpose of "myPlugin_dialog.py" file created by QGIS Plugin Builder

Technically the only files you need for a plugin are: __init__.py metadata.txt plugin.py All the other files are just extra stuff depending on what you plugin does. If you don't need any resources …
Nathan W's user avatar
  • 35k