Hello anyone,

I have Qt-4.2.2 installed.

I have in a MainWindow a Label called searchLabel.
In Qt-4.2 there is a new signal LinkActivated();
I want to click on the searchLabel to start a another application for example a Dialog.

In my MainWindow i have the connection:

Qt Code:
  1. connect(searchLabel, SIGNAL(linkActivated(const QString &)), this, SLOT(search()));
  2.  
  3. void MainWindow::search()
  4. {
  5. searchDialog dlg(this);
  6. if( dlg.exec() == QDialog::Accepted ) {
  7. }
  8. }
To copy to clipboard, switch view to plain text mode 
Normally in the docs the signal is:
connect(label_2, SIGNAL(linkActivated(const QString & )), this, SLOT(myslot(const QString &)));

In my Qt-Designer the flag Qt::LinksAccessibleByMouse is set.

Nothing happens, no errors in my console.

Can i use the signal LinkActivated() only for a URL adress?.

Thanks in advance.