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 <[email protected]> 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 > [email protected] > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer _______________________________________________ Qgis-developer mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
