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 signal column span from the model?
Qt 6.11 is out! See what's new in the release blog

How to signal column span from the model?

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

    I want my model to be able to tell the view to span certain columns on certain rows.

    QAbstractItemModel::span looked promising, but the documentation states "Note: Currently, span is not used."

    I could implement a callback from the view and have the model call it when data should span columns, but that feels clumsy. Or maybe I could fudge something with a Qt::UserRole, but again that feels clumsy.

    What is the accepted way to have a model signal spanning to a view?

    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