[Qt-interest] Qt guide for MFC Programmers...

Jason H scorp1us at yahoo.com
Tue Jan 18 18:22:32 CET 2011


There is barely a comparison. MFC was C++ wrappers around the C WinAPI. Qt is 
object oriented from the ground up. This was the biggest conversion for me as a 
former MFC developer. For core philosophy stuff, I'd probably recommend "Design 
Patterns in Qt". As for GUI stuff, the concepts in QtGUI are similar, except 
where they are different due to Qt making proper use of C++ concepts 
(inheritance and polymorphism). 


One big thing I notice is MS used a lot of interface classes (I--- classes). Qt 
doesn't do this except with the QAbstract* classes. a


The other thing is Qt makes heavy use of parenting for QObject derived classes. 
After you combine Qt's MetaObjectCompiler (MOC) you get something that behaves 
more like C# than C++.

I can't tell you everything you need to  know, but if you find yourself writing 
a lot of code for a simple task, then you're probably doing something wrong.

HTH


----- Original Message ----
From: BRM <bm_witness at yahoo.com>
To: qt-interest <qt-interest at trolltech.com>
Sent: Tue, January 18, 2011 9:39:53 AM
Subject: [Qt-interest] Qt guide for MFC Programmers...

Anyone know of a good reference (book, website) for helping MFC programmers 
convert to Qt? I'd like to recommend/provide it to a friend.

I'm not looking for documentation on the Qt MFC conversion utility; but 
something to help with mindset switching - going over things like PostMessage() 
is equivalent to a Queued Q_EMIT call, while SendMessage() is equivalent to all 
other Q_EMIT calls, and such.

TIA,

Ben

_______________________________________________
Qt-interest mailing list
Qt-interest at qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-interest



      



More information about the Qt-interest-old mailing list