Hello anyone,
I have Qt-4.2.3 on Windows XP
The problem is QStringList
I want to read a line with string items in QStringList through a Dialog .
I did this with QtSql and it works fine but i don't want to use QtSql.
I want to use a file.
mainwindow.cpp
This works but he only find one string materiaal.Code:
oid MainWindow::zoek() { zoekDialog dlg(this); QString treksterkte, koeling, snijsnelheid, voedingpertand, snedediepte, snedebreedte, return; QString line; do { line = stream.readLine(); if(!line.isEmpty()) { if(it != frees.end()) { if ( *it == materiaal ) leMateriaal->setText(*it); //put the text in the linedit. ++it; } } }while(!line.isEmpty()); file.close(); }
I want to find all the string items wich i choose in the comboboxes in the zoekdialog.
Thanks in advance