[quote author="Gerolf" date="1312617901"]Ok, so your problem is to store a variable of type char which is used as byte (number) not as character. Here comes your problem:
setValue gets a QVariant. QVariant has some implicit constructors which can create the QVariant from bool, int, QString, QChar, ...
QChar can be constructed by a char, but it interprets the value as a character, and decimal 1 is not a valid printable character.
That's why it does not work as expected.[/quote]
I don't understand what you are saying because the code works when i use char tt=1; it seems that i had the code correct right from the beginning. I just got mixed up with the two ini files that were created.
nevertheless, the code works great. thank you Gerolf for your help