Questions tagged [pyqt4]

python bindings for Qt4

Filter by
Sorted by
Tagged with
9
votes
2answers
18k views

No module named 'osgeo'

I have installed GDAL and checked on the command line, it is working and when I run the gdal2tiles.py on the command line it works but when I run the same file gdal2tiles.py with python IDLE, I get "...
1
vote
1answer
222 views

Read Sld Style in pyQGIS

I am trying to set a layer's style using pyQGIS. My primary idea was to set the style from a string, but unfortunately I can only do it from a file. This code works as a charm: filename= QDir....
1
vote
0answers
253 views

pyQt error in the PYQGIS API

I install QGIS via OSGeo4W 32 bit on windows 7 32 bit and i want to take PYQGIS API in standalone python script. First I have python 3.5.2 and I have before install sip via pip and pyqt4 via gohlke ...
7
votes
1answer
706 views

Select and use raster layer from python

I'm a developer but this is the first experience with python and QGIS Plugin, I want make a plug-in for Remote Sensing Index. I have followed this basic tutorial https://www.youtube.com/watch?v=...
2
votes
2answers
146 views

Filter Layerlist in Snapping Options Dialog

I have some large QGIS-Projects where I would like to filter the layerlist that is used for the advanced snapping options. Even if there are a lot of layers used in the project I only have to adjust ...
2
votes
0answers
239 views

Automate print composition in QGIS

My goal is it to write a plugin, that automates the print composition. The idea is that you choose the scale and the paper size and based on that a map with legend, north arrow and block title is ...
2
votes
2answers
450 views

QGIS Network Analysis: QgsLineVectorLayerDirector.makeGraph(), attribute type QVector not available

relates to QGIS 2.14.6LTR on Win10, PyQt Version 4.10.2 When trying to makeGraph() on QgsLineVectorLayerDirector as described in the "QGIS Network analysis library" documentation (http://docs.qgis....
3
votes
1answer
1k views

Python script for opening webpage directly in QGIS

I have a shapefile with points referring to a webpage with a photograph. Until now I define an action to open the corresponding webpage in firefox. Eg. I have to share my project. Because I don't ...
4
votes
1answer
409 views

How to call a method when self.iface.actionSelectRectangle().trigger() is released?

In my QGIS python plugin I use self.iface.actionSelectRectangle().trigger() to select features. I also have a button which changes the attributes of the selected features. Is there a way instead of ...