Hi guys,

I can't find a simple solution just now while changing some source from QTableWidget to QTreeWidget:

Using QTableWidget I can do something like this:

Qt Code:
  1. for ( int i = 0; i < tableWidgetPositionen->rowCount(); ++i )
  2. {
  3. query.bindValue ( ":Menge", tableWidgetPositionen->item( i, 0 )->text() );
  4. query.bindValue ( ":Preis", >tableWidgetPositionen->item( i, 1 )->text() );
  5.  
  6. query.exec();
  7. }
To copy to clipboard, switch view to plain text mode 

How can I do something similar using a QTreeWidget?

I'm sure, it's very simple but I can't figure it out.

May be I should take a break ...

Best regards and thanks in advance.

Guenther
Davao City, Philippines, Planet Earth, 28.0 °C