Originally Posted by
dragon
I don't understand what you mean with assign en contents.
Can you give me a little example?
Here you assign to the variable called name:
name = (query.value(0).toString());
name = (query.value(0).toString());
To copy to clipboard, switch view to plain text mode
If you want to make a search you need something like this:
while ( query.next() )
if(name == query.value(0).toString()){
leFirst->setText( name );
break;
}
}
while ( query.next() )
if(name == query.value(0).toString()){
leFirst->setText( name );
break;
}
}
To copy to clipboard, switch view to plain text mode
Do you see the difference?
Bookmarks