Qt-interest Archive, April 2007
QSlider and QLineEdit
Message 1 in thread
hi,all
i am puzzled by these two widgets when i try to connect them together in qt
designer using signals and slots .
1. first , i want connect QLineEdit' s textChanged() signal to QSlider's
relevant slot--setValue(), but there is no this slot shown , and i am sure i
have "check" the "Show all signals and slots" checkbox.
2.second, i want connect QSlider's valueChanged() signal toQLineEdit' s
relevant slot--setText(), still there is no this slot shown.
what is the reason?
thanks
regards
fengli zhang
Message 2 in thread
Hi,
> 1. first , i want connect QLineEdit' s textChanged() signal to QSlider's
> relevant slot--setValue(), but there is no this slot shown , and i am
> sure i have "check" the "Show all signals and slots" checkbox.
The signal is:
QLineEdit::textChanged(const QString &)
The slot is:
setValue(int)
The arguments are not compatible.
> 2.second, i want connect QSlider's valueChanged() signal toQLineEdit'
> s relevant slot--setText(), still there is no this slot shown.
> what is the reason?
The signal is:
QAbstractSlider::valueChanged(int)
The slot is:
setText(const QString &)
The arguments are not compatible.
--
[ signature omitted ]