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 autofill when drop down in Qt table?

How to autofill when drop down in Qt table?

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 436 Views 2 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.
  • D Offline
    D Offline
    dxq38
    wrote on last edited by
    #1

    Hi all, I'm new to Qt. Can i autofill cell when hold and dropdown in table of Qt?
    Eg: A1 cell is 1, A2 is 2, then i select A1 and A2 cell, hold and drop down, then A3 is 3, A4 is 4 ......
    Like in MS Excel, how can i do this in Qt? Thanks!!

    JKSHJ 1 Reply Last reply
    0
    • D dxq38

      Hi all, I'm new to Qt. Can i autofill cell when hold and dropdown in table of Qt?
      Eg: A1 cell is 1, A2 is 2, then i select A1 and A2 cell, hold and drop down, then A3 is 3, A4 is 4 ......
      Like in MS Excel, how can i do this in Qt? Thanks!!

      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hi, and welcome!

      @dxq38 said in How to autofill when drop down in Qt table?:

      Hi all, I'm new to Qt. Can i autofill cell when hold and dropdown in table of Qt?
      Eg: A1 cell is 1, A2 is 2, then i select A1 and A2 cell, hold and drop down, then A3 is 3, A4 is 4 ......
      Like in MS Excel, how can i do this in Qt? Thanks!!

      Qt does not have this feature. You must write custom code to get this feature, such as by subclassing QTableView. However, this is quite complicated so I don't recommend it for newcomers to Qt.

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      D 1 Reply Last reply
      0
      • JKSHJ JKSH

        Hi, and welcome!

        @dxq38 said in How to autofill when drop down in Qt table?:

        Hi all, I'm new to Qt. Can i autofill cell when hold and dropdown in table of Qt?
        Eg: A1 cell is 1, A2 is 2, then i select A1 and A2 cell, hold and drop down, then A3 is 3, A4 is 4 ......
        Like in MS Excel, how can i do this in Qt? Thanks!!

        Qt does not have this feature. You must write custom code to get this feature, such as by subclassing QTableView. However, this is quite complicated so I don't recommend it for newcomers to Qt.

        D Offline
        D Offline
        dxq38
        wrote on last edited by dxq38
        #3

        @JKSH Thanks! I will reference Official example "SpreadSheet".

        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