pyqt4 Getting started with pyqt4

30% OFF - 9th Anniversary discount on Entity Framework Extensions until December 15 with code: ZZZANNIVERSARY9


This section provides an overview of what PyQt4 is, and why a developer might want to use it.

PyQt is a GUI widgets toolkit. It is a Python interface for Qt, one of the most powerful, and popular cross-platform GUI library. PyQt is a blend of Python programming language and the Qt library. This introductory tutorial will assist you in creating graphical applications with the help of PyQt.

It should also mention any large subjects within PyQt4, and link out to the related topics. Since the Documentation for PyQt4 is new, you may need to create initial versions of those related topics.

Basic Hello World Program

import sys
from PyQt4 import QtGui

def window():
   app = QtGui.QApplication(sys.argv)
   w = QtGui.QWidget()
   b = QtGui.QLabel(w)
   b.setText("<h1>Welcome to PyQt4 SO Documentation!</h1>")
   w.setWindowTitle("PyQt4 Hello World Demo")
if __name__ == '__main__':

Installation or Setup

Detailed instructions on getting pyqt4 set up or installed.

  1. Windows Link
  2. Mac Link
  3. Linux Link

If you want to install the version specific to your system python version and you system configuration(32-bit or 64-bit) then go to this link and download and install the package. You can install the .whl file simply by going to command prompt pip install PyQt4‑4.11.4‑cp34‑none‑win_amd64.whl .

Go a head Install the software and Start Building Awesome GUI!!

Got any pyqt4 Question?