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. You cannot connect anything to a signal in the same class.
Qt 6.11 is out! See what's new in the release blog

You cannot connect anything to a signal in the same class.

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 830 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.
  • M Offline
    M Offline
    mtty
    wrote on last edited by mtty
    #1
    This post is deleted!
    JonBJ 1 Reply Last reply
    0
    • M mtty

      This post is deleted!

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

      @mtty
      Just to say: there is no problem connecting a signal to a slot (functor or method) within the same class. Your code for that is correct, as far as your snippet shows. I cannot say anything about QML as I know nothing about that. If signal this->portChanged() is raised your qDebug() or this->textSlot() should be called. (I assume your _timer is a class member or "global".)

      Your this must be of class BackboneInf, how does that relate to your class Ctr? I am lost on that in your code....

      1 Reply Last reply
      2
      • M mtty has marked this topic as solved on
      • M Offline
        M Offline
        mtty
        wrote on last edited by
        #3

        @JonB thank you for quick reply. It is stupid mistake. Another constructor is used; my mistake.

        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