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. QTableView select rows with cell merged
Qt 6.11 is out! See what's new in the release blog

QTableView select rows with cell merged

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

    Hi,

    I have a QTableView and i have merged some cells.
    When i click on an item, i want to select all merge rows.

    When i click on the merged cell, i get what i want :
    alt text

    But when i click on unmerged cell i get this :
    alt text
    or
    alt text

    How can i set the selection on the both rows ?

    Thx

    EDIT : i forgot to say that i'm in single selction mode and row selection mode.

    1 Reply Last reply
    0
    • RatzzR Offline
      RatzzR Offline
      Ratzz
      wrote on last edited by Ratzz
      #2

      @Zoptune
      Did you look at this ?

      --Alles ist gut.

      1 Reply Last reply
      1
      • ZoptuneZ Offline
        ZoptuneZ Offline
        Zoptune
        wrote on last edited by
        #3

        @Ratzz

        Hi and thx for reply,

        No i haven't seen this topic.
        I will take a look at it but i don't want the user to be able to select multiple rows.
        I want to consider rows with merged cells as a signle row.

        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