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

Wrong checkbox spacing to text in QTableView with Windows 11 style

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Not Evaluated Not Evaluated
    • 6.8.1, 6.9.0 FF
    • 6.8
    • Widgets: Styles
    • None
    • Windows
    • 877b29a78 (dev), 71cba1359 (6.8)

      QStandardItem *nameItem = new QStandardItem(item);
      nameItem->setFlags(Qt::ItemIsUserCheckable | Qt::ItemIsEnabled);
      nameItem->setData(Qt::Unchecked, Qt::CheckStateRole); 

      By adding checkable flag to the item, a checkbox will be shown in the view.

      But the text and the checkbox are squeezed together in Windows11 style

       

       

      vista style looks fine.

       

       

       

       

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

            tpochep Timur Pocheptsov
            photonlili Li Xu
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes