<div dir="ltr"><div>Hi,</div><div><br></div><div>Richard, the following works although restricted to opening the MessageLog panel<br></div><div><br></div><div>    iface.openMessageLog()</div><div><br></div><div><br></div><div>Thomas<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mar. 26 févr. 2019 à 09:06, Tejas L <<a href="mailto:tejvan@live.com">tejvan@live.com</a>> a écrit :<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 dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<div style="margin:0px;font-size:12pt;font-family:Calibri,Helvetica,sans-serif">
Hi Richard,</div>
<div style="margin:0px;font-size:12pt;font-family:Calibri,Helvetica,sans-serif">
<br>
</div>
<div style="margin:0px;font-size:12pt;font-family:Calibri,Helvetica,sans-serif">
That worked perfectly,<span> </span><span title="Search for suggestions" style="margin:0px;padding:0px 1px;border-radius:2px">thanks</span>!  </div>
<div style="margin:0px;font-size:12pt;font-family:Calibri,Helvetica,sans-serif">
<br>
</div>
<div style="margin:0px;font-size:12pt;font-family:Calibri,Helvetica,sans-serif">
When developing plugins I always find myself opening the Log window and the Python console, after I start up QGIS. It would be nice to have a way to save the panel layout. At the moment though, your code snippet is sufficient for my needs.</div>
<div style="margin:0px;font-size:12pt;font-family:Calibri,Helvetica,sans-serif">
<br>
</div>
<div style="margin:0px;font-size:12pt;font-family:Calibri,Helvetica,sans-serif">
Regards,</div>
<div style="margin:0px;font-size:12pt;font-family:Calibri,Helvetica,sans-serif">
Tej </div>
<br>
</div>
<div id="gmail-m_-763685223847216133appendonsend"></div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_-763685223847216133divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Richard Duivenvoorde <<a href="mailto:rdmailings@duif.net" target="_blank">rdmailings@duif.net</a>><br>
<b>Sent:</b> Tuesday, February 26, 2019 3:19 AM<br>
<b>To:</b> <a href="mailto:qgis-developer@lists.osgeo.org" target="_blank">qgis-developer@lists.osgeo.org</a><br>
<b>Cc:</b> <a href="mailto:tejvan@live.com" target="_blank">tejvan@live.com</a><br>
<b>Subject:</b> Re: [QGIS-Developer] Programmaticaly open the Log Panel</font>
<div> </div>
</div>
<div class="gmail-m_-763685223847216133BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="gmail-m_-763685223847216133PlainText">On 25/02/2019 09.57, Tejas L wrote:<br>
> Hello team,<br>
> <br>
> I would like to automatically open the Log Panel whenever Qgis starts.<br>
> Is there a way to do this?<br>
<br>
Hi,<br>
<br>
For what I know there is no api call for it directly, but you can search<br>
for child widgets in the main panel, something like this:<br>
<br>
for widget in iface.mainWindow().children():<br>
    if widget.objectName() == 'MessageLog':<br>
        widget.show()<br>
<br>
Or shorter (but trickier):<br>
<br>
iface.mainWindow().findChild(QDockWidget, 'MessageLog').show()<br>
<br>
With me this pops up the Messagelog Panel (though then you do not have<br>
your tab yet, but that is a child of that one probably...)<br>
<br>
Regards,<br>
<br>
Richard Duivenvoorde<br>
<br>
Ps what do you want to use it for, because more people see the use of it<br>
maybe we can just add it (or ask to be added?)?<br>
</div>
</span></font></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></blockquote></div>