rokkamraja
19th October 2009, 09:30
Hi All,
I have an external resource script in which I embed stringResources.txt -
Essentially stringResources.txt is a QMap< QString, QString > key, valu pairs. Now I read the entire file into a QMap
and I am trying to setText for different widgets using the key so that it can be dynamic and resources externalized.
I am successful at that, however, when I do a setText on PushButton or Checkbox widgets using this method I end up getting the text top centered. even If I do text-align in stylesheet,t here is no change.
I am attaching two screenshots - 1 with text top-centered and 2 the way I want and normally the way it works.
Please let me know what needs to be done or what I am doing wrong ?
Thanks,
Raja.
I have an external resource script in which I embed stringResources.txt -
Essentially stringResources.txt is a QMap< QString, QString > key, valu pairs. Now I read the entire file into a QMap
and I am trying to setText for different widgets using the key so that it can be dynamic and resources externalized.
I am successful at that, however, when I do a setText on PushButton or Checkbox widgets using this method I end up getting the text top centered. even If I do text-align in stylesheet,t here is no change.
I am attaching two screenshots - 1 with text top-centered and 2 the way I want and normally the way it works.
Please let me know what needs to be done or what I am doing wrong ?
Thanks,
Raja.