View Full Version: Qt/Windows-Non-Commercial

C++ Learning Community > C++ Tips > Qt/Windows-Non-Commercial


Title: Qt/Windows-Non-Commercial


Incubator - September 30, 2003 08:04 PM (GMT)
I found a more interesting framework to play around with.
Instead of fighting your way through hordes of procedural winapi or unreadable mfc, install the free QT/Windows 2.3. It is only 10mb, highly Object-Oriënted, has more safety checks to make programming easier, code is portable to linux, entirely written in C++.
QtDesigner allows for easy switch between different control styles, only drawback is that the free version currently only comiles with VC++6
(the professional or enterprise version supports other compilers too)
For regular applications to be used in compagnies or personal use this is quite an interesting framework. It even supports openGL libraries so you can also use it in gamedevelopment. (the Qt uses the API of your OS, so in windows it uses the win32 api)
more info can be found at www.trolltech.com, the file you download has an entire tutorial with examples included.

ih8censorship - October 1, 2003 12:06 AM (GMT)
so does it turn like hard c++ stuff into gml type stuff then?

TheHawgMaster - October 1, 2003 01:28 PM (GMT)
QUOTE
so does it turn like hard c++ stuff into gml type stuff then?
No, most OO APIs are much harder to learn to use than producural APIs (MFC is a notorious example of this). But after you learn to use them you can create your code much more quickly.

Incubator - October 1, 2003 04:22 PM (GMT)
and Qt is much more OO and much clearer then MFC. I only started to learn Qt a few weeks ago, but a few lonths ago I tried to learn MFC for the same amount of time.
I´ve already been trough many programming languages, but MFC is truly one of the most complicated ones....
Also, Qt (at least the professional version wich costs money...) has excellent compliance with openGL (linux users can enjoy this for free because Qt/linux is GPL-licensed.
Qt is an encapsulation of the API of your OS so as I said, it´s easy to port your code :)

TheHawgMaster - October 1, 2003 10:07 PM (GMT)
QUOTE
and Qt is much more OO
I dunno, MFC is pretty dang OO. (And I've never used it so I don't know if it's easier to use; I can use MFC just fine, it just takes alot of getting used to)

Incubator - October 2, 2003 12:14 PM (GMT)
I find that just the generated MFC code of an example app is hectic enough already, while an app in Qt has one goal: to keep your main clean as possible and work with classes (model-view control).
You make your own form/app class extending from Qt´s class and adjust that.
In the main you just run the exec() method of this class.
Just like in Java :)




* Hosted for free by InvisionFree