No, but to test, I've set displaying title() in LineEdit and I've run the browser. Nothing happened. The function still held an empty string. However, I've connected all this functions by signals and slots:
pagex.h:
signals:
private slots:
signals:
void title(QString);
private slots:
void titleChanged(QString t);
To copy to clipboard, switch view to plain text mode
pagex.cpp:
connect(ui
->web,
SIGNAL(titleChanged
(QString)),
this,
SLOT(titleChanged
(QString)));
//...
void pagex
::titleChanged(QString t
){ emit title(t);
}
connect(ui->web, SIGNAL(titleChanged(QString)), this, SLOT(titleChanged(QString)));
//...
void pagex::titleChanged(QString t){
emit title(t);
}
To copy to clipboard, switch view to plain text mode
And now it works, I can display the title that I've searched for. Thanks for your help.
Bookmarks