Qt Code: Switch view QRect size = centralWidget()->geometry(); QRect size = centralWidget()->geometry(); To copy to clipboard, switch view to plain text mode ?
QRect size = centralWidget()->geometry();
Just curious, what do you want this information for?
J-P Nurmi
Originally Posted by jpn Just curious, what do you want this information for? to place widget that cover central widget and dock widgets.
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.
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.
Originally Posted by spirit Qt Code: Switch view QRect size = centralWidget()->geometry(); QRect size = centralWidget()->geometry(); To copy to clipboard, switch view to plain text mode ? and what if QDockWidget is docked? i what to know geometry of light blue area.
Forum Rules
Bookmarks