[Qt-interest] How to scale push Buttons from centre
Nitin Mahajan
nitinm76 at yahoo.com
Wed Dec 2 06:16:56 CET 2009
Hello,
How to scale push buttons from the center of their geometry?
I did
QSize s = button->size();
s.scale(s * SCALE_FACTOR, Qt::KeepAspectRatio);
button->resize(size);
this scales the button starting from top left corner.
How the button can be scaled from its center, equally in all 4 sides?
Can this be achieved through style sheets?
regards
-Nitin
Get your new Email address!
Grab the Email name you've always wanted before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/
More information about the Qt-interest-old
mailing list