Solved 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!! -
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. -
@JKSH Thanks! I will reference Official example "SpreadSheet".