Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Blank spreadsheet like table using QTableView



  • Hi,
    I would like to make spreadsheet like table, to enter data by users, and finally save to a mysql database on submitting using a button. Can I use QTableView with QSqlRelationalTableModel for the above purpose? or any suggestion?
    Thanking You,
    Ras



  • You can use a [[Doc:QSqlTableModel]] and set it on a [[Doc:QTableView]]. I'll leave it to you to find the snippets in the two linked doc pages :-)


Log in to reply