Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. connect won't...
Forum Updated to NodeBB v4.3 + New Features

connect won't...

Scheduled Pinned Locked Moved Unsolved C++ Gurus
5 Posts 3 Posters 874 Views 4 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.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on 24 Jan 2024, 02:34 last edited by Anonymous_Banned275
    #1
    This post is deleted!
    A 1 Reply Last reply 24 Jan 2024, 05:53
    0
    • A Anonymous_Banned275
      24 Jan 2024, 02:34

      This post is deleted!

      A Offline
      A Offline
      Axel Spoerl
      Moderators
      wrote on 24 Jan 2024, 05:53 last edited by
      #2

      @AnneRanch
      Add

      qDebug() << __FUNCTION__ << __LINE__ << index_sub << subAction[index_sub];
      

      …after the call to setCheckable() and before the connect and post the output. That’s how to debug this.

      Software Engineer
      The Qt Company, Oslo

      A S 2 Replies Last reply 24 Jan 2024, 06:57
      0
      • A Axel Spoerl
        24 Jan 2024, 05:53

        @AnneRanch
        Add

        qDebug() << __FUNCTION__ << __LINE__ << index_sub << subAction[index_sub];
        

        …after the call to setCheckable() and before the connect and post the output. That’s how to debug this.

        A Offline
        A Offline
        Anonymous_Banned275
        wrote on 24 Jan 2024, 06:57 last edited by Anonymous_Banned275
        #3
        This post is deleted!
        A 1 Reply Last reply 24 Jan 2024, 19:45
        0
        • A Axel Spoerl
          24 Jan 2024, 05:53

          @AnneRanch
          Add

          qDebug() << __FUNCTION__ << __LINE__ << index_sub << subAction[index_sub];
          

          …after the call to setCheckable() and before the connect and post the output. That’s how to debug this.

          S Offline
          S Offline
          sierdzio
          Moderators
          wrote on 24 Jan 2024, 09:02 last edited by
          #4

          @Axel-Spoerl said in connect won't...:

          FUNCTION << LINE

          Can be shortened to Q_FUNC_INFO.

          (Z(:^

          1 Reply Last reply
          1
          • A Anonymous_Banned275
            24 Jan 2024, 06:57

            This post is deleted!

            A Offline
            A Offline
            Axel Spoerl
            Moderators
            wrote on 24 Jan 2024, 19:45 last edited by
            #5

            @AnneRanch said in connect won't...:

            Here's your problem:

            QObject::connect(QAction, MainWindow_Bluetooth): invalid nullptr parameter

            The array you use for the connect statement isn't populated properly.
            At this location:

            connect(subAction[index_sub] , &QAction::triggered, this ,
                                           [=]() { this->process_TEST() ;});
            

            ...you have a nullptr in subAction[index_sub].

            That's probably a result of the somewhat unusual approach to store actions in an array.

            Software Engineer
            The Qt Company, Oslo

            1 Reply Last reply
            1
            • C Christian Ehrlicher referenced this topic on 26 Jan 2024, 18:36

            5/5

            24 Jan 2024, 19:45

            • Login

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