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. Problem with slot with multiple variables
Forum Updated to NodeBB v4.3 + New Features

Problem with slot with multiple variables

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 372 Views 1 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.
  • B Offline
    B Offline
    BeastBook
    wrote on last edited by
    #1

    Hi i want to create signal and slot .When user change index of combobox slot with multiple variables should be emmited but i get an error .I am using Qt creator version 4.8.1

    connect(player1,currentIndexChanged(const QString&),this,[this]{ change(player1,player2,player3,player4,player5,player6,player7,player8,player9,player10); });

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      That connect statement is wrong, hence your error. You are doing some kind of mix between the old and new syntax.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      B 1 Reply Last reply
      2
      • SGaistS SGaist

        Hi,

        That connect statement is wrong, hence your error. You are doing some kind of mix between the old and new syntax.

        B Offline
        B Offline
        BeastBook
        wrote on last edited by
        #3

        @SGaist I solve my problem Thank your

        aha_1980A 1 Reply Last reply
        0
        • B BeastBook

          @SGaist I solve my problem Thank your

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @BeastBook then please mark this topic as SOLVED too. Thanks

          Qt has to stay free or it will die.

          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