Hi Calvin It does. Thanks a lot!
Regards, Casper From: C Hamilton [mailto:[email protected]] Sent: 17. august 2016 16:47 To: Casper Børgesen (CABO) Cc: qgis-developer Subject: Re: [Qgis-developer] Problems with using QGIS Custom Widgets Yes I did. When you save the file it uses the C++ header so in my case it had the following: <customwidgets> <customwidget> <class>QgsColorButtonV2</class> <extends>QToolButton</extends> <header>qgscolorbuttonv2.h</header> </customwidget> </customwidgets> You need to replace qgscolorbutton2.h with the PyQT/PyGIS gui module. In this case it is: <customwidgets> <customwidget> <class>QgsColorButtonV2</class> <extends>QToolButton</extends> <header>qgis.gui</header> </customwidget> </customwidgets> I think this works for all of the custom QGIS widgets. Unfortunately, every time you save using Qt Designer it overwrites qgis.gui and you have to manually go put it back in. I hope this helps. Calvin On Wed, Aug 17, 2016 at 10:09 AM, Casper Børgesen (CABO) <[email protected]<mailto:[email protected]>> wrote: Hi Calvin I’m facing the same problem and before I go home I just wanted to ask if you found a solution to this problem? Regards, Casper Calvin
_______________________________________________ Qgis-developer mailing list [email protected] List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
