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

Qt Designer writes duplicate verticalHeaderVisible entries in its *.ui file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 4.7.0
    • 4.6.1, 4.6.2
    • Tools: Designer
    • None
    • Various Linux systems as well as MacOS X (i.e. the bug seems to be OS independent)
    • 6f8364a

    Description

      When adding a QTableWidget to a window and setting its verticalHeaderVisible property, the Qt Designer writes that attribute twice into its *.ui file, i.e.:

      <widget class="QTableWidget" name="myTableWidget">
      ...
      <attribute name="verticalHeaderVisible">
      <bool>false</bool>
      </attribute>
      <attribute name="verticalHeaderVisible">
      <bool>false</bool>
      </attribute>
      ...
      </widget>

      BTW, the UIC tool seems to accept that broken *.ui file and generates the corresponding attribute-setting code just once:

      myTableWidget->verticalHeader()->setVisible(false);

      The Designer of Qt 4.6.0 did not have that bug. The bug has been introduced in Qt 4.6.1 and persists in Qt 4.6.2. The bug might have been introduced while solving QTBUG-6505.

      Attachments

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

        Activity

          People

            jkobus Jarek Kobus
            vog Volker Grabsch
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes