You need to import the QDockWidget using from qgis.PyQt.QtWidgets import QDockWidget. You may also consider using self.iface.
確定! 回上一頁