[Qt-interest] Qt 4.3 Designer, where is signal handlers?
Denton Vis
vistapro7 at hotmail.com
Mon Dec 1 19:48:47 CET 2008
You can connect signals with Qt designer. But I guess what you want to do is
define new slots in place when connecting a signal. This is not possible in
Qt Designer 4.4 (it was possible in 3.3). You can only define custom slots
and signals for promoted widgets or the main window widget.
>From what I understand, the Trolls want to streamline the designer to just
focus on creating good interfaces and remove IDE-like functionality from
designer. I guess with the introduction of Qt Creator, they have even more
incentive to do so.
See this thread for more details
http://lists.trolltech.com/qt-interest/2008-11/msg00571.html
"Melih S Aslan" <msasla01 at louisville.edu> wrote in message
news:492C22EB.71FD.0046.0 at gwise.louisville.edu...
> Hi Mr. Shaoxi,
>
> I have tried your suggestion but it did not work.
>
> I put a push button in the GUI, then right click, I did not see any
> "connect signal" option. Am I doing wrong thing? When I right click any
> button, it shows in the popup menu:
>
> Change text
> Change object name
> Change tool tip
> Promote to
> Lay out...
>
> Do you have any suggestion?
>
> Thank you in advance,
>
>
>
>>>> "Peng Shaoxi" <shaoxi.peng at gmail.com> 11/25/2008 2:23 PM >>>
> If you are using Visual Studio with qt-vsintegration installed, you
> can right click a widget, select "connect Signal..." from popup menu,
> and select a signal in following dialog, then Qt will add a
> on_widgetname_signalname() method in both .h and .cpp file for you.
>
> On Tue, Nov 25, 2008 at 1:54 PM, Melih S Aslan <msasla01 at louisville.edu>
> wrote:
>> Hi,
>>
>> I am new to use Qt 4.4.3 Designer. I had used Qt 3.2.1 Designer to
>> prepare GUI.
>>
>> In Qt 3.2.1 Designer, there was a "signal handler" to assign a function
>> in C++. But In Qt 4.4.3 Designer, I could not find any idea how to assign
>> a function. For example, I put a push button, and I want to assign a
>> function in C++ to this button but I could not do.
>>
>> I hope I explained my problem well. I am beginner to use Qt and VTK.
>>
>> Thanks a lot.
>>
>> Melih
>>
>>
>>
>> --
>> To unsubscribe - send a mail to qt-interest-request at trolltech.com with
>> "unsubscribe" in the subject or the body.
>> List archive and information: http://lists.trolltech.com/qt-interest/
>>
>>
>
>
>
> --
> To unsubscribe - send a mail to qt-interest-request at trolltech.com with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
More information about the Qt-interest-old
mailing list