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

QComboBox findText fails at 1e item

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.6.1
    • None
    • Windows

      findText method of QComboBox fails on 1e item. Looks like it skips the first in the search.

      so:

      QComboBox* typeComboBox = new QComboBox();
      typeComboBox->addItem("first");
      typeComboBox->addItem("second");

      qDebug() << typeComboBox->findText("first"); // return false
      qDebug() << typeComboBox->findText("second"); // return true

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            jeanc Jean Custers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes