I solved the issues I had with the Detachable / Tear-Off Tabs and thought it might be nice to give you all the solution:
Here the files are: DetachTabExample.pro
Solved issues:
1. TabBar update solved by turning off Moving while drag is initiated (Trick in TabBar::mouseMoveEvent)
2. Widget not visible after reparent: call setVisible or show. The funny thing is that the Attach does work without setVisible.
3. Wrong Tab: Called TabWidget for index / text after a reparent. Solved this. Also some interference due to movable tabs.
4. 5. 6. 7. All solved by turning off movable tabs.
Now I have two remaining features left:
1. In the drag I show a screen shot off the widget. It would be nice if the Tab is shown also in that screen shot.
2. It would be nice if a drag returns in the TabBar the Drag would stop and the move would continue.
Hope somebody is helped with this solution.
Regards,
Marcel




Reply With Quote

Bookmarks