Unsolved How to pass option to uic in qmake project file
-
Hello, I am building a project using command line tools in Qt 5.12. I want to pass an option -a (--no-autoconnection) to uic so that it does not generate a call to QMetaObject::connectSlotsByName(Linotype);
Does anyone know how to specify the uic option in the project file so that qmake will add it to the uic command line in the generated Makefile? I tried adding 'QMAKE_UIC = uic -a' but this has no effect. -
@acannon You have to use
QMAKE_UIC_FLAGS
in your .pro:QMAKE_UIC_FLAGS += -a
Delete the build folder and recompile, you will see the following:
/usr/bin/uic -a ../foo_project/mainwindow.ui -o ui_mainwindow.h
Fore more information read the official docs: https://doc.qt.io/qt-5/qmake-variable-reference.html#qmake-uic-flags