[Qgis-developer] Plugin with custom QGIS-Qt Widget for master
Luigi Pirelli
luipir at gmail.com
Mon Mar 6 07:04:16 PST 2017
the error depend on the content of ui file not how it is loaded,
you can check what is loaded compiling Bar.ui with:
> pyuic4 -o Bar.py Bar.ui
there you'll find what are the include used and than what whould be
the elements you need to configure in you custom widget in QtCreator
Luigi Pirelli
**************************************************************************************************
* Boundless QGIS Support/Development: lpirelli AT boundlessgeo DOT com
* LinkedIn: https://www.linkedin.com/in/luigipirelli
* Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
* GitHub: https://github.com/luipir
* Mastering QGIS 2nd Edition:
* https://www.packtpub.com/big-data-and-business-intelligence/mastering-qgis-second-edition
**************************************************************************************************
On 6 March 2017 at 15:57, matteo <matteo.ghetta at gmail.com> wrote:
> Hi Denis,
>
> this the code that loads the UI:
>
> FORM_CLASS, _ = uic.loadUiType(os.path.join(
> os.path.dirname(__file__), '../ui/Bar.ui'))
>
> class BarPlotDialog(QtWidgets.QDialog, FORM_CLASS):
> def __init__(self, parent=None):
> """Constructor."""
> super(BarPlotDialog, self).__init__(parent)
>
>
> should be the standard one to load them right?
>
> Thanks!
>
> Matteo
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
More information about the Qgis-developer
mailing list