You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We display a QQuickItem in a dock widget for our application, and we'd like to make sure that dock widgets would never go below or above a certain size. Doing something like
dock_widget->setMinimumSize(QSize{30, 500});
for a DockWidgetQuick does not seem to achieve that. However, having gone through the source code, I was able to control the minimum size by setting the property kddockwidgets_min_size for the QQuickItem either on C++ side, or on the QML side.
Doing the same for maximum size does update the value, as evidenced by calling maximumSize(). However, it does not seem to have an effect from the user perspective, as the dock widget windows can still be made larger than that.
Are there other ways to set those constraints? Is it possible to set those constraints by controlling the sizing of only the dock widget, rather than the QQuickItem? And what would be the preferred way to achieve this functionality?
The text was updated successfully, but these errors were encountered:
I had this problem too and would be interested in a solution.
One thing that I noticed is that kddockwidgets_max_size actually translates to maximumSizeHint() instead maximumSize(). This appears to be in effect only when you double-click the splitter (the widget expands as far as it can).
In addition to this, I would also like to ask there is any way in Quick to set widgets' preferred size behavior (e.g. expanding, minimum)?
I would also like to know. We're having an issue in olive-editor/olive#2188 where we can't figure out how to make a dock widget narrower. Is there really no way to do this?
Hello,
We display a QQuickItem in a dock widget for our application, and we'd like to make sure that dock widgets would never go below or above a certain size. Doing something like
dock_widget->setMinimumSize(QSize{30, 500});
for a
DockWidgetQuick
does not seem to achieve that. However, having gone through the source code, I was able to control the minimum size by setting the propertykddockwidgets_min_size
for theQQuickItem
either on C++ side, or on the QML side.Doing the same for maximum size does update the value, as evidenced by calling
maximumSize()
. However, it does not seem to have an effect from the user perspective, as the dock widget windows can still be made larger than that.Are there other ways to set those constraints? Is it possible to set those constraints by controlling the sizing of only the dock widget, rather than the QQuickItem? And what would be the preferred way to achieve this functionality?
The text was updated successfully, but these errors were encountered: