Quote Originally Posted by wysota View Post
The way I see it you'd have to regenerate the Makefile, for example like this:

qmake UICFLAGS=....
make -f Makefile
I'll check out what the options are when passing the variables to qmake.

Quote Originally Posted by wysota View Post
and in the project file add:

DEFINES += $UICFLAGS

Of course get rid of the -D prefix when filling the UIFCFLAGS variable.
Shabby of me to write the project example with a -D

The problem is if my $UIFCFLAGS is set to "-DPRO_VER1 -DQVFB -DVER_US"
and added to the defines using
DEFINES += $(UIFCFLAGS)
it is expanded to "-D-DPRO_VER1 -DQVFB -DVER_US"
if however it is defined as "PRO_VER1 QVFB VER_US"
it is expanded to
"-DPRO_VER1 QVFB VER_US"

Quote Originally Posted by wysota View Post
An alternative way is to alter the way moc works:

new_moc.output = moc_${QMAKE_FILE_BASE}.cpp
new_moc.commands = moc ${QMAKE_FILE_NAME} -o ${QMAKE_FILE_OUT} ${QMAKE_CXX_RELEASE}
new_moc.depends = g++ -E -M ${QMAKE_FILE_NAME} | sed "s,^.*: ,,"
new_moc.input = HEADERS
QMAKE_EXTRA_UNIX_COMPILERS += new_moc
This might just be the option I would end with. I'll check this out. Hopefully I can get this running:w