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. Subclassing QItemSelectionModel
QtWS25 Last Chance

Subclassing QItemSelectionModel

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

    Hi I am new to Qt Creator. I am looking for simple example of subclassing QItemSelectionModel for QTableView. I want to only enable multiple row selection for the first two columns on my QTableView and disable the rest of my columns where i have a delegate for editing the model data.

    The first two columns are data that won't be changing. The multiple selection allows me to enter one value and apply it to multiple channels.

    Any help would be appreciated.

    Thanks

    1 Reply Last reply
    0
    • H Offline
      H Offline
      htdev
      wrote on last edited by
      #2

      I did figure out how to do this. I made a"simple" mistake and it took me two hours to find out.

      Thanks anyway.

      1 Reply Last reply
      0
      • Y Offline
        Y Offline
        Yash
        wrote on last edited by
        #3

        Just to add little info:

        when creating instance of subclass don't forget to pass view/widget model as parent else you will waste 3 hours like me.

        http://kineticwing.com : Web IDE, QSS Editor
        http://speedovation.com : Development Lab

        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