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. How to let QTableView draw column contains only CheckBox ?
Qt 6.11 is out! See what's new in the release blog

How to let QTableView draw column contains only CheckBox ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 590 Views
  • 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.
  • J Offline
    J Offline
    JediMaster
    wrote on last edited by
    #1

    Hi,

    I'd like to know is there anyway to only draw the checkbox in the cell of QTableView.

    I tried to return the role for the specific column QtCore.Qt.ItemIsEnabled | QtCore.Qt.ItemIsUserCheckable, but there is always a text editable widget stay beside the checkbox.

    alt text

    Is there anyway to get rid of that text edit widget ? Thanks very much !

    1 Reply Last reply
    0

    • Login

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