Hi!
Why when I move a QDockWidget over another, the first becomes hidden?
I remember in other projects I could see a new tab was creeated, but not in this one.
Do you know what could be the reason?
Thanks a lot.
Hi!
Why when I move a QDockWidget over another, the first becomes hidden?
I remember in other projects I could see a new tab was creeated, but not in this one.
Do you know what could be the reason?
Thanks a lot.
Why, when you ask a question, don't you provide a clear explanation of what puzzles you and enough contextual data for it to be analyzed by others so that they might answer you question?
Do you have any screenshot/video demonstrating the issue? Or a minimal sample code reproducing it? Or, at least, a (presumably not minimal) piece of code related to dock widget management in the app that exhibits this behavior?
Current Qt projects : QCodeEdit, RotiDeCode
There is no code, as I'm using only Designer. Likely I could explain it better, but my English is so rusty
This it what happens:
1 I have 3 docks.
2 Move one over another and I see a tab, but still didn't release the mouse button
3 I release the mouse button, tab is not created and the old dock disappears.
(I 'd like to see tabs and I wouldn't like one dock disappears)
Please, see 3 attached pictures.
Why does Qt have this behaviour? How can I change it?
Thanks a lot for your time.
1
2
3
![]()
Can you provide the ui file? Which Qt version are you using?
Current Qt projects : QCodeEdit, RotiDeCode
Thanks for reply.
Version 4.5.0 Open Source Edition.
It seems there is something wrong with:
AllowTabbedDocks
ForceTabbedDocks
I set them to true but my UI ignores them.
I upload the .ui file, maybe I forgot another configuration.
Thanks for your help.
Well, I know where the problem is:
I have 4 docks, an 4 menus at the barmenu where I can show/hidde any docks, so I added 4 signals to show/hidde docks.
If I delete them, everything works as expected (tabs are created), but I really want to be able to shw/hidde docks from menubar.
Any idea? You can try it downloading my UI file.
Thanks.
Use trigger () signal instead of using toggle() for the menubar actions, this might help.
Bookmarks