Hi,
I have a custom QMainWindow with a QTabBar as center widget, this is basically a tabbed window to have multiple QMainWindow inside.
All works correctly but I have to disable the move on tab because if I enable it it gives weird behavior when I remove one tab during the move.
Basically I stay clicked on one tab and if the cursor is outside the QTabBar then the tab is removed and the QMainWindow is then floating.
The issue is the mouse button is not released so sometimes another tab continue to move, nothing should move anymore.
I tried all way to disable the move when I remove one tab but no way found.. surely it absolutely wait mouse release event..
The only way I think of is to write a custom move of tab and manage all myself.
Is it possible to do it ? Or one hack possible ?
Maybe a miss in QTabBar code, needs to check if the current pressed is the removed tab, maybe not safe on this case ?
Another thing is I would know if it's possible to enable the move of the tab.
example : I remove tab, the window is floating, I tab again
On this situation the tab should move, the mouse button is not released.
Only way is to simulate a click event ?
Thanks
Bookmarks