Results 1 to 3 of 3

Thread: How to create cross-platform application?

  1. #1
    Join Date
    Jan 2009
    Posts
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Question How to create cross-platform application?

    Hi, I'm new to QT (got it to work under windows just today). I was successful to do a "Hello world" in console(sill under windows). But my main goal with QT is to develop multi-platform apps. So I wandering how to deploy this "Hello wold" to other platforms (linux, winCE and maybe embedded linux)?


    Sorry for such a beginners question! Any help will be appreciated!


    Thanks in advance, fb2007

  2. #2
    Join Date
    Jan 2009
    Location
    Germany
    Posts
    387
    Thanks
    101
    Thanked 15 Times in 15 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to create cross-platform application?

    I'm fairly new myself but I can tell you this much. I'm developing my Qt project on linux and winXP at the same time to maintain crossplatformability. And so far I didn't have to do anything besides learn how to compile on the different platforms. The code is exactly the same and the app looks the same apart from a a few pixels off caused by different interpretation of the style sheet, which I was easily be able to circumvent. About winCE I don't know, but I figure all you need to do is to choose the right size for your gui.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to create cross-platform application?

    Crossplatformness of Qt-based applications is obtained on the source code level. You have a single source code (the same for all platforms) which you have to compile separately for each platform you want to deploy it on. This is different than for example Java, where the goal is obtained on the byte-code (aka binary) level - you have a single source, compile it once and deploy multiple times. With Qt it is code once, compile multiple times, deploy multiple times.

Similar Threads

  1. Cross Application Programming in QT
    By acxdotfm in forum Qt Programming
    Replies: 5
    Last Post: 22nd October 2008, 14:38
  2. Create Qt Application Bundle in MacOs
    By joy in forum Installation and Deployment
    Replies: 2
    Last Post: 25th February 2008, 19:06
  3. Crash handler on Win32
    By niko in forum Qt Programming
    Replies: 3
    Last Post: 12th November 2007, 20:41
  4. Weird Cross Platform Printing Problems
    By igor in forum Qt Programming
    Replies: 7
    Last Post: 7th August 2007, 17:25
  5. Two question about create an application.
    By Kenneth in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 19th March 2007, 23:21

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.