Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#757 closed defect (fixed)

Qt Designer: Code generation failed

Reported by: andreaerdna Owned by: osgeo4w-dev@…
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:2 by Andreas Müller, 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 jef, 2 years ago

Resolution: fixed
Status: closedreopened

in reply to:  2 comment:4 by jef, 2 years ago

Resolution: fixed
Status: reopenedclosed

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.

comment:5 by Andreas Müller, 2 years ago

Thanks! Shouldn't qt5-libs then be in setup.ini, in requires for qt5-tools or qt5-libs?

in reply to:  5 comment:6 by jef, 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.

Note: See TracTickets for help on using tickets.