Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-37694

Combobox activated-signal

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.2.1, 5.3.0 Alpha
    • Documentation
    • None

    Description

      In documentation (http://qt-project.org/doc/qt-5/qml-qtquick-controls-combobox.html#activated-signal)

      activated(int index)
      "This signal is similar to currentIndex changed, but will only be emitted if the combo box index was changed by the user and not when set programatically."

      This is not quite true. When CurrentIndexChanged() signal arrives, the index is already changed and you can set new index in that signal (currentIndex = 0 for example)
      However, in activated() signal, the index is not yet set, so setting currentIndex at that point will not change current index. This would be good to be documented.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            docteam Qt Documentation Team
            qtcomsupport Qt Support
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes