QColumnView example

  • Hello, how can I use QColumnView with a QSqlTableModel object?

    For example, with this code

    @QSqlTableModel *model = new QSqlTableModel ;

    QColumnView *view = new QColumnView;

    I can see the first column of dataBaseTable in the first column of the columnView, but if I click one element of the view, how I can to see the next column of the databaseTable in the next column of the columnView?


Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.