Qt winXP binary on windows7?



  • Hello,

    I compiled a program on windows XP with MinGW and the the Qt libs statically linked.
    This works nice.

    The executable runs as well on Vista and windows 7.
    However, is there any difference in speed/performance when I compile it on Vista/windows 7?
    Does, for example, QPainter gains performance when I compile it on windows 7?

    In other words, is there any reason to compile/build different executables for windows XP, Vista and 7?



  • I don't know for a fact but would assume that if you compile, at least using visual studio and fine tune the compiler options, that the compiler could optimize the code but it is about the "hardware" and not the OS.

    Unless, of course, there is also some optimization on the qt code itself that will detect windows7 and potentially use a "new api" of some sort but I doubt. I don't think there is anything like a Q_WS_WINDOWS_7 "def".



  • Don't think that compilation under win7 instead of winXP will give more performance. But using msvc compiler instead of mingw will do.



  • [quote author="Denis Kormalev" date="1291221507"]Don't think that compilation under win7 instead of winXP will give more performance. But using msvc compiler instead of mingw will do.[/quote]

    +1


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.