-
Why can't QskSubDialogWindow and its subclasses set the position and size through setPlacementPolicy(ignore) and setGeomtry, and can only set the size through setFixedSize? These pop-up windows can only be in the middle of the parent control |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Setting the geometries manually is in general no good idea - it looks being simpler in the beginning, but you will pay later. Sizes usually depend on languages, font sizes, icons and what type of content you have. That's why layout systems do exist - QSkinny is using one that is quite similar to what you find for QWidgets ( Qt/Quick layouts do not cover many relevant situations ). Of course it is possible to set geometries manually - as long as you do it in line with the layout system. F.e in case of QskSubDialogWindow you can overload QskDialogSubWindow::updateGeometry and do what seems to be right for your situation. |
Beta Was this translation helpful? Give feedback.
Setting the geometries manually is in general no good idea - it looks being simpler in the beginning, but you will pay later. Sizes usually depend on languages, font sizes, icons and what type of content you have.
That's why layout systems do exist - QSkinny is using one that is quite similar to what you find for QWidgets ( Qt/Quick layouts do not cover many relevant situations ).
Of course it is possible to set geometries manually - as long as you do it in line with the layout system. F.e in case of QskSubDialogWindow you can overload QskDialogSubWindow::updateGeometry and do what seems to be right for your situation.