[Qt-interest] Problem with getExistingDirectory....Please advise

Usman Ajmal uzmanajmal at gmail.com
Tue May 12 08:35:36 CEST 2009


I have a
class Ui_MainWindow : public QMainWindow

It has one public function as below:

void addDirectory() {
    QWidget k;
    QString s = MyFileDialog::getExistingDirectory(this);
    lineEdit->setText(s);}

I want when i click on a a button named Browse, the above function may run.
I am using following LOC for this purpose

QObject::connect(Browse, SIGNAL(clicked()),this , SIGNAL(addDirectory()));

Please suggest what should i write in place of 'this' because the current
code, after compilation gives following error
No such signal QMainWindow::addDirectory()


Many Thanks...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090512/c1297926/attachment.html 


More information about the Qt-interest-old mailing list