[Qt-interest] currentVerticalAlignmentChanged signal of QTextEdit
Atlant Schmidt
aschmidt at dekaresearch.com
Mon Aug 30 14:17:08 CEST 2010
Nishant:
Naturally you've checked your source carefully and in the
.h file that declares that signal, you've actually named it
precisely as:
currentVerticalAlignmentChanged(QTextEdit::VerticalAlignment)
within the
AotPlatTextEdit
class, right? Remember, the function signature has to match as
well.
Because there's no compile-time checking on the method name
you specify within a connect(), I've found it's quite easy to introduce
subtle typos that aren't detected until you get this runtime failure
message.
Atlant
________________________________
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Nishant Sharma
Sent: Friday, August 27, 2010 5:12 AM
To: qt-interest
Subject: [Qt-interest] currentVerticalAlignmentChanged signal of QTextEdit
Hello,
I'm trying to add following signal-slot connection, but it gives an error while my GUI loads:
connect( editor, SIGNAL( currentVerticalAlignmentChanged(QTextEdit::VerticalAlignment )),this,SLOT(verticalAlignChanged(QTextEdit::VerticalAlignment )));
Here, editor is an object of class QTextEdit. My QT version is 3.3.6
The error that comes is:
QObject::connect: No such signal AotPlatTextEdit::currentVerticalAlignmentChanged(QTextEdit::VerticalAlignment)
QObject::connect: (sender name: 'formatedit_textEdit1')
QObject::connect: (receiver name: 'formatedit_1')
Any suggestions as to what could be the possible error?
--
Best Regards,
Nishant Sharma
Click here<https://www.mailcontrol.com/sr/y+AZcf6vEtfTndxI!oX7UlnwUb8+3gKcuU2+KVDXyC5ftpO173PBT5Absd8r4JqaocGl285CcG34pahZRjvH8A==> to report this email as spam.
________________________________
This e-mail and the information, including any attachments, it contains are intended to be a confidential communication only to the person or entity to whom it is addressed and may contain information that is privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the sender and destroy the original message.
Thank you.
Please consider the environment before printing this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100830/d287ccf3/attachment.html
More information about the Qt-interest-old
mailing list