Top "Pyqt4" questions

PyQt is a set of Python bindings for Qt application framework and runs on all platforms supported by Qt including Windows, MacOS/X and Linux.

dynamically adding and removing widgets in PyQt

using PyQt, I am trying to create an interface for which I can add or remove widget dynamically. I want …

python pyqt pyqt4
Cannot import PyQt4.QtGui

I have a working Python 2.6 install and just installed the PyQt4 built for Python 2.6 (available at http://www.riverbankcomputing.co.…

python qt pyqt4
how to have a directory dialog

In PyQt, how does one display a file browser that shows and selects only directories (not files)? And how does …

python pyqt pyqt4 file-browser
PyQt4 File select widget

I want to make a QT4 (using QT designer) dialog, that contains a part where a file has to be …

python qt4 pyqt4 filedialog qfiledialog
How to apply style sheet to a custom widget in PyQt

# -*- coding: utf-8 -*- import sys from PyQt4.QtGui import * from PyQt4.QtCore import * class MainWindow(QWidget): def __…

python pyqt pyqt5 pyqt4 qtstylesheets
PySide / PyQt detect if user trying to close window

is there a way to detect if user trying to close window? For example, in Tkinter we can do something …

python pyqt tkinter pyqt4 pyside
How to implement a simple button in PyQt

I want to implement a simple button in PyQt which prints "Hello world" when clicked. How can I do that? …

python button pyqt pyqt4 signals-slots
How to add a row in a tableWidget PyQT?

I am currently working on a widget that was designed in Qt Designer. I am having trouble with the syntax / …

python pyqt pyqt4 qtablewidget
PyQt QPushButton Background color

I have the follow code: self.pushButton = QtGui.QPushButton(Form) self.pushButton.setGeometry(QtCore.QRect(0, 550, 150, 31)) self.pushButton.setObjectName(_fromUtf8("pushButton")) …

python pyqt4
How to use QFileDialog options and retrieve saveFileName?

I'm trying to use a QFileDialog to prompt a user to provide a filename and location to save a text …

python pyqt pyqt4 exec qfiledialog