[Qt-creator] About short but effective intro for newbies into QT Creator

Sebastian Fischer creat at gmx.net
Wed Nov 26 11:19:24 CET 2008


First of all welcome to the wonderful world of Qt!
I also come from a MFC background (even though I started using Qt
before the Creator was available) and have quickly learned to love it.

For your question, there are extensive tutorials on how Qt is intended
to be used in the help system. All of these apply to Qt Creator just
the same, since it incorporates Qt Designer (which is used to create
GUIs in a visual manner).
So for a basic introduction have a look at 'How to Learn Qt' and the
'Tutorials'. This will also explain mechanics specific to Qt like
signals/slots.
For how to visualy create dialogs try the 'Qt Designer Manual'.

Here now two quick and direct answers to your direct questions:

> how to create new Forms/Dialogs and activate them.
Select File --> New... -> Qt Designer Form Class and follow the wizard
To create the .ui, .h and .cpp files. Now include the .h file where
you need it, create an instance of the class just created by the
wizard and call ClassName.exec() (the equivalent of .DoModal()) to
show it.

> how to create handlers to various actions (button pressure, etc)
let me refer you to specific help pages for this (text in ' refers to
the help page titles). First you should know about 'Signals and Slots'
(which is quite essential for Qt Gui programming anyway).
Then have a look at 'Qt Designer's Signals and Slots Editing Mode' for
how to connect them visualy. For a general introduction to the
MainWindow I can recommend 'Creating Main Windows in Qt Designer'
which also introduces Actions (the most likely buttons in a top
level window).
To add a handler for any of the above just create an appropriate slot
in the dialog/window class and connect it to the signal you want it to
react to, like an QAction's triggered() or a QPushButton's clicked().

I hope this gives you a good idea where and how to start with Qt!
Sebastian Fischer

on 26.11.2008 at 10:13 you wrote:
> Hello everyone!

> First of all, developers, thanks for QT Creator. It's for undoubtedly 
> promises IDE!

> I'm MFC developer willing to use the IDE for commercial and 
> noncommercial projects. I checked out FAQ, a few flash presentation for
> QT Creator page, but I didn't find some small effective intro (flash or
> just text) to start programming in QT Creator. For example, to start 
> programming I would like to know how to create handlers to various 
> actions (button pressure, etc), how to create new Forms/Dialogs and 
> activate them. In QT Creator documentation I saw links to QT Designer,
> but (probably) QT Creator works in some other way.

> If there is such documents exactly for QT Creator, I would like to know
> where to get them. If no, I suppose such information would be extremely
> helpful for total newbie-developers in QT Creator like me.

> Thanks!





More information about the Qt-creator-old mailing list