Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qt Designer with QGIS 3.10.0 custom widgets will not start #32860

Closed
kerkovits opened this issue Nov 14, 2019 · 7 comments
Closed

Qt Designer with QGIS 3.10.0 custom widgets will not start #32860

kerkovits opened this issue Nov 14, 2019 · 7 comments
Assignees
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Regression Something which used to work, but doesn't anymore

Comments

@kerkovits
Copy link

The Qt designer packaged with QGIS 3.10 does not start up. However, if I delete the qgis_customwidgets.dll file, Qt designer can be opened (without the QGIS widgets). The same applies for the OSGEO4W version. The Qt designer packed with QGIS 3.8 works well. The Qt designer packed with QGIS 3.10 can not be opened even if I try to replace qgis_customwidgets.dll from an older verison of QGIS.

OS: Windows 10
QGIS: 3.10.0-3 64 bit

@gioman gioman added Bug Either a bug report, or a bug fix. Let's hope for the latter! Regression Something which used to work, but doesn't anymore labels Nov 14, 2019
@jef-n jef-n self-assigned this Nov 14, 2019
@jef-n
Copy link
Member

jef-n commented Nov 14, 2019

probably introduced with 69dab87 - custom widgets are used without QgsApplication.

@jef-n jef-n closed this as completed in 7fdac2f Nov 14, 2019
jef-n added a commit that referenced this issue Nov 18, 2019
jef-n added a commit that referenced this issue Nov 18, 2019
@jaminzoda
Copy link

Same on Ubuntu 19.10. Qt designer does not start with libqgis-customwidgets 1:3.10.0+31eoan. I tried to it with version 1:3.8.0 and it worked well.

@DavidPavlicek
Copy link

Same on Debian 10 with the latest release package. But it works again with the nightly build...

@janhec
Copy link

janhec commented Apr 18, 2024

libqgis_customwidgets.dll was probably renamed to qgis_customwidgets.dll from at least version 3.22, I think.
Assuming that, there is no crash, but on windows 64 it will not be loaded either:
"Could not load library C:\PROGRA~1\QGIS 3.22.4\apps\qgis-ltr\qtplugins\designer\qgis_customwidgets.dll: The specified module cannot be found." (qt designer, help, about plugins).
The file is present. Elsewhere (apps\qgis-dev\qtplugins\designer) there is a slighly larger one, trying to load that one gives a slightly different error claiming a procedure (rather than a module) cannot be found.
I start qt designer from the (qgis) start-menu, so the .bat is used and environment is set.
Then I repeated this with versions 3.28.15 LTR, 3.34.5 LTR and 3.36.1.
All freshly installed. The same problem existed with all of them.
I installed qgis in WSL Ubuntu, where qt designer works without this flaw (version 3.22.4 LTR).
Is there perhaps a name mangling problem in de dll, or have different compilers (clang, mingw, VS, ???) been used for the dll vs qt designer, perhaps? I read somewhere that may cause trouble.
The QT designer version is 5.15.2 in the oldest qgis install mentioned and 5.15.3 in the others.

@jef-n
Copy link
Member

jef-n commented Apr 18, 2024

libqgis_customwidgets.dll was probably renamed to qgis_customwidgets.dll from at least version 3.22, I think.

No, the "regular" name on Windows is qgis_customwidgets.dll (MSVC build). libqgis_customwidgets.dll is from a mingw build.

Assuming that, there is no crash, but on windows 64 it will not be loaded either: "Could not load library C:\PROGRA~1\QGIS 3.22.4\apps\qgis-ltr\qtplugins\designer\qgis_customwidgets.dll: The specified module cannot be found." (qt designer, help, about plugins).

Not reproducable with a fresh install from OSGeoW.
grafik grafik

@janhec
Copy link

janhec commented Apr 18, 2024

Surprising, but thanks for the quick reaction!
I used QGIS-OSGeo4W-3.34.5-1.msi and similar for the other installs.
I'll try on another machine, but no clue what happens here, since I reported exactly my results.
There is certainly no 32 vs 64 bits confusion, so I am at a loss where to look.

@janhec
Copy link

janhec commented Apr 18, 2024

Tried on my laptop, exactly the same (negative) result. Any pointers?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Regression Something which used to work, but doesn't anymore
Projects
None yet
Development

No branches or pull requests

6 participants