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

QItemDelegate displays inconsistent strings for boolean values

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3: Somewhat important P3: Somewhat important
    • 4.6.0
    • 4.3.1
    • Widgets: Itemviews
    • None

      QItemDelegate displays different strings representing boolean values depending on whether or not the item is being edited.

      When editing the boolean value, a QComboBox is used as the editor, which contains "False" and "True" as the entries. These strings are also set up for translation, so they will display as "Falsch" and "Wahr" if a German translation is used.

      However, when not in editing mode, the string representations are retrieved from QVariant, which returns lower-case "false" and "true" for the two boolean values.

      Items containing boolean values should display the same string representation of the value whether or not the item is being edited.

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

            vfm Thierry Bastian (closed Nokia identity) (Inactive)
            sthomass Stian Sandvik Thomassen (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes