[Qgis-developer] Compiling ui files with custom widgets creates wrong imports
saverior
saverio.rutigliano at gmail.com
Tue Sep 29 06:56:59 PDT 2015
A trick is modifing the line in .ui file changing the "header" tag
e.g. (for QgsDateTimeEdit widget)
original is:
<customwidget>
<class>QgsDateTimeEdit</class>
<extends>QDateTimeEdit</extends>
<header>qgsdatetimeedit.h</header> <---python error looking for
"qgsdatetimeedit" module
</customwidget>
modified is:
<customwidget>
<class>QgsDateTimeEdit</class>
<extends>QDateTimeEdit</extends>
<header>qgis.gui.h</header> <---works!
</customwidget>
Of course it is not usable becouse every time you save the .ui file form
QTDesigner you have to change the <header> tag again!
I could not manage to use the "Promote.." to save the correct header
definitively
Saverio
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Compiling-ui-files-with-custom-widgets-creates-wrong-imports-tp5218684p5226817.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
More information about the Qgis-developer
mailing list