Hi,

I'm trying to 'connect' the value of a QSlider to a LineEdit's setText, but it doesn't work. On compiling there are no errors, but the value doesn't get into LineEdit...
Here is the code i've used:
#include <QApplication>
#include <QSlider>
#include <QLineEdit>
int main(int argc, char* argv[])
{
QApplication app(argc, argv);
QSlider *sldValue = new QSlider(Qt::Horizontal);
QLineEdit *leValue = new QLineEdit;
QObject::connect(sldValue, SIGNAL(valueChanged(int)), leValue, SLOT(setText("Test")));
// i just use the text 'Test' for now; this doesn't work also
// the widgets are then added to a layout
return app.exec();
}
With this example i just want to put the text 'Test' into LineEdit when the slider has changed of value. Can't be that hard?

I'm keeping the example very short, because i want this time to get QT right (i've abanded QT many times because i find it very difficult to learn)

Thanx in advance,
Misko