Have you tried QApplication::setGlobalStrut()?
Have you tried QApplication::setGlobalStrut()?
Save yourself some pain. Learn C++ before learning Qt.
Yes. I'm using the global strut, which causes push buttons to be drawn larger. However, it has no effect on the radio buttons.
Do me a favor - try setting the style of one of your radiobuttons to just plain "windows" and see if it works.
Save yourself some pain. Learn C++ before learning Qt.
OK.
I tried this with the QMotifStyle and the QWindowsStyle. Both drew the normal sized radio button.
It's as I feared then. You will have to subclass QStyle to draw the radiobuttons larger.
You can also try replacing the radiobutton pixmap in the pixmap cache. See QPixmapCache to see how to do this (this may only work for Qt3).
Save yourself some pain. Learn C++ before learning Qt.
Ben.Hines (24th April 2006)
BTW Chicken Blood,
Your picture sort of freaks me out.![]()
It freaks me out too.Originally Posted by Ben.Hines
Save yourself some pain. Learn C++ before learning Qt.
LOL. Me too. Reminds me of the kid in the original Omen movie (even if his hair was dark).Originally Posted by Ben.Hines
For a touchscreen application, I would do my own QStyle, just to give me better size control over all the widgets. You have to do this anyway for the radiobuttons, because in Windows (and most other styles) they are drawn from a predefined bitmap.
Bookmarks