Is it possible to create a non-standard window with Qt? I mean that I want to create an application with rounded-corner windows and buttons with aqua-like effects. The principal thing is that the app must be beautiful, not compliant with any Windows or Mac GUI reference... Can Qt do these things, or it is preferable to use another toolkit?
Asked
Active
Viewed 2,376 times
3 Answers
4
You can use stylesheets to create a custom look for your buttons. Refer to the Qt documentation for some examples.
To create non-rectangular windows, use QWidget::setMask
. Again, the documentation features an example application demonstrating this functionality.

Tobias Kienzler
- 25,759
- 22
- 127
- 221

Ton van den Heuvel
- 10,157
- 6
- 43
- 82
1
Yes. Non-rectangular windows are probably the hardest, but are possible: http://qt.nokia.com/developer/faqs/356
Buttons are trivial. QButton is a QWidget with OS-default effects. But if you create a FancyButton derived from QWidget, you decide how it looks. Aqua effects, mouse over effects, it's all a matter of drawing what you want to draw.

MSalters
- 173,980
- 10
- 155
- 350
0
I think you should have a look here! You'll find what you're looking for...