Nope, "version" is TQString and ">=" is perfect valid operator. For some reason, seems that "KDE_SESSION_VERSION" contains some string that is interpreted as "bigger" than "4". Are you sure that "KDE_SESSION_VERSION" is empty?
Yes, I checked. The variable does not exist. :-)
Darrell