Answer the question
In order to leave comments, you need to log in
QTreeView and QSqlRelationTableModel/QTableModel?
Hello.
Faced with the following situation.
I have 4 tables Devices, Switchs, Channels, Sensors connected by foreign keys. Logically, they represent a hierarchical structure.
Device{
Switch{
Channel{
Sensor1
Sensor2
Sensor3
}
}
}
Answer the question
In order to leave comments, you need to log in
In your case, I think the most flexible option is the successor from QAbstractItemModel . It is quite possible to display it using QTreeView.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question