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

Wrong checkbox spacing to text in QTableView with Windows 11 style

    XMLWordPrintable

Details

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

    Description

      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.

       

       

       

       

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes