Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qt quick combobox signals
Qt 6.11 is out! See what's new in the release blog

Qt quick combobox signals

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 2 Posters 2.4k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    What are the signals that come with qml control combobox? I cannot find any list of signals that it has. I need signal "CurrentTextChanged". Qt creator's autocomplete shows that there exists "onCurrentTextChanged:". Will this work? Where can I find full list of signals of qt quick controls?

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Ok, I tested and onCurrentTextChanged worked but where can I find full list of signals?

      1 Reply Last reply
      0
      • J Offline
        J Offline
        Jens
        wrote on last edited by
        #3

        The reason there are no signals in the docs is that they are implicit. Every property you see in the control has an implicit onChanged signal.

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          bq. The reason there are no signals in the docs is that they are implicit. Every property you see in the control has an implicit onChanged signal.

          I don't get it. Maybe I don't get how qml works internally. Does it kind of transform to c++ widgets and so signals are automatically created?

          1 Reply Last reply
          0
          • J Offline
            J Offline
            Jens
            wrote on last edited by
            #5

            No it certainly has nothing to do with widgets. All properties that you declare in QML will emit signals when they change. Internally those qml properties are implemented as regular QObject-properties with appropriate setters, getters and change signals.

            If you declare a "property int foo" there will always be a "fooChanged" signal. All the properties in controls follow the same pattern.

            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