how to get geometry of QMainWindow without menubar and toolbars?
How to get rect of central rect plus dockwidets?
I mean i want to know size of mainwidget without toolbars and menubar.
Re: how to get geometry of QMainWindow without menubar and toolbars?
Code:
QRect size
= centralWidget
()->geometry
();
?
Re: how to get geometry of QMainWindow without menubar and toolbars?
Just curious, what do you want this information for? ;)
Re: how to get geometry of QMainWindow without menubar and toolbars?
Quote:
Originally Posted by
spirit
Code:
QRect size
= centralWidget
()->geometry
();
?
and what if QDockWidget is docked?
http://doc.trolltech.com/4.4/images/...ndowlayout.png
i what to know geometry of light blue area.
Re: how to get geometry of QMainWindow without menubar and toolbars?
Quote:
Originally Posted by
jpn
Just curious, what do you want this information for? ;)
to place widget that cover central widget and dock widgets.
Re: how to get geometry of QMainWindow without menubar and toolbars?
Quote:
Originally Posted by
EnErGy[CSDX]
to place widget that cover central widget and dock widgets.
Ok, but why?
Nevertheless it might be easier to calculate the area by substracting the part taken by the menu, toolbars and statusbar from the whole widget.
Re: how to get geometry of QMainWindow without menubar and toolbars?
Quote:
Originally Posted by
wysota
Ok, but why?
Nevertheless it might be easier to calculate the area by substracting the part taken by the menu, toolbars and statusbar from the whole widget.
this is not easy solution, but looks like it is only one posible.