tags:

views:

265

answers:

3

It is possible to create a non-standard window with QT??. I mean, I want to create an application with round-corners windows and buttons with aqua-like effects. The principal thing is that the app must to be beautiful, no compliant with any Windows or Mac GUI reference... Can QT does that thing, or is preferable other toolkit?

+1  A: 

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
+3  A: 

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.

Ton van den Heuvel
A: 

Hey,

I think you should have a look here ! You'll find what you're looking for...

http://stackoverflow.com/questions/1909092/qt4-transparent-window-with-rounded-corners

Andy M