PDA

View Full Version : How to create cross-platform application?



fb2007
22nd January 2009, 19:06
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

Cruz
22nd January 2009, 21:39
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.

wysota
22nd January 2009, 23:21
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.