<div dir="ltr"><div><div><div><div><div>I am attempting to switch from QDockWidget to QgsDockWidget with my Lat Lon Tools plugin for QGIS 3.0. I am getting this error:<br><br><span style="font-family:"Courier New"">  File "C:\OSGEO4~1\apps\Python36\lib\site-packages\PyQt5\uic\__init__.py", line 203, in loadUiType<br>    return (ui_globals[winfo["uiclass"]], getattr(QtWidgets, winfo["baseclass"]))<br>AttributeError: module 'PyQt5.QtWidgets' has no attribute 'QgsDockWidget'<br></span><br></div>Normally what I do when I encounter these types of errors is to change the custom widget lines of code from something like:<br><br> <customwidgets><br>  <customwidget><br>   <class>QgsDockWidget</class><br>   <extends>QDockWidget</extends><br> <b>  <header>qgsdockwidget.h</header><br></b>   <container>1</container><br>  </customwidget><br> </customwidgets><br><br></div>to<br><br> <customwidgets><br>  <customwidget><br>   <class>QgsDockWidget</class><br>   <extends>QDockWidget</extends><br> <b>  <header>qgis.gui</header><br></b>   <container>1</container><br>  </customwidget><br> <br></div>This has always worked in the past, but it is not working for QgsDockWidget. It still works for the other custom widgets. Is this a bug or do I need to do something differently in my .ui code?<br><br></div>Thanks,<br><br></div>Calvin<br></div>