[Interest] I love QML
Henry Skoglund
henry at tungware.se
Wed Jul 8 08:41:21 CEST 2020
On 2020-07-08 08:09, Till Oliver Knoll wrote:
> Am 03.07.20 um 17:46 schrieb joao morgado via Interest:
>> When I started using Qt I never touched WIndows MFC again.
>
> Ha! But you actually /did/ touch MFC then ;)
>
> Here's another fan story (even though I am - unfortunately - not
> working professionally with Qt for a very long time)...
>
> ...
> ...
> Having some first experience with Linux and KDE 1.x I had heard about
> a thing called Qt (which was at version 2.x at the time, IIRC). My
> diploma work in 2001 was about developing a "3d paint editor"
> (www.pointshop3.com, for the interested) based on an existing
> "point-based software renderer", which was... of course written in C
> and MFC - yikes! So my first suggestion to the PhD student who was
> overseeing my work was to rip away everything that spelled "MFC", make
> it compile with a C++ compiler and use Qt instead. "Go ahead, son. But
> if you run into trouble you're on your own!"
>
> Turned out that my decision to use Qt (of which I only knew so little,
> but had browsed its excellent documentation, which already convinced
> me that I could pull it off - and of course the nice "Java-like"
> syntax of its API) was worth pure gold. After just two weeks or so I
> had the existing 3D "point-based renderer" compiling and running
> within a basic Qt application, with a main window and menu - yesss!
>
> After exact four months I had a "3d paint editor" with selectable
> brushes, "gauss texture filtering", a software and OpenGL renderer
> (switchable at runtime), and all extendable with plugins. Hadn't it be
> for Qt, its excellent API and especially the documentation and
> examples I wouldn't have come that far, in so little time!
>
> The application was later ported to Qt 3 by others and made runnable
> on Linux as well (I developed it mainly on Windows at the time), and
> was extended with some plugins "all over the world" (well, from some
> universities in France and Holland at least ;))
>
>
> Lessons learned: a clean API and a great documentation with examples
> is what makes a great toolkit! And of course its functionality ;)
>
> Hooray for Qt! :)
>
>
Hi, I think you used MFC in the wrong century :-)
For all the MFC bashing: before it I used Microsoft C and the Windows
SDK. So when MFC was released in 1992, it was a game changer which had a
lot of influence (for example I wrote C++ code for the Palm Pilot using
Metrowerks and a MFC clone). But with so many other Microsoft things,
MFC had its peak in the early 00's.
One great feature of Qt is the ownership model, which allows stuff like
deleteLater(). MFC had no such concept, e.g. all the CStrings you placed
on a listview, who owned them? Memory leaks were common.
Another great feature of Qt is portability, on my Raspberry PI 4 I've
just replaced the SD-card with a USB3-SSD, speed difference in file
loading is about 10x. So now Qt Creator is just so nice to run on it,
gives you a cheaper taste of the Apple Silicon to come :-)
Rgrds Henry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20200708/665ca148/attachment.html>
More information about the Interest
mailing list