Problem connect statusBarMessage et showMessage



  • if I understood well SIGNAL statusBarMessage of QWebView sends details of page loads I want to connect it with the SLOT ShowMessage of QStautBar when I compil there is no eroor but the details does not appear even if i connect the SIGNAL statusBarMessage directly with showMessage
    @connect(pageActuelle(),SIGNAL(statusBarMessage(QString)),this,SLOT(chargement(QString)));@
    pageActuelle=QWebView
    @
    voidmainWind::chargement(QStringconst&message)
    {
    ui->statusbar->showMessage(message,2000);
    }@
    thanks guys



  • It would be really nice if you could write in English here. At least bad English is better then French in the general forum.

    There should be a local French group where you might be allowed to write in your language.



  • I don't understand anything what you wrote but let's guess:

    • is "chargement" declared as a slot?
    • does pageActuelle object exist when you are trying to connect its' signal to slot?
    • didn't you forget about Q_OBJECT macro in any header?


  • is “chargement” declared as a slot? yes
    does pageActuelle object exist when you are trying to connect its’ signal to slot? yes
    i didn't understand this sentence "didn’t you forget about Q_OBJECT macro in any header?"
    i have changed the topic in english


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.