<html><head></head><body lang="fr-FR" style="background-color: rgb(255, 255, 255); line-height: initial;">                                                                                      <div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);">Hi,</div><div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);"><br></div><div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);">Is related to that?<span style="font-size: initial; text-align: initial; line-height: initial;"></span></div><div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);">https://gis.stackexchange.com/questions/259751/fixing-headings-for-qgis-custom-widgets-in-qt-designer/259883#259883 ?</div>                                                                                                                                     <div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);"><br></div><div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);">Regards. </div><div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);"><br></div>                                                                                                                                                                                                   <div style="font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);">Envoyé de mon smartphone BlackBerry 10.</div>                                                                                                                                                                                  <table width="100%" style="background-color:white;border-spacing:0px;"> <tbody><tr><td colspan="2" style="font-size: initial; text-align: initial; background-color: rgb(255, 255, 255);">                           <div style="border-style: solid none none; border-top-color: rgb(181, 196, 223); border-top-width: 1pt; padding: 3pt 0in 0in; font-family: Tahoma, 'BB Alpha Sans', 'Slate Pro'; font-size: 10pt;">  <div><b>De: </b>Denis Rouzaud</div><div><b>Envoyé: </b>jeudi 11 janvier 2018 19:18</div><div><b>À: </b>Nyall Dawson</div><div><b>Cc: </b>qgis-developer</div><div><b>Objet: </b>Re: [QGIS-Developer] QgsDockWidget does not seem to work with       loadUiType</div></div></td></tr></tbody></table><div style="border-style: solid none none; border-top-color: rgb(186, 188, 209); border-top-width: 1pt; font-size: initial; text-align: initial; background-color: rgb(255, 255, 255);"></div><br><div id="_originalContent" style=""><div dir="ltr"><br><div><span style="color:rgb(33,33,33)">"It's still on the list but it is low priority."</span><br></div></div><br><div class="gmail_quote"><div dir="ltr">Le jeu. 11 janv. 2018 à 09:24, Denis Rouzaud <<a href="mailto:denis.rouzaud@gmail.com">denis.rouzaud@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>Hi all,</div><div><br></div><div>I think this is not currently feasible with PyQt5 at the moment (using QgsDockWidget as a top class for a UI and loading it with uic.loadUiType)<br></div><div><br></div><div>Here is a description of the issue on PyQt mailing list</div><div><a href="https://www.riverbankcomputing.com/pipermail/pyqt/2017-October/039647.html">https://www.riverbankcomputing.com/pipermail/pyqt/2017-October/039647.html</a><br></div><div><br></div><div>Here is a part of the reply from Phil Thomson:</div><div><br></div><div><span style="color:rgb(33,33,33);font-size:13px">> I can confirm it is a bug, however the fix is non-trivial so it won't get fixed quickly. The fundamental problem is that the code has the assumption that all custom widgets will reside in the PyQt5 package hard-coded (but even then it's not quite as simple as that).</span><br></div><div><span style="color:rgb(33,33,33);font-size:13px"><br></span></div><div><span style="color:rgb(33,33,33);font-size:13px">I just pinged Phil to get an update on this as he said he would fix it.</span></div><div><span style="color:rgb(33,33,33);font-size:13px"><br></span></div><div><span style="color:rgb(33,33,33);font-size:13px">Best wishes,</span></div><div><span style="color:rgb(33,33,33);font-size:13px"><br></span></div><div><span style="color:rgb(33,33,33);font-size:13px">Denis</span></div><br><div class="gmail_quote"><div dir="ltr">Le mer. 10 janv. 2018 à 18:02, Nyall Dawson <<a href="mailto:nyall.dawson@gmail.com" target="_blank">nyall.dawson@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 11 January 2018 at 07:37, C Hamilton <<a href="mailto:adenaculture@gmail.com" target="_blank">adenaculture@gmail.com</a>> wrote:<br>
> I seem to remember seeing something that said that QgsDockWidget should be<br>
> used rather than QDockWidget. I was trying it today, but it generates the<br>
> error below in this line of code.<br>
><br>
> FORM_CLASS, _ = loadUiType(os.path.join(<br>
>     os.path.dirname(__file__), 'ui/zoomToLatLon.ui'))<br>
><br>
> Has anyone had problems with this or should I not use QgsDockWidget and<br>
> stick with QDockWiget? I'm trying this on QGIS 2.99.<br>
><br>
> AttributeError: module 'PyQt5.QtWidgets' has no attribute 'QgsDockWidget'<br>
<br>
It's not a PyQt class - it's in the QGIS gui library:<br>
<br>
from qgis.gui import QgsDockWidget<br>
<br>
Nyall<br>
_______________________________________________<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></div></blockquote></div>
<br><!--end of _originalContent --></div></body></html>