Hi all,
It's been a while since I tried to programme with Qt and I already encoutered my first problem :-)
Why does the following QMessage appear twice after the signal is emitted?
This is my code (parts of it)
connect(ui.tvDir, SIGNAL(activated(QModelIndex)), this, SLOT(on_tvDir_activated(QModelIndex)));
To copy to clipboard, switch view to plain text mode
and
{
...
if( ext.toUpper() == "GEF" )
QMessageBox::information(this,
"test",
"found gef file");
//ThisMessage is shown twice?!
}
void MainForm::on_tvDir_activated(QModelIndex index)
{
...
if( ext.toUpper() == "GEF" )
QMessageBox::information(this, "test", "found gef file");
//ThisMessage is shown twice?!
}
To copy to clipboard, switch view to plain text mode
Thanks in advance
Bookmarks