[solved] Create a Window with desired client area size?


23-09-2013 12:16:30

When you have a Window with child widgets, child widget positions are relative to Window client area. But Window size includes size of title-bar. So if you want to create a Window with certain client Area dimensions, how can we do this? Title-bar size is dependent on skin, and some skins might not even have a title bar!


23-09-2013 12:38:35

You can do it next way:
Create Window widget with some size, then
window->getSize(); // size of window
window->getClientWidget()->getSize(); // size of client area
Then you can get sizes difference and add it to your window size.