Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: RedHat Enterprise Linux (Kernel 2.6)
Posts: 42
Rep:
Qt
hey, i have just started using Qt in linux and im able to design a number of application using its designer.
Now,since Qt is a platform independent tool, can anybody tell me that if i have designed an application in linux, how will it work in windows in the same way.
whilst a graphical toolkit is available for multiple platforms you still need to code it correctly underneath, which is down to the standard restraints of whatever language you have decided to use.
Assuming you have intstalled the same version of Qt on your Windows computer, I'd say there really isn't anything special you need to do to "port" your Qt application you wrote for Linux to Windows. Just take the standard steps ("qmake -project", "qmake yourproj.pro", and run "make"). If you're using Visual Studio, then the last step would be "nmake" instead.
Now if you do use non-Qt functions/methods that are platform-specific, then of course it is your responsibility to make sure they are properly #ifdef'ed. Qt provides platform macros, such as Q_OS_WIN and Q_OS_LINUX, for that purpose.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.