carvi
10th April 2011, 21:12
Hello,
I am working on the project in QT using QSQLITE database. I have a table that contains informations about the cars. I've created a QSqlTableModel object and set it in QTableView object. I want to click on a cell(mark it) in the table, push button "delete" and delete whole row which contains that cell. I've no idea how to do it. I thought about emitting signal "activated" from QTableView object. Unfortunately it doesn't work.
connect(ui->tablecarsv,SIGNAL(activated(QModelIndex)),this, SLOT(do23 (QModelIndex)))
Next thing: How to set "read only" or frozen for column in table that is displays in QTableView?
Thanks in advance:)
I am working on the project in QT using QSQLITE database. I have a table that contains informations about the cars. I've created a QSqlTableModel object and set it in QTableView object. I want to click on a cell(mark it) in the table, push button "delete" and delete whole row which contains that cell. I've no idea how to do it. I thought about emitting signal "activated" from QTableView object. Unfortunately it doesn't work.
connect(ui->tablecarsv,SIGNAL(activated(QModelIndex)),this, SLOT(do23 (QModelIndex)))
Next thing: How to set "read only" or frozen for column in table that is displays in QTableView?
Thanks in advance:)