Ahhhhh now I am seeing the wood between the trees. ;o))

First I have to add the databases with the connectionnames and after that I have to use it like this

Qt Code:
  1. QSqlDatabase usedDB2 = QSqlDatabase::database("second") ;
  2. usedDB2.open();
  3. redModel = new QSqlTableModel(redTab,usedDB2);
To copy to clipboard, switch view to plain text mode 

Thanx a lot lot lot lot now I understand it ;o))