Version: 3.2.50 (using KDE 3.3.0, SuSE) Compiler: gcc version 3.3.4 (pre 3.3.5 20040809) OS: Linux (i686) release 2.6.8-24.11-default In Qt4.0 a new qmake variable is introduced: QT To select which parts of the qt library should be linked. The variable is used: QT += network xml The current version of the qmake manager is adding this variable to the "Custom Variables", but if i change something to the project. The variable is written back as: QT = network xml Now the default settings (core gui) are missing. There must be an option where i can choose if the custom variable is: ASSIGNMENT (=) ADDITION (+=) SUBTRACTION (-=) Because if i create a console application with qt, i would specify: QT -= gui Other operators are: ADD UNIQUE (*=) REGEXP (~=)
As a workarround for += one can use QT = $$QT xml network for example. But KDevelop (3.2.2 here) is not able to read Custom Variables with blanks in it again, so if close and reopen my project or KDevelop I get the following in my qmake-manager: Name: Value: QT $$QT the "xml network" is missing. If I exit the qmake-manager with 'OK' this wrong value will be saved to my *.pro file and thus breaks it.
The deleting of the stuff after the first space also happens after inserting a new existing file into the project. This is really annoying, as it makes compiling and linking fail. I think it constitutes data loss that the variable is reset to just the first item in the list. That is a serious bug.
I'm experiencing the same problem... when I try to modify for variables QMAKE_CXX = ccache g++
Created attachment 14220 [details] Fix problem with custom variables The patch is applicable in buildtools/qmake
Created attachment 14233 [details] Fix problem with custom variables [improved] I think this is a better solution
Fixed in svn, for Qt4 you can use all operators that exist