[SOLVED] - Detecting OS - runtime vs build
General and Desktop
2
Posts
1
Posters
901
Views
1
Watching
-
Hi guys,
I'm currently developing a software that is available for Mac, Windows and Linux and maybe IOS later.
I want to pop up a link when the user start my application, the link will be different if the OS is Mac/Win/Linux.Is it better to do this kind of coding at build time with
@ #ifdef WIN32
OS = "WIN";
#else
OS = "MAC";
....@Or at runtime with QSysInfo ?
Thanks in advance!