Qt - for Windows, Linux, Android, iOS ?
-
Hello,
I completly new in Qt and may be my question is stupid, but I can't understand something....
I just downloaded Qt for Windows 32 bit (MinGW). Is it possible to create with this version of Qt the cross platform programs or it is for Windows only?
The second question is what difference between Qt for Windows (OpenGL), Qt for Windows (MinGW), and Qt for Android ??Thanks a lot!
-
Hi and welcome to devnet,
You still have to compile natively your application for each platform you want to support. However you only need one code base so you don't have to re-write everything from scratch for each platform.
OpenGL means that you are going to use your graphic cards OpenGL driver, the non-OpenGL build uses the "ANGLE":http://code.google.com/p/angleproject/ library which does a translation between OpenGL ES2.0 and DirectX.
The MinGW build uses and provide the MinGW compiler. The other packages are built with the corresponding Visual Studio versions but you have to download visual studio from Microsoft's website.Qt for Android as its name implies is a package ready to do development for android devices.
Hope it helps
-
SGaist hello,
Thanks for your replay!
If I want to make program for Windows, Linux, MacOS - I write code once, and compile it under needed OS, am I right?
But what with the Android and iOS - mobile platforms?
Do I have to download the Qt for Android or iOS as an additional IDE? Or it is possible to add needed components for downloaded IDE, that I have?Thanks a lot!
-
Hi,
For iOS, you need to compile and package your code on a Mac. For Android, you can develop on any desktop platform since Google provides tools for each of them. You need to install additional SDKs for mobile development. Please check out these pages in the Qt documentation:
- "Requirements":http://doc.qt.io/qt-5/androidgs.html for Android development
- "Requirements":http://doc.qt.io/qt-5/ios-support.html for iOS
-
Hello chakman,
Thanks for your response!
But I asked something else:
If I need to download the Qt for Android in addition to downloaded Qt for Windows?Thanks a lot!
-
[quote author="katangawise" date="1421571853"]Hello chakman,
Thanks for your response!
But I asked something else:
If I need to download the Qt for Android in addition to downloaded Qt for Windows?Thanks a lot![/quote]
SGaist already answered that. Yes you need to. Qt for Windows means Qt compiled for Windows OS, Qt for Android means Qt compiled for Android OS. Why don't you download the "online installer":http://www.qt.io/download-open-source/ and see it for yourself.
-
I did download it! But this online installer doesn't work.
I run it, after 20 min get message - Can't download, connection closed.
Retried it 5 or 6 times - the same!
So I installed with the offline installer - because of it all my questions are!Thanks a lot!
I'll checkout Android programming later. Now I have to create simple program for Windows and Linux .Have a nice day!
-
You might be victim of a bad mirror. "This":https://github.com/JKSH/QtSdkRepoChooser little might help change the mirror.
One last thing, the offline installers for a mobile target (e.g. Android) include the desktop version of Qt so you can hack on your software even if you don't have the device at hand.