<div dir="ltr"><div dir="ltr">Hi Luke,</div><div dir="ltr"><br><div><br></div><div>you can get a list of all QDockWidget objects in this way:</div><div><br></div><div>iface.mainWindow().findChildren(QDockWidget)<br></div><div><br></div><div>From there you could get objectNames, whether the dock widget is visible or not, its allowed areas and window title, among other properties.</div><div><br></div><div>The objectName is relevant, because you can pass it as the 3rd parameter to addTabifiedDockWidget(), in this way:</div><div><br></div><div>iface.addTabifiedDockWidget(Qt.RightDockWidgetArea, my_own_dock_widget, ["ProcessingToolbox"])<br></div><div><br></div><div>In that way, your dock widget will be tabified taking the ProcessingToolbox dock widget as a reference. If you want your dock widget on top, pass an extra parameter raiseTab as True.</div><div><br></div><div>I hope this helps.</div><div><br></div><div><br></div><div>Regards,</div><div><br></div><div>Germán</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El mié, 12 jun 2024 a las 20:22, Catania, Luke A ERDC-RDE-GRL-VA CIV via QGIS-Developer (<<a href="mailto:qgis-developer@lists.osgeo.org">qgis-developer@lists.osgeo.org</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg8429580846732714159">





<div lang="EN-US" style="overflow-wrap: break-word;">
<div class="m_8429580846732714159WordSection1">
<p class="MsoNormal">How can I get the reference to a QDockWidget that is already docked.  I want to call tabifyDockWidget so I can add a new QDockWidget to the same location.  The first is already in place from exsiting code and I know I can probably create
 a getter method on the code that adds the first doc widget but I was hoping not add anything to that code and use some existing built in method that would allow be to specify a dock widget location and return a reference to what is currently docked at that
 location.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal">Luke<u></u><u></u></p>
</div>
</div>

_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</div></blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>-----------<br></div><div>   |\__  <br>(:>__)(<br>   |/    <br>Soluciones Geoinformáticas Libres                            <br><a href="http://geotux.tuxfamily.org/" target="_blank">http://geotux.tuxfamily.org/</a><br><a href="http://twitter.com/GeoTux2" target="_blank">https://twitter.com/GeoTux2<br></a></div><div></div></div></div></div></div></div></div>