[Qt-interest] Problems with Signal and Slots [QLineEdit]

Aaron Lewis aaron.lewis1989 at gmail.com
Mon Mar 22 14:09:31 CET 2010


Denis Akhmetzyanov wrote:
> Hi,
> Try to fix:
>
> connect(ui->escapeLine,SIGNAL(textEdited(const QString&)),
>      this,SLOT(on_escapeLine(const QString&)));

No , it's not working  , even i tried to modify    void 
on_escapeLine(const QString&) , remove const declare , not working too.


>
> 2010/3/22 Aaron Lewis <aaron.lewis1989 at gmail.com 
> <mailto:aaron.lewis1989 at gmail.com>>
>
>     Hi,
>        I got such warnings:
>            QMetaObject::connectSlotsByName: No matching signal for
>     on_escapeLine(QString)
>
>     Sample Code:
>        //Declare
>        private slots:
>            void on_escapeLine(const QString&);
>
>        //In Construct function
>
>     connect(ui->escapeLine,SIGNAL(textEdited(QString)),this,SLOT(on_escapeLine(QString)));
>
>     Note:    escapeLine is a QLineEdit.
>
>     Any ideas will appreciate ;-)
>
>     --
>     Best Regards,
>     Aaron Lewis - PGP: 0x4A6D32A0
>     FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
>     irc: A4r0n on freenode
>
>     _______________________________________________
>     Qt-interest mailing list
>     Qt-interest at trolltech.com <mailto:Qt-interest at trolltech.com>
>     http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>


-- 
Best Regards,
Aaron Lewis - PGP: 0x4A6D32A0
FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
irc: A4r0n on freenode




More information about the Qt-interest-old mailing list