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 724 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 last edited by Anonymous_Banned275
    #1
    This post is deleted!
    Axel SpoerlA 1 Reply Last reply
    0
    • A Anonymous_Banned275

      This post is deleted!

      Axel SpoerlA Offline
      Axel SpoerlA Offline
      Axel Spoerl
      Moderators
      wrote on 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 sierdzioS 2 Replies Last reply
      0
      • Axel SpoerlA Axel Spoerl

        @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 last edited by Anonymous_Banned275
        #3
        This post is deleted!
        Axel SpoerlA 1 Reply Last reply
        0
        • Axel SpoerlA Axel Spoerl

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

          sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on 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

            This post is deleted!

            Axel SpoerlA Offline
            Axel SpoerlA Offline
            Axel Spoerl
            Moderators
            wrote on 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
            • Christian EhrlicherC Christian Ehrlicher referenced this topic on

            • Login

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