amulya
29th August 2006, 07:35
hi all,
i m using a QPushButton in my program. It has a certain text.Now, this button is gonna be used as a toggle button. Hence, its text has to be changed depending on certain events.In my case, the second text is much bigger than the first text, and the text gets truncated cuz the size of the pushbutton remains the same.
Now, there is one way that i can just see the size of the second text and use setGeometry to give it the correct text. But the problem is , we r gonna use localisation and then this solution does not suit the situation
Is there any way by which the QPushbutton automatically resizes as the text of it changes. I would really appreciate a brisk reply. Thanx for ur time though
Cheers,
Amulya
i m using a QPushButton in my program. It has a certain text.Now, this button is gonna be used as a toggle button. Hence, its text has to be changed depending on certain events.In my case, the second text is much bigger than the first text, and the text gets truncated cuz the size of the pushbutton remains the same.
Now, there is one way that i can just see the size of the second text and use setGeometry to give it the correct text. But the problem is , we r gonna use localisation and then this solution does not suit the situation
Is there any way by which the QPushbutton automatically resizes as the text of it changes. I would really appreciate a brisk reply. Thanx for ur time though
Cheers,
Amulya