I trying to get window size but I getting incorrect size, first of all I set window geometry to 800 x 480 and result is 640 x 480. Here is the code:
class MainWindow(QtGui.QWidget):
def __init__(self):
super(MainWindow, self).__init__()
width = self.width()
height = self.height()
self.setGeometry(10, 10, 800, 480)
self.geometry().width() / height() return the same results. why is that?
EDIT: First need self.setGeometry and after that self.width() / height() (Thanks to @eyllanesc)