#757 closed defect (fixed)
Qt Designer: Code generation failed
Reported by: | andreaerdna | Owned by: | |
---|---|---|---|
Priority: | minor | Component: | Package |
Version: | Keywords: | ||
Cc: |
Description
In Qt Designer, clicking on Form -> View C++ code... or View Python code... results in the following error:
Code generation failed - Qt Designer Unable to launch C:\PROGRA~1\QGIS32~1.1\apps\qt5\bin\bin\uic: Process failsed to start: Impossibile trovare il file specificato
Change History (6)
comment:1 by , 2 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
follow-up: 4 comment:2 by , 2 years ago
Hm, uic is not in apps\qt5\bin, so QtDesigner still shows an error. But maybe I missed to install a package?
comment:3 by , 2 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
comment:4 by , 2 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Replying to Andreas Müller:
Hm, uic is not in apps\qt5\bin, so QtDesigner still shows an error. But maybe I missed to install a package?
uic.exe is in qt5-devel.
follow-up: 6 comment:5 by , 2 years ago
Thanks! Shouldn't qt5-libs then be in setup.ini, in requires for qt5-tools or qt5-libs?
comment:6 by , 2 years ago
Replying to Andreas Müller:
Shouldn't qt5-libs then be in setup.ini, in requires for qt5-tools or qt5-libs?
You mean qt5-devel? Depends. It's a quite heavy dependency (along with qt5-libs-debug).
If you're developing C++ you will probably already have qt5-devel anyway. If you're developing python with osgeo4w you will probably dispense with the PySide2 code designer would show if it had uic.
And if you're just doing forms for QGIS - which is why there is a separate qt5-tools package to start with - you won't need either code preview.
Fixed in https://github.com/jef-n/OSGeo4W/commit/e83454ee55b69a8c91021c67f0d51b5491ec7da9