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. Emit signal from a static method and connect it to a setValue slot on a progress bar
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 375 Views
  • 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 Offline
    I Offline
    In Fo
    wrote on last edited by In Fo
    #1
    This post is deleted!
    JonBJ 1 Reply Last reply
    0
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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 Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      2
      • I In Fo

        This post is deleted!

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by JonB
        #3

        @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
        1

        • Login

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