Question about cross platform programming in Qt
Hello, i have a few questions.
Can i compile my program into one file and have it run on windows, mac, and Linux?
How does Qt’s cross platform ability work?
Thank you very much!
6 replies
Yes, please check the following articles for details about Qt on the three platforms that you are interested in:
- Qt on Windows [qt-project.org]
- Qt on Mac OS X [qt-project.org]
- Qt on Linux/X11 [qt-project.org]
Yes
No, you cannot create one single executable file that will execute on all three platforms. You really have to generatel separate executables.
Just to avoid misunderstands I would like to point out that my positive answer was about the statement that the source has to be build 3 times to target all of the platforms :)
You must log in to post a reply. Not a member yet? Register here!





