<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<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);" itemscope="" itemtype="https://schemas.microsoft.com/QuotedText">
<div class=""><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="ContentPasted0">What are you talking about. setParent(None) does not delete the underlying widget. You
 delete the widget using widget.deleteLater().<br>
</span></div>
</blockquote>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
You are right! That is weird, I could swear that when I used <i><b><span style="font-size:12pt;background-color:rgb(255, 255, 255)" class="ContentPasted0 ContentPasted1">setParent(None)</span></b></i> in the past it deletes the underlying widget. Maybe only
 if it was not bound to any other object?</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
Anyway, thanks Charles 👍</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Charles <peacech@gmail.com><br>
<b>Sent:</b> Wednesday, January 18, 2023 5:50 PM<br>
<b>To:</b> Matic Kukovec <kukovecmatic@hotmail.com><br>
<b>Subject:</b> Re: Moving child widgets between QTabWidgets?</font>
<div> </div>
</div>
<div>
<div dir="ltr">On Wed, Jan 18, 2023 at 11:34 PM Matic Kukovec <<a href="mailto:kukovecmatic@hotmail.com">kukovecmatic@hotmail.com</a>> wrote:
<div class="x_gmail_quote">
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div class="x_msg210786541945148683">
<div dir="ltr">
<div><span style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<div><span style="font-size:12pt; background-color:rgb(255,255,255)">
<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)">
<span>removeTab() does not reparent the widget, you need to call setParent(None) after removeTab.</span></blockquote>
</span></div>
<div><span style="font-size:12pt; background-color:rgb(255,255,255)"><span>That is exactly what I do not want, as
<i><b><span style="font-size:12pt; background-color:rgb(255,255,255)"><span style="background-color:rgb(255,255,255)"><span>setParent(None)</span></span></span></b></i><b><span style="font-size:12pt; background-color:rgb(255,255,255)"><span style="background-color:rgb(255,255,255)"><span></span></span></span></b><span style="font-size:12pt; background-color:rgb(255,255,255)"><span style="background-color:rgb(255,255,255)"><span>
 will delete the underlying widget</span></span></span>. I want it moved to the other tabwidget.</span></span><font size="2"><span><br>
</span></font></div>
</span><br>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div class="x_gmail_default" style="font-family:arial,helvetica,sans-serif; font-size:small">
What are you talking about. setParent(None) does not delete the underlying widget. You delete the widget using widget.deleteLater().<br>
</div>
</div>
</div>
</div>
</body>
</html>