Hi Etienne,

qgis_customwidgets.py is responsible of replacing the cpp header by
qgis.gui.
It should be located in /pythonX/dist-packages/PyQt5/uic/widget-plugins/

To work, this file needs bbe able to import qgis.gui. If it fails, there
will be no replacement.

Can you check if this file is present and if you can import qgis.gui?

Cheers,
Denis

Le mar. 3 avr. 2018 à 14:25, Etienne Trimaille <[email protected]>
a écrit :

> Hi Matteo,
>
> I'm finally trying to use custom widgets from QT Creator instead of using
> promoted widgets.
> I'm facing the same issue with the generated path. It's not using
> "qgis.gui" so it's failing during the import in QGIS.
>
> Did you fix this issue?
> I can manually fix these imports, but I'm asking if there is a fix for
> that. Thanks
>
> 2018-03-20 14:33 GMT+01:00 matteo <[email protected]>:
>
>> Hi Matthias,
>>
>>
>> >> * not being able to see the QGS widgets in QT Designer 5 is related
>> with
>> >> GDAL version, isn't it? If copying in the
>> >> /usr/...../pyqt5/plugin/designer the libqgiscustomwidget not compiled
>> >> against gdal >= 2.20 won't work
>> > That's what I was talking about. It doesn't matter which gdal version
>> > you link against.
>>
>> ok so technically one I have the file libqgiscustomwidget.so and I've
>> copied it into the folder I can even clean the directory of QGIS
>> (compiled against gdal 2.20)?
>>
>> Thanks for the patience ;)
>>
>> 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
_______________________________________________
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

Reply via email to