Qt-interest Archive, December 2006
C++ GUI Programming with Qt 3 + Qt v4.2.1 (Open Source) for Windows
Message 1 in thread
Hi all,
I intend to develop Database Application with Qt. I'm new to Qt.
I am learning a book on C++ GUI Programming with Qt 3 by Jasmin Blanchette
& Mark Summerfield using Qt v4.2.1 Open Source for Windows and MinGW
v3.1.0-1.
As a complement i also use Qt Assistant for solving incompatibilty issues
between Qt 3 dan Qt 4 i found that in book.
Now i face problem that i cannot find Qt Designer's slot editor to create a
slot and Qt Designer's code editor mentioned in that book . Could any one
help me?
Thanks in advance.
yunus tjin nyan
--
[ signature omitted ]
Message 2 in thread
But the QT 4.X version of the book... The slot editor is gone in the
designer
Scott
> -----Original Message-----
> From: Yunus [mailto:yunus@xxxxxxxxx]
> Sent: Friday, December 01, 2006 11:21 PM
> To: qt-interest@xxxxxxxxxxxxx
> Subject: C++ GUI Programming with Qt 3 + Qt v4.2.1 (Open Source) for
> Windows
>
> Hi all,
>
> I intend to develop Database Application with Qt. I'm new to Qt.
>
> I am learning a book on C++ GUI Programming with Qt 3 by Jasmin
> Blanchette
> & Mark Summerfield using Qt v4.2.1 Open Source for Windows and MinGW
> v3.1.0-1.
> As a complement i also use Qt Assistant for solving incompatibilty
issues
> between Qt 3 dan Qt 4 i found that in book.
>
> Now i face problem that i cannot find Qt Designer's slot editor to
create
> a
> slot and Qt Designer's code editor mentioned in that book . Could any
one
> help me?
>
> Thanks in advance.
>
> yunus tjin nyan
>
>
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
--
[ signature omitted ]
Message 3 in thread
Yunus schrieb:
> Hi all,
> ...
> Now i face problem that i cannot find Qt Designer's slot editor to
> create a slot and Qt Designer's code editor mentioned in that book .
> Could any one help me?
Creating GUI widgets with the Qt 4 Designer is one of the major changes
from Qt 3 to Qt 4. So I suggest you skip the "Designer" part in your
book and concentrate on the Qt 4 documentation, e.g. this one:
http://doc.trolltech.com/4.2/designer-manual.html
Editing connections in the Designer is described here, for exampe:
http://doc.trolltech.com/4.2/designer-connection-mode.html
Basically the main differences between Qt 3 and 4 are that in Qt 4 no
C++ classes are generated anymore from the *.ui files from which you can
subclass. Instead a namespace ui::YourWidget is generated with a method
called setupUi() which you call in your actual GUI implementation class
(usually in the constructor of your class), as to setup the GUI layout.
Another new feature is the "automatic connection" of signals: suppose
you have a QButton defined in the Designer, called "myButton". When you
name your slot like with this pattern:
void on_<widget name>_<signal name>(<signal parameters>);
e.g.
void on_myButton_clicked();
then your slot 'on_myButton_clicked()' is automatically connected to the
signal 'clicked' of the QButton named 'myButton'!
In Qt 3 Designer you did this with the "slot editor" where you could
define custom slots and implement them in the actual subclass (or in the
*.h header if you didn't like subclassing the auto-created GUI class),
but as you have noticed this possibility has gone. Note that there still
exists a "slot editor" in Qt 4 Designer, but it doesn't let you define
custom slots which are implemented later in your subclass - it merely
gives you access to already defined slots from widgets you have placed
in your GUI form, AFAIK.
Read about "automatic connections" here:
http://doc.trolltech.com/4.2/designer-using-a-component.html#automatic-connections
Cheers, Oliver
p.s. The book you have is updated for Qt 4 - maybe a walk into the next
book store would do or write it down on your xmas wish list ;)
--
[ signature omitted ]
Message 4 in thread
Hi Oliver,
Thanks. It's clear now.
yunus
----- Original Message -----
From: "Till Oliver Knoll" <oliver.knoll@xxxxxxxxxxx>
To: "Qt Interest List" <qt-interest@xxxxxxxxxxxxx>
Sent: Monday, December 04, 2006 5:11 PM
Subject: Re: C++ GUI Programming with Qt 3 + Qt v4.2.1 (Open Source) for
Windows
> Yunus schrieb:
>> Hi all,
>> ...
>> Now i face problem that i cannot find Qt Designer's slot editor to
>> create a slot and Qt Designer's code editor mentioned in that book .
>> Could any one help me?
>
> Creating GUI widgets with the Qt 4 Designer is one of the major changes
> from Qt 3 to Qt 4. So I suggest you skip the "Designer" part in your
> book and concentrate on the Qt 4 documentation, e.g. this one:
>
> http://doc.trolltech.com/4.2/designer-manual.html
>
> Editing connections in the Designer is described here, for exampe:
>
> http://doc.trolltech.com/4.2/designer-connection-mode.html
>
> Basically the main differences between Qt 3 and 4 are that in Qt 4 no
> C++ classes are generated anymore from the *.ui files from which you can
> subclass. Instead a namespace ui::YourWidget is generated with a method
> called setupUi() which you call in your actual GUI implementation class
> (usually in the constructor of your class), as to setup the GUI layout.
>
> Another new feature is the "automatic connection" of signals: suppose
> you have a QButton defined in the Designer, called "myButton". When you
> name your slot like with this pattern:
>
> void on_<widget name>_<signal name>(<signal parameters>);
>
> e.g.
>
> void on_myButton_clicked();
>
> then your slot 'on_myButton_clicked()' is automatically connected to the
> signal 'clicked' of the QButton named 'myButton'!
>
> In Qt 3 Designer you did this with the "slot editor" where you could
> define custom slots and implement them in the actual subclass (or in the
> *.h header if you didn't like subclassing the auto-created GUI class),
> but as you have noticed this possibility has gone. Note that there still
> exists a "slot editor" in Qt 4 Designer, but it doesn't let you define
> custom slots which are implemented later in your subclass - it merely
> gives you access to already defined slots from widgets you have placed
> in your GUI form, AFAIK.
>
> Read about "automatic connections" here:
>
>
> http://doc.trolltech.com/4.2/designer-using-a-component.html#automatic-connections
>
>
> Cheers, Oliver
>
> p.s. The book you have is updated for Qt 4 - maybe a walk into the next
> book store would do or write it down on your xmas wish list ;)
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
--
[ signature omitted ]