Hi all, I am trying to get the position information of widgets, here is my code,
ok = QtGui.QPushButton("OK")
cancel = QtGui.QPushButton("Cancel")
vbox.addWidget(ok)
vbox.addWidget(cancel)
print ok.pos()
print cancel.pos()
which output (0,0) (0,0)
How could I get the actual position of these widgets? Would anyone guide me to make it work? Thanks in advance
Bookmarks