Re: [QGIS-Developer] Custom widgets and Qt Designer 4 and 5

2018-04-05 Thread matteo
Hi Etienne, > 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,

Re: [QGIS-Developer] Custom widgets and Qt Designer 4 and 5

2018-04-04 Thread Denis Rouzaud
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

Re: [QGIS-Developer] Custom widgets and Qt Designer 4 and 5

2018-04-03 Thread Etienne Trimaille
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

Re: [QGIS-Developer] Custom widgets and Qt Designer 4 and 5

2018-03-20 Thread matteo
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

Re: [QGIS-Developer] Custom widgets and Qt Designer 4 and 5

2018-03-20 Thread Matthias Kuhn
On 03/20/2018 12:32 PM, matteo wrote: > Hi Matthias, > > >> FYI, if you compile QGIS yourself anyway you don't need to compile it >> against a custom GDAL version, you can also take the system one. >> >> The error message you were seeing was only because the one you tried to >> install (something

Re: [QGIS-Developer] Custom widgets and Qt Designer 4 and 5

2018-03-20 Thread matteo
Hi Matthias, > FYI, if you compile QGIS yourself anyway you don't need to compile it > against a custom GDAL version, you can also take the system one. > > The error message you were seeing was only because the one you tried to > install (something ubuntugis I assume) was linked against a newer

Re: [QGIS-Developer] Custom widgets and Qt Designer 4 and 5

2018-03-20 Thread Matthias Kuhn
Hi matteo, FYI, if you compile QGIS yourself anyway you don't need to compile it against a custom GDAL version, you can also take the system one. The error message you were seeing was only because the one you tried to install (something ubuntugis I assume) was linked against a newer version of

Re: [QGIS-Developer] Custom widgets and Qt Designer 4 and 5

2018-03-20 Thread matteo
Success!! Ok for those who can be interested, these are the steps I made: * download and compile gdal 2.2.3 (compiled in the /opt folder) * recompiled QGIS by changing the gdal paths and enable the flag WITH CUSTOMWIDGET * all went fine and QGIS is compiled against gdal 2.2.3 * in the output/lib

Re: [QGIS-Developer] Custom widgets and Qt Designer 4 and 5

2018-03-20 Thread matteo
Hi Etienne, yes I remember you showed me this *hack* in Nodebo ;) Anyway, I'm trying to compile gdal 2.2 (in the /opt folder, I'm terrified that something can break the existing installation of QGIS). I'm now compiling another QGIS against gdal 2.2 and I have activated the WITH CUSTOMWIDGET

Re: [QGIS-Developer] Custom widgets and Qt Designer 4 and 5

2018-03-20 Thread Etienne Trimaille
I can't answer your problem, but I'm using QGIS custom widgets by using the "promoted widget" feature in QtDesigner. Less convenient I agree. I never saw these widgets too and I think I'm lazy to check why because it works with these promoted widgets. My 2 cents ;-) 2018-03-20 8:59 GMT+01:00

Re: [QGIS-Developer] Custom widgets and Qt Designer 4 and 5

2018-03-20 Thread matteo
Ok some steps forward.. By adding the repository of ubuntugis [0] I could install libqgis-customwidgets version 3. BUT I cannot install it because it depends on libgdal >= 2.2.0 (while I have 2.1.2 installed). Should I also compile gdal to have the widgets available? Thanks! Cheers Matteo

Re: [QGIS-Developer] Custom widgets and Qt Designer 4 and 5

2018-03-19 Thread C Hamilton
I had the same problem so I am still using the QGIS 2.x Qt Designer for my QGIS 3.0 dialogs figuring that at some point someone would fix it.So far so good. Calvin On Mon, Mar 19, 2018 at 12:29 PM, matteo wrote: > Hi devs, > > sorry for raising this issue again. Some