LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 05-29-2006, 07:11 AM   #1
ashley_31
Member
 
Registered: May 2006
Location: India
Distribution: RedHat Enterprise Linux (Kernel 2.6)
Posts: 42

Rep: Reputation: 15
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.
 
Old 05-29-2006, 07:45 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
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.
 
Old 05-29-2006, 11:32 PM   #3
ashley_31
Member
 
Registered: May 2006
Location: India
Distribution: RedHat Enterprise Linux (Kernel 2.6)
Posts: 42

Original Poster
Rep: Reputation: 15
i have a code in C++ and compiled it well in linux.
But how to run it in windows such that it produces exactly the same output.
 
Old 05-30-2006, 03:06 AM   #4
ashley_31
Member
 
Registered: May 2006
Location: India
Distribution: RedHat Enterprise Linux (Kernel 2.6)
Posts: 42

Original Poster
Rep: Reputation: 15
hey... isnt anybody working on Qt here ???
 
Old 05-30-2006, 03:13 AM   #5
binarybob0001
Member
 
Registered: Dec 2004
Distribution: Debian Wheezy
Posts: 444

Rep: Reputation: 30
You should probably repost in the Programming Forum.
 
Old 05-30-2006, 03:27 AM   #6
spirit receiver
Member
 
Registered: May 2006
Location: Frankfurt, Germany
Distribution: SUSE 10.2
Posts: 424

Rep: Reputation: 33
The Qt tutorial doesn't say anything special about Windows. So why not try and simply compile your program there?
 
Old 05-30-2006, 04:46 AM   #7
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915

Rep: Reputation: 34
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.

Last edited by daihard; 05-30-2006 at 04:50 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration