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

QComboBox Does Not Display Current Text in UI When a Non-Default Value is Selected in a Qt for UWP Application

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P2: Important
    • None
    • 5.14.1
    • None
    • Visual Studio 2019
      Windows (Version 1909 - OS Build 18362)
    • Windows, WinRT

    Description

      In the QComboBox, when I select a different value from the drop-down list, the selected value is not displayed once the drop-down list closes. The box still shows the default value (text). But when I observe the value received by currentIndex, it corresponds to the selected value. Whenever I select a non-default value, the UI seems to be blocked. I cannot interact with any other UI elements except the QComboBox element.

      Whenever I click on the *QComboBox *and select a value, I do not get control of the UI back. Everything in the UI is stuck but whichever button I click is emitting the signal in the background. The UI does not respond at all.

      ADDITIONAL INFO (Might Help in Your Debug Process):

      I was tinkering around trying to understand what was causing this behavior. During this process, I stumbled upon a workaround to get the UI to respond again. If I launch a QMessageBox within the QComboBox's currentTextChanged signal, I get the UI control back (the currentText UI value changes to the value that I previously selected) when I press OK on the QMessageBox pop-up.

      Attachments

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

        Activity

          People

            owolff Oliver Wolff
            vb0987 Boga Vishal
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes