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

QTreeView: Too much space between checkbox and icon

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12
    • Widgets: Itemviews
    • None
    • macOS High Sierrra, Version 10.13.6
    • macOS

    Description

      I've modified qt's simpletreemodel.pro example by adding 

      if (role == Qt::CheckStateRole) {        return Qt::Checked;    }
      if (role == Qt::DecorationRole) {        return QColor("red");    }

      to TreeModel::data.

      See attached screenshot - there is quite some space between the checkbox and the icon/red box.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            kosjar Nikolai Kosjar
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes