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:
for ( int i = 0; i < tableWidgetPositionen->rowCount(); ++i )
{
query.bindValue ( ":Menge", tableWidgetPositionen->item( i, 0 )->text() );
query.bindValue ( ":Preis", >tableWidgetPositionen->item( i, 1 )->text() );
query.exec();
}
for ( int i = 0; i < tableWidgetPositionen->rowCount(); ++i )
{
query.bindValue ( ":Menge", tableWidgetPositionen->item( i, 0 )->text() );
query.bindValue ( ":Preis", >tableWidgetPositionen->item( i, 1 )->text() );
query.exec();
}
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
Bookmarks