Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. I want to put a custom checkbox in QStandardItemModel.
Forum Updated to NodeBB v4.3 + New Features

I want to put a custom checkbox in QStandardItemModel.

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 190 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    IknowQT
    wrote on last edited by
    #1

    As in the title, I want to put a custom checkbox in the table.

    I know that basic checkboxes can be put through flags such as checkable. Please tell me how to put a custom checkbox I made instead of the default control

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      The model does not contain a checkbox of any type: it is purely a data structure.

      You need a QStyledItemDelegate to provide custom rendering of a table cell in a table view.

      1 Reply Last reply
      3

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved