Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 6

Qt-interest Archive, April 2007
re: Size of dialog box


Message 1 in thread

How do I find out the size of a QDialog box - I have the sizePolicy set as
preferred but would like to record the actual size it is displaying at.

Message 2 in thread

Ann Marie wrote:
> How do I find out the size of a QDialog box - I have the sizePolicy set as
> preferred but would like to record the actual size it is displaying at.
> 

AFAIK QDialog is subclassed form QWidget (as well) it has the 
frameGeometry property. Try yourDialog.frameGeometry().width() and 
yourDialog.frameGeometry().height(). Or look for "Window Geometry" in 
the docs.

--
 [ signature omitted ]