title: QComboBox Does Not Display Current Text in UI When a Non-Default Value is Selected
body: <p>I am developing a UWP application for Windows 10 using Qt for UWP.</p>
  
  <p>One of the UI elements in my application is a QComboBox. The application's logic and the corresponding UI works as expected when the default value (text) is not changed. </p>
  
  <p>However, 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 <code>currentIndex</code>, 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.</p>
  
  <p>Has anyone faced this problem before? How do I ensure that the current selected values is displayed in the QComboBox?</p>
  
  <p><strong>UPDATE</strong>:</p>
  
  <p>I built a demo application to check the <code>QComboBox</code> functionality on its own and I see the same behavior. I just added a few items to the <code>QComboBox</code> widget and built the application with both <strong>msvc2017_64</strong> and <strong>winrt_x64_msvc2017</strong> of <strong>Qt 5.14.1</strong>.</p>
  
  <p>When I launch the app that was build using <strong>msvc2017_64</strong>, I get a window with the <code>QComboBox</code> widget. When I select a value, that value is displayed when the drop-down menu closes.</p>
  
  <p>However, when this is not the case with the UWP application that I build with <strong>winrt_x64_msvc2017</strong>. It does not show me the updated value. It stays stuck at the default value.</p>
  
  <p>Another problem that I observed in my original UWP app was that whenever I click on the <code>QComboBox</code> 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.</p>
  
  <p><strong>UPDATE 2</strong></p>
  
  <p>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 <code>QMessageBox</code> within the <code>QComboBox</code>'s <code>currentTextChanged</code> signal, I get the UI control back (the <code>currentText</code> changes to the value that I previously selected) when I press <strong>OK</strong> on the <code>QMessageBox</code> pop-up.</p>
  
  <p>I do not understand why this workaround gives me back control of the UI and gets things working. Please help me understand this. </p>