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

QTreeWidget::setItemWidget should allow to control the alignment of widget

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 4.8.0
    • Widgets: Itemviews
    • None

    Description

      QTreeWidget::setItemWidget() should allow to control the alignment of the added widget.

      Change:

      void setItemWidget(QTreeWidgetItem *item, int column, QWidget *widget);
      (see http://doc.qt.nokia.com/4.8-snapshot/qtreewidget.html#setItemWidget)

      To:

      void setItemWidget(QTreeWidgetItem *item, int column, QWidget *widget, Qt::Alignment alignment = Qt:: AlignLeft);

      That way function would be backward compatible but give user the ability, if widget is smaller than the cell, to center it or to right align it in the cell.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            qtcomsupport Qt Support
            Votes:
            4 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes