<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<blockquote style="border-color: rgb(200, 200, 200); border-left: 3px solid rgb(200, 200, 200); padding-left: 1ex; margin-left: 0.8ex; color: rgb(102, 102, 102);">
<font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Maurizio Berti <maurizio.berti@gmail.com></font><br>
<div dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>Sent:</b> Tuesday, May 7, 2019 7:37 PM<br>
<b>To:</b> Matic Kukovec<br>
<b>Cc:</b> pyqt@riverbankcomputing.com<br>
<b>Subject:</b> Re: [PyQt] QTabWidget tabBar refresh?</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div dir="ltr">Il giorno mar 7 mag 2019 alle ore 18:48 Matic Kukovec <<a href="mailto:kukovecmatic@hotmail.com">kukovecmatic@hotmail.com</a>> ha scritto:<br>
</div>
<div>
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi guys,</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I have a QTabWidget that starts a QDrag when a tab is pressed and dragged outside</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
the bounds of the QTabWidget's tab bar.</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
That works great, but when the mouse button is released the tab doesn't<i> <b>jump-</b><b>back</b></i> into position</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
until there is a new mouse event on a non active tab and stays wherever the QDrag was initiated.</div>
</div>
<div><br>
</div>
<div>The default behavior should automatically do that, I assume that you're doing something else within your implementation (also, I remember you were playing around with QTabWidgets some weeks ago). If you can give us a minimal and complete example of your
 code, we could try and understand what's going on here.</div>
</div>
</div>
</div>
</blockquote>
<div>
<div dir="ltr">
<div>
<div>Hey Mauricio,</div>
<div><br>
</div>
<div>Sure, here is my working example, as it is a bit more code.</div>
<div><br>
</div>
<div>Thanks again<br>
</div>
<div><br>
</div>
</div>
</div>
</div>
<br>
<div id="appendonsend"></div>
</body>
</html>