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. QTableWidget custom widget delegate
Forum Updated to NodeBB v4.3 + New Features

QTableWidget custom widget delegate

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 1.0k 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.
  • A Offline
    A Offline
    amezei
    wrote on last edited by
    #1

    Hi!

    I want to add a custom widget (checkboxes with an ok button) to a QTableWidget cell. I know that I have to use delegate for that, but the delegate should not only appear in edit mode, but in default mode too. For example in default mode the chexboxes are shown only and in edit mode the ok button should appear too. Can you please give me an advice or tutorial how to do that?

    Thanks!

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      Page 193, "An Editable Column or Row Delegate", Advanced Qt Programming: Creating Great Software with C++ and Qt 4 (applies to Qt5 too)

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      2

      • Login

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