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

Problem connect statusBarMessage et showMessage

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 992 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.
  • P Offline
    P Offline
    Phenixo
    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

    to be a professional programmer is my goal :p

    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
        • P Offline
          P Offline
          Phenixo
          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

          to be a professional programmer is my goal :p

          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