I am currently developing an application in which i cannot use modal windows (due to some application constraints). However, in some cases i would like to simulate a popup w
For getting Qt Widget size:
import sys from PyQt4 import QtGui, QtCore app = QtGui.QApplication(sys.argv) mainWindow = QtGui.QWidget() width = mainWindow.frameGeometry().width() height = mainWindow.frameGeometry().height()