[solved] unable to accessing signal 'textChanged' from base 'QLineEdit' class
General and Desktop
4
Posts
3
Posters
7.9k
Views
1
Watching
-
I have a class like this:
@class MathEditPoint : public QLineEdit {
Q_OBJECTpublic:
MathEditPoint(QWidget * parent);. . . . .
public slots:
void upDateSize( const QString & text );. . . . .
};
MathEditPoint::MathEditPoint(QWidget * parent)
: QLineEdit(parent) {
connect(this, SIGNAL( textChanged( const QString & text ) ),
this, SLOT( upDateSize( const QString & text ) ));. . . . .
}@
I get the following error when running:
Object::connect: No such signal MathEditPoint::textChanged( const QString & text ) in MathEditPoint.cppAccording the the documentation the base class QlineEdit has a single “void QLineEdit::textChanged ( const QString & text ) [signal]”. Why can I not access it?
Thanks
-