Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Emit signal from a static method and connect it to a setValue slot on a progress bar

    General and Desktop
    3
    3
    154
    Loading More Posts
    • 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.
    • I
      In Fo last edited by In Fo

      This post is deleted!
      JonB 1 Reply Last reply Reply Quote 0
      • Christian Ehrlicher
        Christian Ehrlicher Lifetime Qt Champion last edited by

        @In-Fo said in Emit signal from a static method and connect it to a setValue slot on a progress bar:

        What does it mean, "no such signal"?

        It means that there is no signal saveProgressChanged() and it's correct. You only have a signal saveProgressChanged(quint32)
        And your slot signature is also wrong. See signals and slot documentation.

        Qt has to stay free or it will die.

        1 Reply Last reply Reply Quote 2
        • JonB
          JonB @In Fo last edited by JonB

          @In-Fo said in Emit signal from a static method and connect it to a setValue slot on a progress bar:

          In the console window I get the following message, and the progress is not set:

          Once you have read the topic @Christian-Ehrlicher refers you to, you would find it better to manage and you would get a compile-time error instead of a runtime one, if you changed over from the old SIGNAL/SLOT() macros you are using to the new style syntax, as illustrated there and in https://wiki.qt.io/New_Signal_Slot_Syntax.

          1 Reply Last reply Reply Quote 1
          • First post
            Last post