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

Do not set the current value QComboBox after retranslateUi()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.2.1
    • Build tools: uic
    • None

    Description

      When transferring the combo box, uic.exe generates the following code: comboLanguage->clear();
      сomboLanguage->insertItems(0, QStringList()
      << QApplication::translate("PropertiesApplication", "Russian", 0)
      << QApplication::translate("PropertiesApplication", "English", 0)
      );
      ie, when the call is transferred, the model QComboBox clean and brings new text values​​. Thus combobox sends a signal currentIndexChanged (int) twice with the values ​​1 and 0, and does not save the current value. The only option is to keep the individual values ​​combo boxes and put them manually after the transfer. What to do if a large amount?

      Attachments

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

        Activity

          People

            jkobus Jarek Kobus
            valerycpp Valery Mar
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes