Begining Qt !!!
-
@SGaist said:
There was even Java binding at some point. Qt Jambi if memory serves well
But the trolls left the Dark Side some years ago :D :D
-
Hi,
@Mnabil said:
seriously, its not like Java :|
No, it's not:
- A Java compiler produces bytecode. Different platforms use the same bytecode, but your users need to install the Java Virtual Machine.
- A C++ compiler produces native code. Different platforms use different native code, but your users don't need to install a virtual machine.
Most of the time, native code has superior performance to bytecode.
@Mnabil said:
Why do I need Visual Studio isn't Qt platform independent?
You install Visual Studio to get the C++ compiler. Just like how you install the Java SDK to get the Java compiler.
Also:
- In Java, "platform independence" means you can run the same bytecode on different platforms.
- In C++, "platform independence" means you can compile the same source code for different platforms.
-
"Java is not platform-independent. Java is a platform."
-
@Wieland said:
"Java is not platform-independent. Java is a platform."
Fine. "Gadget" then. ;)
-
@Wieland I mean a self contained compiler+IDE, like that steup Java SDK + Netbeans IDE :D
-
As previously suggested: Qt MinGW version, it includes the compiler
-
@SGaist That what supposed a cross Operating Systems platform to be
-
@Mnabil I don't agree.
A really cross OS C++ platform should use the standard OS compiler.
We using the same code to build for- Windows (Visual C++)
- Linux (gcc)
- Mac (clang)
- iOS (clang-ios)
- Android
In that way you get the best for the native compiler
-
@Mnabil said:
@Wieland I mean a self contained compiler+IDE, like that steup Java SDK + Netbeans IDE :D
Microsoft doesn't allow us to include their compiler with the Qt installer. If you want the compiler included, get the MinGW version, not the MSVC version.
-
@mcosta does that mean I've to have all platforms to compile for them, or I write once and Qt website will compile my project to various Operating Systems?
-
@Mnabil In theory you can also cross-compile using GCC but if you want use the native compiler you have to build in the platform.
I have a Mac with Windows and Linux Virtual machines so I can compile my code for all platform I need
-
Thank you all for kind help now things running well
Last thing would you please recommend books or resources to depend to move on Qt as much quick as possible, specially in Business/Finance/Mathematical oriented applications
-
Hi,
the only book I know is enough updated is http://qmlbook.github.io/ but is about QtQuick.
pecially in Business/Finance/Mathematical oriented applications
Qt is a generic framework so, once you got some basic skills, you can adapt it to your domain.
-
Here are two titles form Packt Publishing:
- https://www.packtpub.com/application-development/application-development-qt-creator
- https://www.packtpub.com/application-development/qt5-blueprints
I haven't read them though, so I can't comment on their quality.
Anyway, there are some very good resources online too. For example, a "Getting Started" tutorial from the official documentation: https://doc.qt.io/qt-5/gettingstartedqt.html
Search YouTube for "Qt 5" videos.