Hi all
Working on Qt4.2 on Intel MAC
Can anybody tells me that is there a way to make the round edges for QMainWindow.,QTextEdit ,QFrame , QGroupBox .just Like there is for QPushButton..
Thanx
Hi all
Working on Qt4.2 on Intel MAC
Can anybody tells me that is there a way to make the round edges for QMainWindow.,QTextEdit ,QFrame , QGroupBox .just Like there is for QPushButton..
Thanx
Last edited by merry; 8th August 2007 at 08:57. Reason: updated contents
Always Believe in Urself
Merry
You'd have to reimplement the style and draw all the widgets yourself. And if you want to preserve the Aqua look of your MAC, I don't think it's possible on Qt side at all. You'd have to tweak your system settings, I guess... Or just change the widget style and use style-sheets to apply roundness to widget borders (but I don't think that's what you want).
Thanx 4 d Reply,You'd have to reimplement the style and draw all the widgets yourself. And if you want to preserve the Aqua look of your MAC, I don't think it's possible on Qt side at all. You'd have to tweak your system settings, I guess... Or just change the widget style and use style-sheets to apply roundness to widget borders (but I don't think that's what you want).
By Mistake i wrote Qt4.2 , Actully I am using QT 4.1 , on Intel MAC.
And I think Qt 4.1 doesn't support style-sheets.
Is there any other way to change the looks of QMainWindow and other widgets..
As u said , I mean How can I reimplement the styles.....Can you explain it to me with an example.You'd have to reimplement the style and draw all the widgets yourself.
Thanx
Always Believe in Urself
Merry
Take a look at the docs for QStyle. There should be a link to an example that reimplements a style. And remember it won't work for top level windows. For those you can use QWidget::setMask().
Thanx 4 d reply
By using setMask ; we can set the Bitmap or any region for the widget, But I want to change the shape of the widget , i.e I want to make the edges of the widget "round".Orginally Posted by Wysota:
Take a look at the docs for QStyle. There should be a link to an example that reimplements a style. And remember it won't work for top level windows. For those you can use QWidget::setMask().
cheers
Always Believe in Urself
Merry
The bitmap says whether a particular pixel of the widget should be visible or not. If you clear bits of the mask responsible for corners of the widget, you'll get rounded top-level widgets. Just make sure to adjust the mask when the window gets resized.
merry (10th August 2007)
Bookmarks