Just a heads up,

I just downloaded latest Qt from github and verified that all the docking 
issues we've seen in Qt5.6.1 and Qt5.7.0 are fixed.


It must have been the CL I mentioned below.


- Chris



________________________________
From: Interest 
<interest-bounces+chris.gripeos=harmonixmusic....@qt-project.org> on behalf of 
Chris Gripeos <chris.grip...@harmonixmusic.com>
Sent: Thursday, June 23, 2016 8:33:23 PM
To: interest@qt-project.org
Subject: Re: [Interest] Problems with QDockWidgets in Qt5.6.1 and Qt5.7


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@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....@qt-project.org> on behalf of 
Chris Gripeos <chris.grip...@harmonixmusic.com>
Sent: Thursday, June 23, 2016 7:25:12 PM
To: interest@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

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to