Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

QT QComboBox Signal Problem

89 views
Skip to first unread message

Berk

unread,
Jul 9, 2010, 10:23:10 AM7/9/10
to
Hello,

I have a problem about handling QComboBox's editTextChanged and
mousepressed signals. Debugger's message is:

Object::connect: No such signal QComboBox::editTextChanged() in .
\satelliteviewer.cpp:42
Object::connect: No such signal QGroupBox::mousepressed() in .
\satelliteviewer.cpp:43

My code is so below:

In ctor:

connect(selectSatelliteComboBox, SIGNAL(currentIndexChanged()), this,
SLOT(comboBox_currentIndexChangedSlot(const QString &text)));

connect(selectSatelliteComboBox, SIGNAL(editTextChanged()), this,
SLOT(comboBox_editTextChanged(const QString &text)));

In header file

public slots:
void comboBox_currentIndexChanged(QString &text);
void comboBox_editTextChanged(QString &text);

And in .c file my handler definitions correctly exists.

It's weird but I can handle non-parametered signals but if a signal's
slot has a function parameter I can't handle.

Any help will be appreciated..


0 new messages