Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Problem connect statusBarMessage et showMessage
Qt 6.11 is out! See what's new in the release blog

Problem connect statusBarMessage et showMessage

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • B Offline
      B Offline
      butterface
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • W Offline
        W Offline
        west
        wrote on last edited by
        #3

        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?
        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved