Thanks for your answer, I know you're relly busy
but it gives me a :
Violación de segmento
*** Segment Violation ***
I already had tryied that before but not with the setSqlCursor and on another cpp
I implemented it on the form.ui.h as this:
QSqlCursor cursor( DB_TABLA,TRUE );
tabla = new QDataTable( &cursor );
tabla->setSqlCursor ( &cursor, TRUE,FALSE);
tabla->refresh();
tabla->show();
QSqlCursor cursor( DB_TABLA,TRUE );
tabla = new QDataTable( &cursor );
tabla->setSqlCursor ( &cursor, TRUE,FALSE);
tabla->refresh();
tabla->show();
To copy to clipboard, switch view to plain text mode
where:
tabla is the QDataTable
DB_TABLA a public QString that captures the table name on the form inputed by the user
[joke] I didn't violate anyone named segment [/joke]
Bookmarks