Qt quick combobox signals
-
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?
-
Ok, I tested and onCurrentTextChanged worked but where can I find full list of signals?
-
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.
-
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?
-
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.