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

QTreeWidget::setColumnCount produces non empty headers

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.0.0
    • 4.7.2
    • Widgets: Itemviews
    • None
    • 37eb61677cb12ca4602e970f0d0ec6a9c0ae71e6

    Description

      I'm trying to use QTreeWidget with several headers and one of them should be empty. I've made a ui file in designer application and I'm using uic to create ui_*.h file.
      uic creates retranslateUi function with calling setText over every field in QTreeWidget header except empty. So, it assumes that by default every header field is empty (imho, it's correct behavior).
      However, http://qt.gitorious.org/qt/qt/blobs/4.7/src/gui/itemviews/qtreewidget.cpp#line200 shows that fields is not empty but filled with field number (imho, it's incorrect).
      So, I can't make QTreeWidget from designer, where one of header field is empty.

      Attachments

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

        Activity

          People

            tmartsum Thorbjørn Lund Martsum
            hate-engine Andrey Batyiev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes