[Qt-interest] Qt guide for MFC Programmers...
BRM
bm_witness at yahoo.com
Tue Jan 18 21:08:07 CET 2011
Well, perhaps it should be Win32/ATL/MFC then...
Yeah - Qt does a lot of stuff that doesn't necessarily compare. I'd just like
something that would help ease the transitions where they do compare.
For example, something comparing Win32/ATL/MFC graphics coordinates versus the
Qt Coordinate system; or QThread vs ATL Threads; or Qt Signals/Slots vs. Win32
PostMessage/SendMessage. There's a host of subjects that would be involved, some
building on others first.
Fact is, even Qt is a bit of a wrapper around some of these things, but one that
provides a consistent cross-platform interface and that makes proper use of C++
concepts. But for the discussion/etc. it would only have to focus on the parts
that are common to both - not everything under the sun concerning Qt.
I'd venture that others would likely find it useful for something similar for
Gtk, or Cocoa/Carbon, and other highly popular tool kits.
Yes, it's great to just jump in and learn (that's what I did), but it would also
be highly beneficial to have a reference that one can go to and say, well I did
this under ToolKit X, now how do I do that under Qt?
Ben
----- Original Message ----
> From: Jason H <scorp1us at yahoo.com>
> To: BRM <bm_witness at yahoo.com>; qt-interest <qt-interest at trolltech.com>
> Sent: Tue, January 18, 2011 12:22:32 PM
> Subject: Re: [Qt-interest] Qt guide for MFC Programmers...
>
> 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