PDA

View Full Version : help! hello world project problem



Cantora
2nd April 2009, 03:47
Hi all,
I am follow a reference book example but i face below problem :(

Object::connect: No such signal QLineEdit::testChanged(const QString &) in .\cmaindialog.cpp:21
Object::connect: No such signal QPushButton::Clicked() in .\cmaindialog.cpp:24
Object::connect: No such signal QPushButton::Clicked() in .\cmaindialog.cpp:25

my source code is as below:

label = new QLabel(tr("Find &what:"));
lineEdit = new QLineEdit;
label->setBuddy(lineEdit);

caseCheckBox = new QCheckBox(tr("Match &case"));
backwardCheckBox = new QCheckBox(tr("Search &backward"));

findButton = new QPushButton(tr("&Find"));
findButton->setDefault(true);
findButton->setEnabled(false);

closeButton = new QPushButton(tr("Close"));

connect(lineEdit, SIGNAL(testChanged(const QString &)), this,
SLOT(enableFindButton(const QString &)));
connect(findButton, SIGNAL(Clicked()), this, SLOT(findClicked));
connect(closeButton, SIGNAL(Clicked()), this, SLOT(close()));

Cantora
2nd April 2009, 04:02
Hi all,

I found the reason already.. all is case sensitive problem.. haiz..