Why when I move a QDockWidget over another, the first becomes hidden?
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.
Re: Why when I move a QDockWidget over another, the first becomes hidden?
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?
Re: Why when I move a QDockWidget over another, the first becomes hidden?
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
http://img212.imageshack.us/img212/1414/62504553.jpg
2
http://img21.imageshack.us/img21/5011/29346362.jpg
3
http://img8.imageshack.us/img8/8033/68483102.jpg
Re: Why when I move a QDockWidget over another, the first becomes hidden?
Can you provide the ui file? Which Qt version are you using?
1 Attachment(s)
Re: Why when I move a QDockWidget over another, the first becomes hidden?
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.
Re: Why when I move a QDockWidget over another, the first becomes hidden?
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.
Re: Why when I move a QDockWidget over another, the first becomes hidden?
Use trigger () signal instead of using toggle() for the menubar actions, this might help.