[Qt-interest] Need Help on applying Style for Application

Stephen Jackson spjackson42 at gmail.com
Fri Sep 25 13:39:52 CEST 2009


On Fri, Sep 25, 2009 at 11:56 AM, Harsha T  wrote:
> Thanks for the Reply.
>
> I want to set my widget to mac style. I am very new to this QT. I just
> completed 1 st chapter. Please help. Here is my program.
>

Read the overviews. Read tutorials. Spend a decent amount of time
running the demos and examples that come with Qt. This is really
useful because when you come to do something (like this), you think
"I've seen an example that does this" so you know where to look.

The example in examples/widgets/styles is very pertinent to your
question. If you cannot select "macintosh" in this example, then it
isn't going to work in your program either.

The styles that are available for you to use are those that are
returned by QStyleFactory::keys(), see
http://doc.trolltech.com/4.5/qstylefactory.html#keys

On my current platform (Linux), this list is: Oxygen, Windows, Motif,
CDE, Plastique, GTK+, Cleanlooks.

The documentation referenced above says, 'Depending on the platform,
"windowsxp", "windowsvista" and "macintosh" may be available.'

-- 
HTH,

Stephen Jackson



More information about the Qt-interest-old mailing list