-
When I set the DragMargin of the QskDrawer, no matter what value I set the DragMargin to, its area is not affected, but its DragMargin property will change. I can only control its size with setmargins |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
The dragMargin is a parameter of the gesture - the drawer opens, once the movement exceeds that margin. The size of the drawer is automatically set to its preferredSize. If you did not assign one manually ( QskControl::setPreferredSize ) the size is calculated from the sizeHints of its children. |
Beta Was this translation helpful? Give feedback.
-
Just tried it,when the pop-up edge is up or down, only the height of the drawer can be changed. When the pop-up edge is left or right, only the width of the drawer can be changed. |
Beta Was this translation helpful? Give feedback.
-
True - see qskAlignedToEdge at https://github.com/uwerat/qskinny/blob/master/src/controls/QskDrawer.cpp#L60 In case you don't want your content being aligned with the edges you can wrap it into a QskControl container item. The container will be aligned like above - however it has no scenegraph nodes. Then:
|
Beta Was this translation helpful? Give feedback.
The dragMargin is a parameter of the gesture - the drawer opens, once the movement exceeds that margin.
The size of the drawer is automatically set to its preferredSize. If you did not assign one manually ( QskControl::setPreferredSize ) the size is calculated from the sizeHints of its children.