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:

Qt Code:
  1. QSqlCursor cursor( DB_TABLA,TRUE );
  2. tabla = new QDataTable( &cursor );
  3. tabla->setSqlCursor ( &cursor, TRUE,FALSE);
  4. tabla->refresh();
  5. 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]