-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qtquick: Added example for min-size support
Started documenting it. There's seems to be lots of improvements to do. For issue #262
- Loading branch information
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# min/max sizing | ||
|
||
## QtWidgets | ||
|
||
KDDW will honour min/max constraints set on the guest widget.<br> | ||
You can run the example `qtwidgets_dockwidgets -g` to see the max-size in action.<br> | ||
Setting the constraints directly on `DockWidget` is not advised. | ||
|
||
## QtQuick | ||
|
||
Minimum sizes are supported but not maximum sizes.<br> | ||
There's no public API to set the minimum sizes, but you can set a special property called `kddockwidgets_min_size` | ||
on your guest item.<br> | ||
For an example, run the `qtquick_dockwidgets` sample executable, then go to "File" menu, and chose `New widget with min-size`. | ||
|
||
Note that while KDDW floating windows and docked widgets will honour the min size, the main window itself won't, as that's an item completely controlled by the user. Maybe we could expose the main window's KDDW layout min/max size, then users could use that to calculate the main window's min/max. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters