I'm using code like the following,

     QString s = "Raw data file (*.raw)";
     QFileDialog fd;
     QString fileName = QFileDialog::getOpenFileName(QString::null,
     tr( "Text files (*.txt);;All files (*)" ), this, "Open file");

     connect(fd, SIGNAL(filterSelected(const QString &)), this,filter );

     public static void filter( QString f ) {

        QMessageBox::information(this, "Selected Filter", f );
     }

I want to show a MessageBox to the user that inform s/he about which filter
that selected,
but it doesn't work, it seems that SIGNAL won't be emitted , What is the
problem?

also I can't use :
connect(fd, SIGNAL(filterSelected(const QString &)), this,
SLOT(filter(s)));
is there any help?!!
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to