PDA

View Full Version : table widget style problem



zgulser
17th February 2010, 10:19
Hi buddies,

I have the following problem right now.

When I click or select an item in list or table widget in my computer, it seems OK. I mean it's background gets black or something. I see it's selected. However, it doesn't work like this way in another PC. It's selected again but it's color is far different than the original one which is something between white and yellow. What could be the reason?

Thanks in advance

aamer4yu
17th February 2010, 10:29
And what does OS the another pc has ?
Qt usually renders things in native way. May be thats why you are getting the problem.

zgulser
17th February 2010, 12:48
hi,

no..but I solved it. it was about using motif style. Just need to change .bat file by adding " start foo.exe -style motif "

Lykurg
17th February 2010, 13:23
You can use the static function QApplication::setStyle() to set the style. Then the user can't do anything wrong.