Questions tagged [pyqt4]

python bindings for Qt4

14 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
57 views

How can I get real time log in .bat file at QGIS & PlugIn with Python PyQT4

I try to get real time log in batch file with python, then show it to QGIS Plugin real time. ( .bat file have run -jar file ) I success logging but not real time log in QGIS because QGIS is stopped ...
2
votes
0answers
60 views

How to capture the event whenever the items inside a listview are checked

I'm developing a plugin in QGIS 2.8.2 using Pyqt 4. Well the idea is using the processing 'qgis:extractbylocation' from the QGIS algorithm provider to capture the studied area # Récupérer tous les ...
2
votes
0answers
300 views

QTableWidget Resize with Dialogue Python QGIS

I am developing python qgis plugin with QTableWidget inside a tabWidget. How can i set my QTableWidget size and QTabwidget with the Dialogue box. So that when someone expand the dialogue box of the ...
2
votes
0answers
120 views

Error While Fetching Data From Postgres In Qgis Plugin

i am trying to fetch data from postgres in qgis and the connection code is working fine in python console but it gives error when i apply that code to my plugin like.. AttributeError: 'NoneType' ...
2
votes
0answers
224 views

QGIS Profile Tool dependencies

I'm trying to install the Profile Tool on QGIS 2.14 (newest version present in ubuntugis ppa) and i get this error:'No module named PyQt.QtCore' I have installed the following packages:python3-pyqt4,...
2
votes
0answers
134 views

Custom QDialog is blank in QGIS 2.8.3

I have a QGIS plugin for displaying feature data and I'm trying to make a custom dialog to prompt the user to change the id of the feature being saved if the id is already in use. For some reason ...
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 ...
1
vote
0answers
44 views

QGIS 2.18 - Can't get click coordinates from mapCanvas

Trying to get click coordinates from map canvas but code is not working. Newbie for Python, pyqgis, pyqt I already check these topics but still code is NOT working 1 - QGIS 3 Get coordinates from ...
1
vote
0answers
31 views

Resizing QGIS custom form

I have followed this tutorial to create custom forms in QGIS (I work with version 2.18). However, I seem to be unable to control the shape and size of the form window. Thus, widgets are frequently out ...
1
vote
0answers
566 views

ValueError: Attempted relative import in non-package

I run myscript and get this error: from qgis.core import * # @UnusedWildImport from qgis.gui import * # @UnusedWildImport from PyQt4.QtCore import * # @UnusedWildImport from PyQt4.QtGui import * # @...
1
vote
0answers
329 views

Import Error: PyQt4 disabled by IPython, incompatible QT binding

I'm running QGIS 2.14 and trying to learn how to develop python standalone scripts. Currently I am using Canopy's (v 2.1.3.3542) distribution of Python 2.7. My development is on a Mac (OS 10.13.1) ...
1
vote
0answers
135 views

Implementing signals on add feature with PyQGIS?

I'm trying to implement the code below to run when adding a feature in the layer, but nothing happens even an error message. However when I call the method directly, the routing is executed normally. ...
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 ...
0
votes
0answers
16 views

QGIS standalone application execution problem in Eclipse

from qgis.core import * from qgis.gui import * from qgis.utils import * from PyQt4.QtCore import * from PyQt4.QtGui import * app = QgsApplication([], True) app.setPrefixPath("/usr", True) app....