Version: unspecified (using KDE 4.7.0) OS: Linux dragging a menubar in Qt designer moves the entire designer window Reproducible: Didn't try Steps to Reproduce: 1. Start designer 2. Create a new form using the mainwindow template 3. Click and drag the menubar in the form Actual Results: The entire designer window is moved. Expected Results: I don't know if this is intentional/can be worked around.
Hello Stephen, Correct me if I'm wrong: the "normal behavior" (that is when window drag mode is disabled) is ... nothing happens. Right ? So that there is no actual conflict, and just an annoyance. I agree this is inconsistent since at best the expected behavior would be to drag the "subwindow" into its MDI frame. I'll see if I can find a workaround. (PS: no this is not "intended". Just an infortunate consequence from the code logic). (PPS: thanks for posting)
Ok, no worries if it can't be worked around in an easy way. It was just a surprise.
Git commit 892059c761780f1ade97f0e703051e853d1ef52b by Hugo Pereira Da Costa. Committed on 09/08/2011 at 10:56. Pushed by hpereiradacosta into branch 'KDE/4.7'. Added ::findParent method to check if a widget has a parent of a given type. Do not drag from a menubar embedded into an Mdi Subwindow. CCBUG: 279363 M +15 -0 kstyles/oxygen/oxygenwindowmanager.h M +5 -2 kstyles/oxygen/oxygenwindowmanager.cpp http://commits.kde.org/kde-workspace/892059c761780f1ade97f0e703051e853d1ef52b
Git commit 793164db34473b1ab3623045a4468d6e1f8ef757 by Hugo Pereira Da Costa. Committed on 09/08/2011 at 10:56. Pushed by hpereiradacosta into branch 'master'. Added ::findParent method to check if a widget has a parent of a given type. Do not drag from a menubar embedded into an Mdi Subwindow. CCBUG: 279363 M +15 -0 kstyles/oxygen/oxygenwindowmanager.h M +5 -2 kstyles/oxygen/oxygenwindowmanager.cpp http://commits.kde.org/kde-workspace/793164db34473b1ab3623045a4468d6e1f8ef757
comments #3 and #4 fixes it. No drag from Menubars in MdiSubwindow, which is the expected behavior and consistent with other empty areas in there. Thanks for reporting !