[Interest] Problems with QDockWidgets in Qt5.6.1 and Qt5.7
Chris Gripeos
chris.gripeos at harmonixmusic.com
Thu Jun 23 19:33:23 CEST 2016
I wonder if this is related to my problem:
https://github.com/qt/qtbase/commit/f54bd20f6afbbd7bcbc55b3f3f59ed15f91f8ecd
[https://avatars3.githubusercontent.com/u/959326?v=3&s=200]<https://github.com/qt/qtbase/commit/f54bd20f6afbbd7bcbc55b3f3f59ed15f91f8ecd>
Revert "End the drag if the dockwidget is being hidden" ยท qt/qtbase at f54bd20<https://github.com/qt/qtbase/commit/f54bd20f6afbbd7bcbc55b3f3f59ed15f91f8ecd>
github.com
This reverts commit 75b705fec8e9517047d7dfa98203edff69f2bf8a and 798e0064e9be78f8320ff25a9af50d1b5e5badb1. This broke drag and drop of QDockWidget if there is no animations (QTBUG-54185) and this...
________________________________
From: Interest <interest-bounces+chris.gripeos=harmonixmusic.com at qt-project.org> on behalf of Chris Gripeos <chris.gripeos at harmonixmusic.com>
Sent: Thursday, June 23, 2016 7:25:12 PM
To: interest at qt-project.org
Subject: [Interest] Problems with QDockWidgets in Qt5.6.1 and Qt5.7
Hello,
I'm seeing some new and strange behaviour after upgrading our app from Qt5.6.0 to Qt5.6.1 and even Qt5.7.0 (5.6.1 and 5.7 have the same exact behaviour).
I have a QDockWidget with:
setAllowedAreas(Qt::AllDockWidgetAreas)
And I have a QMainWindow with:
setDockOptions(QMainWindow::AllowTabbedDocks | QMainWindow::AllowNestedDocks);
setTabPosition(Qt::AllDockWidgetAreas, QTabWidget::North);
The QMainWindow is populated with a Central Widget that has a minimum width, but still has plenty of room to add the QDockWidget to the left or right areas.
The QDockWidget has a minimum width and height, but still has plenty of room to be docked in the QMainWindow.
Now, when I drag the QDockWidget in the QMainWindow, Qt highlights the areas on the left, top, bottom, and right as I drag the QDockWidget around. This tells me that if the dock areas are highlighted I should be allowed to drop the QDockWidget on them.
The problem is that as soon as i drop the QDockWidget in those areas, the Widget only gets docked on the Right Area.
No matter which area I try to drop it on, it always ends up on the Right.
In Qt5.6.0 and earlier (we were on Qt4.8 before that):
- Qt would *only* highlight areas where a Widget was allowed to be docked. Qt5.6.1 seems to highlight all areas, even when not allowed (no-fit).
- Docking was possible on the highlighted areas without the QDockWidget always getting docked on the Right.
Has anybody else experience such a problem with Qt5.6.1 or Qt5.7.0?
Does anybody know what it might be that we're doing wrong?
Thanks in advance for any help with this problem!
- Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160623/8deed2e0/attachment.html>
More information about the Interest
mailing list