Re: [PyQt] QDockWidget issue in Linux, but not Windows, OSX
Thanks for your help, Pete While your example does indeed fix the problem that my example code showed, unfortunately, when plugging it in to the real program, the problem persists. However, I have been able to reproduce this bug using just Designer. On Windows here,...run Designer Create a MainWindow (default one do) Drop in a QFrame and pull it to just shy of MainWindow Drop in a QDockWidget Select dockWidget Cut Select QFrame Paste and then run it doing a Form-Preview, ...clicked undock button, behaviour is Normal Did the same thing on Linux, but when I click the undock button, the button is stuck at top, just like our problem. Can anyone else confirm this on Linux ? So that's definitely gotta be a Qt bug, right? Any advice about how to fix ? Thanks! -- View this message in context: http://python.6.n6.nabble.com/QDockWidget-issue-in-Linux-but-not-Windows-OSX-tp4374122p4466498.html Sent from the PyQt mailing list archive at Nabble.com. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] QDockWidget issue in Linux, but not Windows, OSX
Am Monday 13 February 2012 21:37:55 schrieb JPolk: Thanks for your help, Pete While your example does indeed fix the problem that my example code showed, unfortunately, when plugging it in to the real program, the problem persists. However, I have been able to reproduce this bug using just Designer. Yup, sure. Same problem. Why can't you adopt my attempt to your problem? Just replace the parent of the dock with a QMainWindow. Case closed. The second best way is analysing the QMainWindow class and find out, what it is doing special for docking widgets. I guess, they fiddle with the window flags. Your approach will suffer from being unpossible to save the dock states and the like anyway, I *guess*. On Windows here,...run Designer Create a MainWindow (default one do) Drop in a QFrame and pull it to just shy of MainWindow Drop in a QDockWidget Select dockWidget Cut Select QFrame Paste and then run it doing a Form-Preview, ...clicked undock button, behaviour is Normal Did the same thing on Linux, but when I click the undock button, the button is stuck at top, just like our problem. Can anyone else confirm this on Linux ? So that's definitely gotta be a Qt bug, right? If it's one, then it's in the highly obscure class of issues (pretty hard to fully solvable in a multi platform toolkit). Any advice about how to fix ? Thanks! Pete ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] QDockWidget issue in Linux, but not Windows, OSX
Hey Pete, Well I did try your technique, but the problem still exists. As I said, it's my bad that the example I gave you, while showing the bug, was not totally representative of the real program. I figured that solving it on a small scale, if you will, would yield a solution that would work in the real thing. Unfortunately, and like you said, kinda' rare, that it doesn't. I'm in the process of creating a more simpler version of the larger program, that won't be as simple as the first, lol...but more complex, so that if you or someone finds a solution, then it'lll have a greater chance of mapping over to the real thing. Thanks again for your help and input on this,...I will post a new example script as soon as possible, Cheers, Jim -- View this message in context: http://python.6.n6.nabble.com/QDockWidget-issue-in-Linux-but-not-Windows-OSX-tp4374122p4466862.html Sent from the PyQt mailing list archive at Nabble.com. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt