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. [SOLVED] Is it possible to use QBitArray as signal's or slot's argument ?
Qt 6.11 is out! See what's new in the release blog

[SOLVED] Is it possible to use QBitArray as signal's or slot's argument ?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 1.9k 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.
  • A Offline
    A Offline
    Anticross
    wrote on last edited by
    #1

    So, here is the question: "Is it possible to use QBitArray as signal's or slot's argument ?". When I write signal no errors shown but when I write slot and make a connect connect(musWg, SIGNAL(stateChanged(QBitArray)), this, SIGNAL(onStateChanged(QBitArray))); I have this message in MSVC console: 1>Compiling...
    1>moc_MusWidget.cpp
    1>moc_MainWidget.cpp
    1>.\GeneratedFiles\Debug\moc_MainWidget.cpp(54) : error C2664: 'MainWidget::onStateChanged' : cannot convert parameter 1 from 'QBitArray' to 'QBitArray'
    1> Source or target has incomplete type
    1>MainWidget.cpp
    1>Generating Code...
    1>Build log was saved at "file://C:\Documents and Settings\BuildLog.htm"
    1>V3ImitationProgram - 1 error(s), 0 warning(s)

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on last edited by
      #2

      Did you <code>#include <QBitArray></code>?

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Anticross
        wrote on last edited by
        #3

        Oh, really forgot :) Thanks.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          deleted28
          wrote on last edited by
          #4

          Hello Anticross,

          using QBitArray as Signal/ Slot argument sounds interesting.
          Can you show little more what for and how you are using this ?

          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