Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Qt application in windows and linux are same ?
ecmanja last edited by
i have did a simple Qt application using TCP/IP communication in windows ,but is this same application works in linux platform also ?? please confirm me about the issue.
Thanks & Regards,
ankursaxena last edited by
I think if you does not use windows api or windows library or any other external or third party library . then it should work on linux as well as windows.
But i am hoping for straight and good reply from SGaist.
ankursaxena is right. If you used Qt classes only, then you can copy the source code into Linux and compile a Linux executable.
(Note: You cannot copy the Windows executable into Linux)
IamSumit last edited by
Yes you can ..This is what Qt's main advantage,
Write Once. Deploy Everywhere..
but if you want to deploy on linux then you have to compile your source code on linux as well using Qt ctreator as you compiled in windows.
Second thing is that if your source code having some window native api(MSDN)
then you have to use macros like
#else if QT_ARCH_WINDOWS
//any other code
hope it will help