[PyQt] QTabWidget tabBar refresh?

Matic Kukovec kukovecmatic at hotmail.com
Tue May 7 17:47:25 BST 2019


Hi guys,

I have a QTabWidget that starts a QDrag when a tab is pressed and dragged outside
the bounds of the QTabWidget's tab bar.
That works great, but when the mouse button is released the tab doesn't jump-back into position
until there is a new mouse event on a non active tab and stays wherever the QDrag was initiated.
Here is an example:
[cid:b9badb6e-0c4f-4631-b0fd-a0a92ef6fddd]
Is there a way to make the tab bar properly reposition the tabs automatically in code?

Thanks,
Matic
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20190507/e443ddb3/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2019-05-07_18-35-11.gif
Type: image/gif
Size: 30552 bytes
Desc: 2019-05-07_18-35-11.gif
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20190507/e443ddb3/attachment-0001.gif>


More information about the PyQt mailing list