Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions

Themes (Styles)

This examples demonstrates how to let widgets be drawn in different styles (themes). As an example, themes looking like wood and metal are implemented. You can switch between the different styles during runtime using the pulldown menu.


Header file of the Wood theme:

/****************************************************************************
** $Id: qt/wood.h   3.2.0b2   edited May 13 09:08 $
**
** Definition of something or other
**
** Created : 979899
**
** Copyright (C) 1997 by Trolltech AS.  All rights reserved.
**
** This file is part of an example program for Qt.  This example
** program may be used, distributed and modified without limitation.
**
*****************************************************************************/

#ifndef WOOD_H
#define WOOD_H

#include <qwindowsstyle.h>
#include <qpalette.h>

#ifndef QT_NO_STYLE_WINDOWS

class NorwegianWoodStyle : public QWindowsStyle
{
public:
    NorwegianWoodStyle();
    void polish( QApplication*);
    void polish( QWidget* );
    void unPolish( QWidget* );
    void unPolish( QApplication*);

    void drawPrimitive( PrimitiveElement pe,
                        QPainter *p,
                        const QRect &r,
                        const QColorGroup &cg,
                        SFlags flags = Style_Default,
                        const QStyleOption& = QStyleOption::Default ) const;

    void drawControl( ControlElement element,
                      QPainter *p,
                      const QWidget *widget,
                      const QRect &r,
                      const QColorGroup &cg,
                      SFlags how = Style_Default,
                      const QStyleOption& = QStyleOption::Default ) const;

    void drawControlMask( ControlElement element,
                          QPainter *p,
                          const QWidget *widget,
                          const QRect &r,
                          const QStyleOption& = QStyleOption::Default ) const;

    void drawComplexControl( ComplexControl cc,
                             QPainter *p,
                             const QWidget *widget,
                             const QRect &r,
                             const QColorGroup &cg,
                             SFlags how = Style_Default,
                             SCFlags sub = SC_All,
                             SCFlags subActive = SC_None,
                             const QStyleOption& = QStyleOption::Default ) const;

    void drawComplexControlMask( ComplexControl control,
                                 QPainter *p,
                                 const QWidget *widget,
                                 const QRect &r,
                                 const QStyleOption& = QStyleOption::Default ) const;

    QRect querySubControlMetrics( ComplexControl control,
                                  const QWidget *widget,
                                  SubControl sc,
                                  const QStyleOption& = QStyleOption::Default ) const;

    QRect subRect( SubRect r, const QWidget *widget ) const;


private:
    void drawSemicircleButton(QPainter *p, const QRect &r, int dir,
                              bool sunken, const QColorGroup &g ) const;
    QPalette oldPalette;
    QPixmap *sunkenDark;
    QPixmap *sunkenLight;

};

#endif

#endif


Implementation of the Wood theme:

/****************************************************************************
** $Id: qt/wood.cpp   3.2.0b2   edited May 13 09:08 $
**
** Copyright (C) 1992-2000 Trolltech AS.  All rights reserved.
**
** This file is part of an example program for Qt.  This example
** program may be used, distributed and modified without limitation.
**
*****************************************************************************/

#include "wood.h"

#ifndef QT_NO_STYLE_WINDOWS

#include "qapplication.h"
#include "qcombobox.h"
#include "qpainter.h"
#include "qdrawutil.h" // for now
#include "qpixmap.h" // for now
#include "qpalette.h" // for now
#include "qwidget.h"
#include "qlabel.h"
#include "qimage.h"
#include "qpushbutton.h"
#include "qwidget.h"
#include "qrangecontrol.h"
#include "qscrollbar.h"
#include <limits.h>
#include "qstylefactory.h"

/* XPM */
static const char *polish_xpm[] = {
/* width height num_colors chars_per_pixel */
"    96    96      254            2",
/* colors */
".. c #9c4a34",
".# c #a4825c",
".a c #bc5e2c",
".b c #d48432",
".c c #dc9f51",
".d c #bc6e1c",
".e c #d4855d",
".f c #94664c",
".g c #bc714e",
".h c #8c6664",
".i c #d4923c",
".j c #bc8444",
".k c #d49360",
".l c #d4794e",
".m c #ecaf68",
".n c #bc8365",
".o c #d47439",
".p c #a46954",
".q c #dc9f70",
".r c #e48544",
".s c #bc7b51",
".t c #a47761",
".u c #bc7b42",
".v c #a4523c",
".w c #e4945e",
".x c #9c784c",
".y c #d4844a",
".z c #eca053",
".A c #bc614c",
".B c #e4855c",
".C c #bc8350",
".D c #c48e68",
".E c #b16634",
".F c #e49339",
".G c #bc703a",
".H c #bc7c67",
".I c #a45f34",
".J c #cc714d",
".K c #d48c5f",
".L c #a47057",
".M c #cc703a",
".N c #dca674",
".O c #b47859",
".P c #bc6729",
".Q c #d49475",
".R c #d48b4a",
".S c #cc8351",
".T c #cc8466",
".U c #ac6841",
".V c #e4a651",
".W c #e49576",
".X c #d47d31",
".Y c #ac6e4b",
".Z c #c07650",
".0 c #e48c43",
".1 c #e49452",
".2 c #9c745f",
".3 c #e47e54",
".4 c #cc7c4f",
".5 c #cc7c32",
".6 c #b46133",
".7 c #d49a68",
".8 c #d67e4f",
".9 c #bc7643",
"#. c #b47056",
"## c #d48b3a",
"#a c #dc9f5e",
"#b c #e49a60",
"#c c #cc6a31",
"#d c #8c6244",
"#e c #dc9a41",
"#f c #eca753",
"#g c #bc8a58",
"#h c #d48c76",
"#i c #bc693f",
"#j c #bc715d",
"#k c #9c6857",
"#l c #f4b171",
"#m c #bc8a6a",
"#n c #eca16d",
"#o c #a87e58",
"#p c #a4613f",
"#q c #a48569",
"#r c #d4846d",
"#s c #dc935f",
"#t c #c47c50",
"#u c #dc8449",
"#v c #bc6950",
"#w c #cc9678",
"#x c #c4703a",
"#y c #cc7b67",
"#z c #dc8c5e",
"#A c #ac7067",
"#B c #eca86e",
"#C c #b4786d",
"#D c #dc8c4a",
"#E c #b46842",
"#F c #d47c41",
"#G c #e48d51",
"#H c #e59a52",
"#I c #9c6e3f",
"#J c #d49351",
"#K c #cc843b",
"#L c #ecb678",
"#M c #9c5a38",
"#N c #d4795c",
"#O c #c47b39",
"#P c #ec9560",
"#Q c #ac764c",
"#R c #c48351",
"#S c #c48e74",
"#T c #cc7650",
"#U c #cc8a84",
"#V c #bc6a5c",
"#W c #e4af74",
"#X c #b46855",
"#Y c #e4a06e",
"#Z c #ac775b",
"#0 c #e48d5d",
"#1 c #c47d65",
"#2 c #cc763f",
"#3 c #b47e5d",
"#4 c #cc8a55",
"#5 c #cc8a67",
"#6 c #bf622f",
"#7 c #dc853b",
"#8 c #e49f4a",
"#9 c #9c505c",
"a. c #8c5644",
"a# c #cc7329",
"aa c #a45a51",
"ab c #b48264",
"ac c #9c7a7c",
"ad c #9c5f4f",
"ae c #b4844c",
"af c #a46749",
"ag c #dca664",
"ah c #b46e1c",
"ai c #c4762c",
"aj c #a45a3c",
"ak c #dc9a74",
"al c #ac7e46",
"am c #ac6a6c",
"an c #eca862",
"ao c #e49a41",
"ap c #e49a78",
"aq c #bc7660",
"ar c #d57e5e",
"as c #9c6e5c",
"at c #ab7e65",
"au c #cc8a44",
"av c #9c6240",
"aw c #bc6244",
"ax c #bc5d3f",
"ay c #e48550",
"az c #eca060",
"aA c #cc7160",
"aB c #cc7c42",
"aC c #b46241",
"aD c #b4726c",
"aE c #eca67f",
"aF c #9c6a3c",
"aG c #94685a",
"aH c #c48240",
"aI c #c48465",
"aJ c #dc7640",
"aK c #cc8f54",
"aL c #e4a76f",
"aM c #c4692e",
"aN c #dc9474",
"aO c #ac6050",
"aP c #b47048",
"aQ c #94614b",
"aR c #ac836c",
"aS c #a47048",
"aT c #b4764a",
"aU c #ec8e5c",
"aV c #dc9a53",
"aW c #cc765e",
"aX c #b48a64",
"aY c #dc9a63",
"aZ c #c47640",
"a0 c #ec9a60",
"a1 c #c48a54",
"a2 c #c48a67",
"a3 c #ac5a3c",
"a4 c #ac8458",
"a5 c #dc855d",
"a6 c #c4714d",
"a7 c #dc9243",
"a8 c #dc794e",
"a9 c #ac6955",
"b. c #cc8f67",
"b# c #ac6032",
"ba c #ac7056",
"bb c #dc7a34",
"bc c #ec9553",
"bd c #dc8d3b",
"be c #e4a060",
"bf c #f4a654",
"bg c #c46842",
"bh c #c46f62",
"bi c #ac613d",
"bj c #dc866c",
"bk c #c4694e",
"bl c #dc7d42",
"bm c #ec8d4f",
"bn c #dc9351",
"bo c #cc9177",
"bp c #c4695f",
"bq c #ecb075",
"br c #e4a75f",
"bs c #d4843c",
"bt c #bc722c",
"bu c #d4936c",
"bv c #d47644",
"bw c #bc7d5c",
"bx c #ac563c",
"by c #e4956c",
"bz c #a47a4c",
"bA c #d48454",
"bB c #bc825c",
"bC c #e49544",
"bD c #bc7044",
"bE c #bc7e74",
"bF c #d48d6c",
"bG c #cc7144",
"bH c #b47864",
"bI c #bc6a34",
"bJ c #d49684",
"bK c #d48b54",
"bL c #cc845c",
"bM c #cc8474",
"bN c #ac684c",
"bO c #cc7d5c",
"bP c #eca27c",
"bQ c #dc946c",
"bR c #c47c5c",
"bS c #dc8554",
"bT c #c47244",
"bU c #dc8c6c",
"bV c #dc8c54",
"bW c #b4684c",
"bX c #cc8344",
"bY c #c47b44",
"bZ c #c4825c",
"b0 c #e4a17c",
"b1 c #ac7a64",
"b2 c #e48c6c",
"b3 c #c47a74",
"b4 c #e49f54",
"b5 c #9c674c",
"b6 c #946764",
"b7 c #c48674",
/* pixels */
"#u#G#G#P#G#G#G.1#G#G.1.1.1.w#G.r#D.1.1.1#D#DbVbV.K.K.K.KbO.Z.Z#TaP.GaT.Z.O.O.O.H.9aP.ZaPaPaPbZbo.i.k#J.k#JbKbnbn#b#sbVbV#G#G.r.ray.r.0#G.0#G.1bc.r.0.0bc.0.0.0.r.1.1.1.1#G#D.0#D.0.0.0bcbcbc.1.0",
"#aagaLbrag#a#a#a#DbVbn#G#0.1#0#Da5#za5.4.J.Jbk#vbt.G#x.9bY.4#tbYbw.saPaP.Ub#af.Y.s.s.Z.saP#E.gbw.U.U.UaObWbWbWaPb#b#.E#t.K.K#z#s#s#sbQ#s#sbn#s#sbn#s.w#s.w#s#sbn.ybV#s#sbV#s#sbQ#aak.7.k.7.k.k.k",
"#..g#.#.#j#.#XbW#Z#o.O.O#3.n.n.Halalalala4aXaXa4#t.u.9#R#5bu.k#5bob7aIaI.nbwbw#m#5aIa2#5#5aIb7#5.DbBbB#3bwbw.C.O#oabab.naI.C#t#R.9#tbY#tbY.ZbY.s#t#t#t#R.sbY.s#tbD.Z.Z#t.9.Z#t.4bBbw.s.saT.9aTaT",
".ybS.ybSbVbVbVbVbl#u#u#ubSaybSay#s#za5#z#z#z.KbA.Qb.aIbZbZbB.g.U.gaP#.aP#.aPaP.O.9aP.g.s.O.ZaP.Z#CaD#Aamamamam#X#3#Z.OaPaPaPaP.saZbY#t#t#tbY#tbY#t#tbLbZ.SbR#t#tbZbRbZbRbR.sbRbR.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u.y.8.ybA.ybA.4bY.4.4#t#tbDaZ#tbR.4#t.4#t#tbL.K#tbwaI#5aIbLbFaIaIbwbD.U#E.Ubi#EbDbD.ZbT#xbT#xabaRaR#oabat.O#Z.s#t.SbLaI#4aKb.b.b..Kbu.7.Qbub.",
".w#b#b#Y.w#0.1#G#z#G#z#G#b#b#b#s.1#G#G#G.1bc#G#G#G#Day#G#G#G#G#G.w#G#GbV.1#z.w#b.kbnbKbn#s#DbVbV.K#t#iaP.ZbW.g.Z.s.s.gaPaP.Zbw.Za6.Z.Z.8#r#z#ra5#D.r.r.r#Gbcbmbm#G.1.w.wbc.w#G#G#G#G#G#Ga0#P.1.r"
};



/* XPM */
static const char *button_xpm[] = {
/* width height num_colors chars_per_pixel */
"    96    96      254            2",
/* colors */
".. c #9c3218",
".# c #a4733e",
".a c #bc450a",
".b c #d4700c",
".c c #dc8c29",
".d c #bc5e00",
".e c #d46b37",
".f c #945431",
".g c #bc5a2c",
".h c #8c4e4b",
".i c #d47e16",
".j c #bc7422",
".k c #d47d3a",
".l c #d45e28",
".m c #ec9b3e",
".n c #bc6b43",
".o c #d45a13",
".p c #a45236",
".q c #dc8848",
".r c #e46b1b",
".s c #bc652f",
".t c #a46243",
".u c #bc6920",
".v c #a4391e",
".w c #e47b35",
".x c #9c6b30",
".y c #d46d24",
".z c #ec8a29",
".A c #bc452a",
".B c #e46833",
".C c #bc702e",
".D c #c47845",
".E c #b15314",
".F c #e47e10",
".G c #bc5a18",
".H c #bc6145",
".I c #a44d16",
".J c #cc5728",
".K c #d47439",
".L c #a45b39",
".M c #cc5815",
".N c #dc8f4c",
".O c #b46239",
".P c #bc5307",
".Q c #d4794f",
".R c #d47624",
".S c #cc6c2c",
".T c #cc6941",
".U c #ac5222",
".V c #e49328",
".W c #e4754d",
".X c #d4650b",
".Y c #ac592c",
".Z c #c05e2d",
".0 c #e4751a",
".1 c #e47d29",
".2 c #9c6143",
".3 c #e45f2b",
".4 c #cc632a",
".5 c #cc660d",
".6 c #b44b13",
".7 c #d48442",
".8 c #d66228",
".9 c #bc6221",
"#. c #b45736",
"## c #d47714",
"#a c #dc8936",
"#b c #e48237",
"#c c #cc530c",
"#d c #8c522b",
"#e c #dc8819",
"#f c #ec9129",
"#g c #bc7936",
"#h c #d46f50",
"#i c #bc521d",
"#j c #bc553b",
"#k c #9c523b",
"#l c #f49a45",
"#m c #bc7548",
"#n c #ec8643",
"#o c #a86d3a",
"#p c #a44d21",
"#q c #a4754b",
"#r c #d46547",
"#s c #dc7937",
"#t c #c4642d",
"#u c #dc6c21",
"#v c #bc4d2e",
"#w c #cc7e53",
"#x c #c45917",
"#y c #cc5c42",
"#z c #dc7036",
"#A c #ac5448",
"#B c #ec8f44",
"#C c #b45c4d",
"#D c #dc7622",
"#E c #b45222",
"#F c #d4651b",
"#G c #e47328",
"#H c #e58429",
"#I c #9c5f23",
"#J c #d47f2b",
"#K c #cc7116",
"#L c #eca24e",
"#M c #9c471c",
"#N c #d45b36",
"#O c #c46716",
"#P c #ec7836",
"#Q c #ac642d",
"#R c #c46f2e",
"#S c #c47551",
"#T c #cc5b2b",
"#U c #cc685f",
"#V c #bc4b3a",
"#W c #e49a4b",
"#X c #b44c35",
"#Y c #e48745",
"#Z c #ac613c",
"#0 c #e47234",
"#1 c #c46242",
"#2 c #cc5e1a",
"#3 c #b4683d",
"#4 c #cc7430",
"#5 c #cc7042",
"#6 c #bf4b0d",
"#7 c #dc6e13",
"#8 c #e48c21",
"#9 c #9c3445",
"a. c #8c432b",
"a# c #cc5e04",
"aa c #a43f33",
"ab c #b46d44",
"ac c #9c5e62",
"ad c #9c4833",
"ae c #b4742c",
"af c #a4522b",
"ag c #dc943c",
"ah c #b46000",
"ai c #c46309",
"aj c #a4441e",
"ak c #dc7f4c",
"al c #ac6e27",
"am c #ac4b4e",
"an c #ec9238",
"ao c #e48518",
"ap c #e47c4f",
"aq c #bc5c3e",
"ar c #d56238",
"as c #9c5840",
"at c #ab6946",
"au c #cc761f",
"av c #9c5024",
"aw c #bc4922",
"ax c #bc421d",
"ay c #e46927",
"az c #ec8836",
"aA c #cc513b",
"aB c #cc661d",
"aC c #b44a21",
"aD c #b4544c",
"aE c #ec8a55",
"aF c #9c5a20",
"aG c #94533f",
"aH c #c4701d",
"aI c #c46b42",
"aJ c #dc5a18",
"aK c #cc7b2f",
"aL c #e49046",
"aM c #c4520b",
"aN c #dc774c",
"aO c #ac4631",
"aP c #b45b28",
"aQ c #944e30",
"aR c #ac6e4d",
"aS c #a45f2a",
"aT c #b4612a",
"aU c #ec7032",
"aV c #dc872b",
"aW c #cc5939",
"aX c #b47844",
"aY c #dc843b",
"aZ c #c4601d",
"a0 c #ec7f36",
"a1 c #c47531",
"a2 c #c47344",
"a3 c #ac431d",
"a4 c #ac7439",
"a5 c #dc6735",
"a6 c #c4582a",
"a7 c #dc7c1b",
"a8 c #dc5d26",
"a9 c #ac5036",
"b. c #cc7742",
"b# c #ac4b13",
"ba c #ac5a37",
"bb c #dc5f0c",
"bc c #ec7a29",
"bd c #dc7813",
"be c #e48b37",
"bf c #f48e28",
"bg c #c44e1f",
"bh c #c44e3f",
"bi c #ac4b1e",
"bj c #dc6544",
"bk c #c44c2b",
"bl c #dc611a",
"bm c #ec7125",
"bn c #dc7d29",
"bo c #cc7752",
"bp c #c4473c",
"bq c #ec994b",
"br c #e49336",
"bs c #d46f16",
"bt c #bc600a",
"bu c #d47a46",
"bv c #d45b1e",
"bw c #bc653a",
"bx c #ac3c1d",
"by c #e47943",
"bz c #a46b2e",
"bA c #d46b2e",
"bB c #bc6c3a",
"bC c #e47f1b",
"bD c #bc5b22",
"bE c #bc6052",
"bF c #d47346",
"bG c #cc561f",
"bH c #b46044",
"bI c #bc5312",
"bJ c #d4775e",
"bK c #d4732e",
"bL c #cc6b37",
"bM c #cc644f",
"bN c #ac512d",
"bO c #cc6137",
"bP c #ec8552",
"bQ c #dc7944",
"bR c #c46339",
"bS c #dc6a2c",
"bT c #c45a21",
"bU c #dc6f44",
"bV c #dc732c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gaV#BbT.K#r#Dby#H.m.1.1be#u#B.1.wbe#P.S#z.wbSbi.n.ZbK.4.e.8aI.Z.6.K#u#GbV#0bV#s.w.w.e#Z#Z.K.4aT.k.1",
".rb..g.e#s.YaPbV#z.wbnbV.wbn#Dbn.OaP.4.y.4#N.K.K#T#t.U.Q#z.w#F#YazanaNan.bap#Ga0az#0#P#b#KbR.Z#aaz#ibK#h#u.wbC#B#b.1bebs#B#D#baLbcbA.k#P#G#E#S#2.K.8bAbL.Tbw.6.K#G#0.wbVbVbV#s#s.e.Oba.K.4aT.k.0"
};

static void drawroundrect( QPainter *p, QCOORD x, QCOORD y,
                           QCOORD w, QCOORD h, QCOORD d );

static inline int buttonthickness( int d );

static QRegion roundRectRegion( const QRect& g, int r );

static void get_combo_parameters( const QRect &r,
                                  int &ew, int &awh, int &ax,
                                  int &ay, int &sh, int &dh,
                                  int &sy );

static int get_combo_extra_width( int h, int *return_awh = 0 );

enum { PointUp, PointDown, PointLeft, PointRight };


NorwegianWoodStyle::NorwegianWoodStyle() : QWindowsStyle()
{
}

/*!
  Reimplementation from QStyle
 */
void NorwegianWoodStyle::polish( QApplication *app)
{

    oldPalette = app->palette();

    // we simply create a nice QColorGroup with a couple of fancy wood
    // pixmaps here and apply to it all widgets

    QImage img(button_xpm);
    QImage orig = img;
    orig.detach();
    QPixmap button;
    button.convertFromImage(img);


    int i;
    for (i=0; i<img.numColors(); i++) {
        QRgb rgb = img.color(i);
        QColor c(rgb);
        rgb = c.dark(120).rgb();
        img.setColor(i,rgb);
    }
    QPixmap mid;
    mid.convertFromImage(img);

    img = orig;
    img.detach();
    for (i=0; i<img.numColors(); i++) {
        QRgb rgb = img.color(i);
        QColor c(rgb);
        rgb = c.light().rgb();
        img.setColor(i,rgb);
    }
    QPixmap light;
    light.convertFromImage(img);

    img = orig;
    img.detach();
    for (i=0; i<img.numColors(); i++) {
        QRgb rgb = img.color(i);
        QColor c(rgb);
        rgb = c.dark(180).rgb();
        img.setColor(i,rgb);
    }
    QPixmap dark;
    dark.convertFromImage(img);


    QImage bgimage(polish_xpm);
    QPixmap background;
    background.convertFromImage(bgimage);

    img = bgimage;
    img.detach();
    for (i=0; i<img.numColors(); i++) {
        QRgb rgb = img.color(i);
        QColor c(rgb);
        rgb = c.dark(180).rgb();
        img.setColor(i,rgb);
    }
    sunkenDark = new QPixmap;
    sunkenDark->convertFromImage(img);


    img = bgimage;
    img.detach();
    for (i=0; i<img.numColors(); i++) {
        QRgb rgb = img.color(i);
        QColor c(rgb);
        rgb = c.light(130).rgb();
        img.setColor(i,rgb);
    }
    sunkenLight= new QPixmap;
    sunkenLight->convertFromImage(img);



    QPalette op(QColor(212,140,95));
    // QPalette op(white);
    QColorGroup active (op.active().foreground(),
                     QBrush(op.active().button(),button),
                     QBrush(op.active().light(), light),
                     QBrush(op.active().dark(), dark),
                     QBrush(op.active().mid(), mid),
                     op.active().text(),
                     Qt::white,
                     QColor(236,182,120),
                     QBrush(op.active().background(), background)
                     );
    QColorGroup disabled (op.disabled().foreground(),
                     QBrush(op.disabled().button(),button),
                     QBrush(op.disabled().light(), light),
                     op.disabled().dark(),
                     QBrush(op.disabled().mid(), mid),
                     op.disabled().text(),
                     Qt::white,
                     QColor(236,182,120),
                     QBrush(op.disabled().background(), background)
                     );

   app->setPalette(QPalette(active, disabled, active), TRUE );

}

void NorwegianWoodStyle::unPolish( QApplication *app)
{
    app->setPalette(oldPalette, TRUE);
}

/*!
  Reimplementation from QStyle
 */
void NorwegianWoodStyle::polish( QWidget* w)
{

    // the polish function sets some widgets to transparent mode and
    // some to translate background mode in order to get the full
    // benefit from the nice pixmaps in the color group.

    if ( !w->isTopLevel() ) {
        if ( w->inherits("QPushButton")
             || w->inherits("QToolButton")
             || w->inherits("QComboBox") ) {
            w->setAutoMask( TRUE );
            return;
        }
        if ( w->backgroundPixmap() )
            w->setBackgroundOrigin( QWidget::WindowOrigin );
    }
}

void NorwegianWoodStyle::unPolish( QWidget* w)
{
    // the polish function sets some widgets to transparent mode and
    // some to translate background mode in order to get the full
    // benefit from the nice pixmaps in the color group.
    if ( !w->isTopLevel() ) {
        if ( w->inherits("QPushButton")
             || w->inherits("QToolButton")
             || w->inherits("QComboBox") ) {
            w->setAutoMask( FALSE );
            return;
        }
        if ( w->backgroundPixmap() )
            w->setBackgroundOrigin( QWidget::WidgetOrigin );
    }
}

void NorwegianWoodStyle::drawPrimitive( PrimitiveElement pe,
                                        QPainter *p,
                                        const QRect &r,
                                        const QColorGroup &cg,
                                        SFlags flags, const QStyleOption& opt ) const
{
    int x, y, w, h;
    r.rect( &x, &y, &w, &h );
    switch ( pe ) {
    case PE_ButtonCommand:
        {
            int d = QMIN( w, h ) / 2;
            int b = buttonthickness( d );

            QRegion internR = roundRectRegion( QRect(x + b, y + b,
                                                       w - 2 * b,
                                                       h - 2 * b), d - b );
            QPen oldPen = p->pen();

            QBrush brush( flags & Style_Sunken ? cg.brush(QColorGroup::Mid) :
                          cg.brush(QColorGroup::Button) );
            p->setClipRegion( internR );
            p->fillRect( r, brush );

            int e = QMIN( w, h ) / 2;
            QPoint p2( x + w - 1 - e, y + e );
            QPoint p3( x + e, y + h - 1 - e );

            QPointArray a;
            a.setPoints( 5, x,y, x+w-1, y, p2.x(), p2.y(), p3.x(), p3.y(),
                         x, y + h - 1 );
            p->setClipRegion( QRegion(a) - internR );

            p->fillRect( r, (flags & Style_Sunken ? QBrush( cg.dark(), *sunkenDark)
                                             : cg.brush(QColorGroup::Light)) );

            // A little inversion is needed the buttons
            // ( but not flat)
            if ( flags & Style_Raised || flags & Style_Sunken ) {
                a.setPoint( 0, x + w - 1, y + w - 1 );
                p->setClipRegion( QRegion( a ) - internR );

                p->fillRect( r, (flags & Style_Sunken ? QBrush( cg.light(), *sunkenLight) : cg.brush( QColorGroup::Dark ) ) );
            }
            p->setClipRegion( internR );
            p->setClipping( FALSE );
            p->setPen( cg.foreground() );
            drawroundrect( p, x, y, w, h, d );
            p->setPen( oldPen );
            break;
        }
    case PE_ScrollBarAddLine:
        if ( flags & Style_Horizontal )
            drawSemicircleButton( p, r, PointRight, flags & Style_Down, cg );
        else
            drawSemicircleButton( p, r, PointDown, flags & Style_Down, cg );
        break;
    case PE_ScrollBarSubLine:
        if ( flags & Style_Horizontal )
            drawSemicircleButton( p, r, PointLeft, flags & Style_Down, cg );
        else
            drawSemicircleButton( p, r, PointUp, flags & Style_Down, cg );
        break;
    default:
        QWindowsStyle::drawPrimitive( pe, p, r, cg, flags, opt );
        break;
    }
}

void NorwegianWoodStyle::drawControl( ControlElement element,
                                      QPainter *p,
                                      const QWidget *widget,
                                      const QRect &r,
                                      const QColorGroup &cg,
                                      SFlags how, const QStyleOption& opt ) const
{
    switch( element ) {
    case CE_PushButton:
        {
            const QPushButton *btn;
            btn = ( const QPushButton * )widget;
            QColorGroup myCg( cg );
            SFlags flags = Style_Default;
            if ( btn->isOn() )
                flags |= Style_On;
            if ( btn->isDown() )
                flags |= Style_Down;
            if ( btn->isOn() || btn->isDown() )
                flags |= Style_Sunken;
            if ( btn->isDefault() )
                flags |= Style_Default;
            if ( ! btn->isFlat() && !(flags & Style_Down) )
                flags |= Style_Raised;

            int x1, y1, x2, y2;
            r.coords( &x1, &y1, &x2, &y2 );

            p->setPen( cg.foreground() );
            p->setBrush( QBrush( cg.button(), NoBrush ) );

            QBrush fill;
            if ( btn->isDown() )
                fill = cg.brush( QColorGroup::Mid );
            else if ( btn->isOn() )
                fill = QBrush( cg.mid(), Dense4Pattern );
            else
                fill = cg.brush( QColorGroup::Button );
            myCg.setBrush( QColorGroup::Mid, fill );

            if ( btn->isDefault() ) {
                x1 += 2;
                y1 += 2;
                x2 -= 2;
                y2 -= 2;
            }

            drawPrimitive( PE_ButtonCommand, p,
                           QRect( x1, y1, x2 - x1 + 1, y2 - y1 + 1),
                           myCg, flags, opt );

            if ( btn->isDefault() ) {
                QPen pen( Qt::black, 4 );
                pen.setCapStyle( Qt::RoundCap );
                pen.setJoinStyle( Qt::RoundJoin );
                p->setPen( pen );
                drawroundrect( p, x1 - 1, y1 - 1, x2 - x1 + 3, y2 - y1 + 3, 8 );
            }

            if ( btn->isMenuButton() ) {
                int dx = ( y1 - y2 - 4 ) / 3;

                // reset the flags
                flags = Style_Default;
                if ( btn->isEnabled() )
                    flags |= Style_Enabled;
                drawPrimitive( PE_ArrowDown, p,
                               QRect( x2 - dx, dx, y1, y2 - y1),
                               myCg, flags, opt );
            }

            if ( p->brush().style() != NoBrush )
                p->setBrush( NoBrush );
            break;
        }
    case CE_PushButtonLabel:
        {
            const QPushButton *btn;
            btn = (const QPushButton*)widget;
            int x, y, w, h;
            r.rect( &x, &y, &w, &h );

            int x1, y1, x2, y2;
            r.coords( &x1, &y1, &x2, &y2 );
            int dx = 0;
            int dy = 0;
            if ( btn->isMenuButton() )
                dx = ( y2 - y1 ) / 3;
            if ( dx || dy )
                p->translate( dx, dy );

            x += 2;
            y += 2;
            w -= 4;
            h -= 4;
            drawItem( p, QRect( x, y, w, h ),
                      AlignCenter | ShowPrefix,
                      cg, btn->isEnabled(),
                      btn->pixmap(), btn->text(), -1,
                      (btn->isDown() || btn->isOn()) ? &cg.brightText()
                      : &cg.buttonText() );
            if ( dx || dy )
                p->translate( -dx, -dy );
            break;
        }
    default:
        QWindowsStyle::drawControl( element, p, widget, r, cg, how, opt );
        break;
    }
}

void NorwegianWoodStyle::drawControlMask( ControlElement element,
                                          QPainter *p,
                                          const QWidget *widget,
                                          const QRect &r,
                                          const QStyleOption& opt ) const
{
    switch( element ) {
    case CE_PushButton:
        {
            int d = QMIN( r.width(), r.height() ) / 2;
            p->setPen( color1 );
            p->setBrush( color1 );
            drawroundrect( p, r.x(), r.y(), r.width(), r.height(), d );
            break;
        }
    default:
        QWindowsStyle::drawControlMask( element, p, widget, r, opt );
        break;
    }
}

void NorwegianWoodStyle::drawComplexControl( ComplexControl cc,
                                             QPainter *p,
                                             const QWidget *widget,
                                             const QRect &r,
                                             const QColorGroup &cg,
                                             SFlags how,
                                             SCFlags sub,
                                             SCFlags subActive,
                                             const QStyleOption& opt ) const
{
    switch( cc ) {
    case CC_ComboBox:
        {
            const QComboBox *cmb;
            cmb = (const QComboBox*)widget;

            int awh, ax, ay, sh, sy, dh, ew;
            get_combo_parameters( subRect(SR_PushButtonContents, widget),
                                  ew, awh, ax, ay, sh, dh, sy );
            drawPrimitive( PE_ButtonCommand, p, r, cg, Style_Raised, opt );
            QStyle *mstyle = QStyleFactory::create( "Motif" );
            if ( mstyle )
                mstyle->drawPrimitive( PE_ArrowDown, p,
                                       QRect(ax, ay, awh, awh), cg, how, opt );
            else
                drawPrimitive( PE_ArrowDown, p,
                               QRect(ax, ay, awh, awh), cg, how, opt );

            QPen oldPen = p->pen();
            p->setPen( cg.light() );
            p->drawLine( ax, sy, ax + awh - 1, sy );
            p->drawLine( ax, sy, ax, sy + sh - 1 );
            p->setPen( cg.dark() );
            p->drawLine( ax + 1, sy + sh - 1, ax + awh - 1, sy + sh - 1 );
            p->drawLine( ax + awh - 1, sy + 1, ax + awh - 1, sy + sh - 1 );
            p->setPen( oldPen );

            if ( cmb->editable() ) {
                QRect r( querySubControlMetrics(CC_ComboBox, widget,
                                                SC_ComboBoxEditField, opt) );
                qDrawShadePanel( p, r, cg, TRUE, 1,
                                 &cg.brush(QColorGroup::Button) );
            }

            break;
        }
    default:
        QWindowsStyle::drawComplexControl( cc, p, widget, r, cg, how,
                                           sub, subActive, opt );
        break;
    }
}

void NorwegianWoodStyle::drawComplexControlMask( ComplexControl control,
                                                 QPainter *p,
                                                 const QWidget *widget,
                                                 const QRect &r,
                                                 const QStyleOption& opt ) const
{
    switch ( control ) {
    case CC_ComboBox:
        {
            int d = QMIN( r.width(), r.height() ) / 2;
            p->setPen( color1 );
            p->setBrush( color1 );
            drawroundrect( p, r.x(), r.y(), r.width(), r.height(), d );
            break;
        }
    default:
        QWindowsStyle::drawComplexControlMask( control, p, widget, r, opt );
        break;
    }
}

QRect NorwegianWoodStyle::querySubControlMetrics( ComplexControl control,
                                                  const QWidget *widget,
                                                  SubControl sc,
                                                  const QStyleOption& opt ) const
{
    QRect rect;
    switch ( control ) {
    case CC_ComboBox:
        {
            switch( sc ) {
            case SC_ComboBoxEditField:
                {
                    rect = subRect( SR_PushButtonContents, widget );
                    int ew = get_combo_extra_width( rect.height(), 0 );
                    rect.setRect( rect.x() + 1, rect.y() + 1,
                                  rect.width() - 2 - ew, rect.height() - 2 );
                    break;
                }
            default:
                rect = QWindowsStyle::querySubControlMetrics( control, widget,
                                                              sc, opt );
                break;
            }
            break;
        }
    case CC_ScrollBar:
        {
            const QScrollBar* sb;
            sb = (const QScrollBar*)widget;
            bool horz = sb->orientation() == QScrollBar::Horizontal;
            int b = 2;
            int w = horz ? sb->height() : sb->width();

            switch ( sc ) {
            case SC_ScrollBarAddLine:
                rect.setRect( b, b, w - 2 * b, w - 2 * b );
                if ( horz )
                    rect.moveBy( sb->width() - w, 0 );
                else
                    rect.moveBy( 0, sb->height() - w );
                break;
            case SC_ScrollBarSubLine:
                rect.setRect( b, b, w - 2 * b, w - 2 * b );
                break;
            default:
                rect = QWindowsStyle::querySubControlMetrics( control, widget,
                                                              sc, opt );
                break;
            }
            break;
        }
    default:
        rect = QWindowsStyle::querySubControlMetrics( control, widget,
                                                      sc, opt );
        break;
    }
    return rect;
}

QRect NorwegianWoodStyle::subRect( SubRect sr, const QWidget * widget ) const
{
    QRect r;
    switch ( sr ) {
    case SR_PushButtonContents:
        {
            const QPushButton *btn;
            btn = (const QPushButton*)widget;
            r = btn->rect();
            int d = QMIN( r.width(), r.height() ) / 2;
            int b = buttonthickness( d );

            d -= b;
            b++;

            if ( r.width() < r.height() )
                r.setRect( r.x() + b, r.y() + d,
                           r.width() - 2 * b, r.height() - 2 * d );
            else
                r.setRect( r.x() + d, r.y() + b,
                           r.width() - 2 * d, r.height() - 2 * b );
            break;
        }
    case SR_ComboBoxFocusRect:
        {
            r = subRect( SR_PushButtonContents, widget );
            int ew = get_combo_extra_width( r.height() );
            r.setRect( r.x() + 1, r.y() + 1, r.width() - 2 - ew,
                       r.height() - 2 );
            break;
        }
    default:
        r = QWindowsStyle::subRect( sr, widget );
        break;
    }
    return r;
}

static void drawroundrect( QPainter *p, QCOORD x, QCOORD y,
                           QCOORD w, QCOORD h, QCOORD d )
{
    int rx = (200*d)/w;
    int ry = (200*d)/h;
    p->drawRoundRect( x, y, w, h, rx, ry );
}

static QRegion roundRectRegion( const QRect& g, int r )
{
    QPointArray a;
    a.setPoints( 8, g.x()+r, g.y(), g.right()-r, g.y(),
                 g.right(), g.y()+r, g.right(), g.bottom()-r,
                 g.right()-r, g.bottom(), g.x()+r, g.bottom(),
                 g.x(), g.bottom()-r, g.x(), g.y()+r );
    QRegion reg( a );
    int d = r*2-1;
    reg += QRegion( g.x(),g.y(),r*2,r*2, QRegion::Ellipse );
    reg += QRegion( g.right()-d,g.y(),r*2,r*2, QRegion::Ellipse );
    reg += QRegion( g.x(),g.bottom()-d,r*2,r*2, QRegion::Ellipse );
    reg += QRegion( g.right()-d,g.bottom()-d,r*2,r*2, QRegion::Ellipse );
    return reg;
}




static int get_combo_extra_width( int h, int *return_awh )
{
    int awh;
    if ( h < 8 ) {
        awh = 6;
    } else if ( h < 14 ) {
        awh = h - 2;
    } else {
        awh = h/2;
    }
    if ( return_awh )
        *return_awh = awh;
    return awh*3/2;
}


static void get_combo_parameters( const QRect &r,
                                  int &ew, int &awh, int &ax,
                                  int &ay, int &sh, int &dh,
                                  int &sy )
{
    ew = get_combo_extra_width( r.height(), &awh );

    sh = (awh+3)/4;
    if ( sh < 3 )
        sh = 3;
    dh = sh/2 + 1;

    ay = r.y() + (r.height()-awh-sh-dh)/2;
    if ( ay < 0 ) {
        //panic mode
        ay = 0;
        sy = r.height();
    } else {
        sy = ay+awh+dh;
    }
    ax = r.x() + r.width() - ew +(ew-awh)/2;
}

static inline int buttonthickness( int d )
{ return  d > 20 ? 5 : ( d < 10 ? 2: 3 ); }

void NorwegianWoodStyle::drawSemicircleButton( QPainter *p, const QRect &r,
                                               int dir, bool sunken,
                                               const QColorGroup &g ) const
{
    int b =  pixelMetric( PM_ScrollBarExtent ) > 20 ? 3 : 2;

     QRegion extrn(  r.x(),   r.y(),   r.width(),     r.height(),     QRegion::Ellipse );
     QRegion intern( r.x()+b, r.y()+b, r.width()-2*b, r.height()-2*b, QRegion::Ellipse );
    int w2 = r.width()/2;
    int h2 = r.height()/2;

    int bug = 1; //off-by-one somewhere!!!???

    switch( dir ) {
    case PointRight:
        extrn +=  QRegion( r.x(),  r.y(),   w2,     r.height() );
        intern += QRegion( r.x()+b,r.y()+b, w2-2*b, r.height()-2*b );
        break;
    case PointLeft:
        extrn +=  QRegion( r.x()+w2,  r.y(),   w2,     r.height() );
        intern += QRegion( r.x()+w2+b,r.y()+b, w2-2*b, r.height()-2*b );
        break;
    case PointUp:
        extrn +=  QRegion( r.x(),  r.y()+h2,   r.width(),     h2 );
        intern += QRegion( r.x()+b,r.y()+h2+b, r.width()-2*b-bug, h2-2*b-bug );
        break;
    case PointDown:
        extrn +=  QRegion( r.x(),  r.y(),   r.width(),     h2 );
        intern += QRegion( r.x()+b,r.y()+b, r.width()-2*b-bug, h2-2*b-bug );
        break;
    }

    extrn = extrn - intern;
    QPointArray a;
    a.setPoints( 3, r.x(), r.y(), r.x(), r.bottom(), r.right(), r.top() );

    QRegion oldClip = p->clipRegion();
    bool bReallyClip = p->hasClipping();  // clip only if we really want.
    p->setClipRegion( intern );
    p->fillRect( r, g.brush( QColorGroup::Button ) );

    p->setClipRegion( QRegion(a)&extrn );
    p->fillRect( r, sunken ? g.dark() : g.light() );

    a.setPoints( 3, r.right(), r.bottom(), r.x(), r.bottom(),
                 r.right(), r.top() );
    p->setClipRegion( QRegion(a) &  extrn );
    p->fillRect( r, sunken ? g.light() : g.dark() );

    p->setClipRegion( oldClip );
    p->setClipping( bReallyClip );
}

#endif


Header file of the Metal theme:

/****************************************************************************
** $Id: qt/metal.h   3.2.0b2   edited May 13 09:08 $
**
** Definition of the Metal Style for the themes example
**
** Created : 979899
**
** Copyright (C) 1997 by Trolltech AS.  All rights reserved.
**
** This file is part of an example program for Qt.  This example
** program may be used, distributed and modified without limitation.
**
*****************************************************************************/

#ifndef METAL_H
#define METAL_H

#include <qwindowsstyle.h>
#include <qpalette.h>

#ifndef QT_NO_STYLE_WINDOWS

class MetalStyle : public QWindowsStyle
{
public:
    MetalStyle();
    void polish( QApplication*);
    void unPolish( QApplication*);
    void polish( QWidget* );
    void unPolish( QWidget* );

    void drawPrimitive( PrimitiveElement pe,
                        QPainter *p,
                        const QRect &r,
                        const QColorGroup &cg,
                        SFlags flags = Style_Default,
                        const QStyleOption& = QStyleOption::Default) const;

    void drawControl( ControlElement element,
                      QPainter *p,
                      const QWidget *widget,
                      const QRect &r,
                      const QColorGroup &cg,
                      SFlags how = Style_Default,
                      const QStyleOption& = QStyleOption::Default ) const;

    void drawComplexControl( ComplexControl cc,
                             QPainter *p,
                             const QWidget *widget,
                             const QRect &r,
                             const QColorGroup &cg,
                             SFlags how = Style_Default,
                             SCFlags sub = SC_All,
                             SCFlags subActive = SC_None,
                             const QStyleOption& = QStyleOption::Default ) const;
    int pixelMetric( PixelMetric, const QWidget * ) const;


private:
    void drawMetalFrame(  QPainter *p, int x, int y, int w, int h ) const;
    void drawMetalGradient( QPainter *p, int x, int y, int w, int h,
                          bool sunken, bool horz, bool flat=FALSE ) const;
    void drawMetalButton( QPainter *p, int x, int y, int w, int h,
                          bool sunken, bool horz, bool flat=FALSE ) const;
    QPalette oldPalette;
};

#endif

#endif


Implementation of the Metal theme:

/****************************************************************************
** $Id: qt/metal.cpp   3.2.0b2   edited May 13 09:08 $
**
** Copyright (C) 1992-2000 Trolltech AS.  All rights reserved.
**
** This file is part of an example program for Qt.  This example
** program may be used, distributed and modified without limitation.
**
*****************************************************************************/

#include "metal.h"

#ifndef QT_NO_STYLE_WINDOWS

#include "qapplication.h"
#include "qcombobox.h"
#include "qpainter.h"
#include "qdrawutil.h" // for now
#include "qpixmap.h" // for now
#include "qpalette.h" // for now
#include "qwidget.h"
#include "qlabel.h"
#include "qimage.h"
#include "qpushbutton.h"
#include "qwidget.h"
#include "qrangecontrol.h"
#include "qscrollbar.h"
#include "qslider.h"
#include <limits.h>


/////////////////////////////////////////////////////////
//#include "stonedark.xpm"
#include "stone1.xpm"
#include "marble.xpm"
///////////////////////////////////////////////////////



MetalStyle::MetalStyle() : QWindowsStyle() { }

/*!
  Reimplementation from QStyle
 */
void MetalStyle::polish( QApplication *app)
{
    oldPalette = app->palette();

    // we simply create a nice QColorGroup with a couple of fancy
    // pixmaps here and apply to it all widgets

    QFont f("times", app->font().pointSize() );
    f.setBold( TRUE );
    f.setItalic( TRUE );
    app->setFont( f, TRUE, "QMenuBar");
    app->setFont( f, TRUE, "QPopupMenu");



    //    QPixmap button( stonedark_xpm );

    QColor gold("#B9B9A5A54040"); //same as topgrad below
    QPixmap button( 1, 1 ); button.fill( gold );

    QPixmap background(marble_xpm);
    QPixmap dark( 1, 1 ); dark.fill( red.dark() );
    QPixmap mid( stone1_xpm );
    QPixmap light( stone1_xpm );//1, 1 ); light.fill( green );

    QPalette op = app->palette();

    QColor backCol( 227,227,227 );

    // QPalette op(white);
    QColorGroup active (op.active().foreground(),
                     QBrush(op.active().button(),button),
                     QBrush(op.active().light(), light),
                     QBrush(op.active().dark(), dark),
                     QBrush(op.active().mid(), mid),
                     op.active().text(),
                     Qt::white,
                     op.active().base(),//                   QColor(236,182,120),
                     QBrush(backCol, background)
                     );
    active.setColor( QColorGroup::ButtonText,  Qt::white  );
    active.setColor( QColorGroup::Shadow,  Qt::black  );
    QColorGroup disabled (op.disabled().foreground(),
                     QBrush(op.disabled().button(),button),
                     QBrush(op.disabled().light(), light),
                     op.disabled().dark(),
                     QBrush(op.disabled().mid(), mid),
                     op.disabled().text(),
                     Qt::white,
                     op.disabled().base(),//                 QColor(236,182,120),
                     QBrush(backCol, background)
                     );

    QPalette newPalette( active, disabled, active );
    app->setPalette( newPalette, TRUE );
}

/*!
  Reimplementation from QStyle
 */
void MetalStyle::unPolish( QApplication *app)
{
    app->setPalette(oldPalette, TRUE);
    app->setFont( app->font(), TRUE );
}

/*!
  Reimplementation from QStyle
 */
void MetalStyle::polish( QWidget* w)
{

   // the polish function sets some widgets to transparent mode and
    // some to translate background mode in order to get the full
    // benefit from the nice pixmaps in the color group.

    if (w->inherits("QPushButton")){
        w->setBackgroundMode( QWidget::NoBackground );
        return;
    }

    if ( !w->isTopLevel() ) {
        if ( w->backgroundPixmap() )
            w->setBackgroundOrigin( QWidget::WindowOrigin );
    }
}

void MetalStyle::unPolish( QWidget* w)
{

   // the polish function sets some widgets to transparent mode and
    // some to translate background mode in order to get the full
    // benefit from the nice pixmaps in the color group.

    if (w->inherits("QPushButton")){
        w->setBackgroundMode( QWidget::PaletteButton );
        return;
    }
    if ( !w->isTopLevel() ) {
        if ( w->backgroundPixmap() )
            w->setBackgroundOrigin( QWidget::WidgetOrigin );
    }

}

void MetalStyle::drawPrimitive( PrimitiveElement pe,
                                QPainter *p,
                                const QRect &r,
                                const QColorGroup &cg,
                                SFlags flags, const QStyleOption& opt ) const
{
    switch( pe ) {
    case PE_HeaderSection:
        if ( flags & Style_Sunken )
            flags ^= Style_Sunken | Style_Raised;
        // fall through
    case PE_ButtonBevel:
    case PE_ButtonCommand:
            drawMetalButton( p, r.x(), r.y(), r.width(), r.height(),
                             (flags & (Style_Sunken|Style_On|Style_Down)),
                             TRUE, !(flags & Style_Raised) );
            break;
    case PE_PanelMenuBar:
        drawMetalFrame( p, r.x(), r.y(), r.width(), r.height() );
        break;
    case PE_ScrollBarAddLine:
        drawMetalButton( p, r.x(), r.y(), r.width(), r.height(),
                         flags & Style_Down, !( flags & Style_Horizontal ) );
        drawPrimitive( (flags & Style_Horizontal) ? PE_ArrowRight :PE_ArrowDown,
                       p, r, cg, flags, opt );
        break;
    case PE_ScrollBarSubLine:
        drawMetalButton( p, r.x(), r.y(), r.width(), r.height(),
                         flags & Style_Down, !( flags & Style_Horizontal ) );
        drawPrimitive( (flags & Style_Horizontal) ? PE_ArrowLeft : PE_ArrowUp,
                       p, r, cg, flags, opt );
        break;


    case PE_ScrollBarSlider:
        drawMetalButton( p, r.x(), r.y(), r.width(), r.height(), FALSE,
                         flags & Style_Horizontal );
        break;
    default:
        QWindowsStyle::drawPrimitive( pe, p, r, cg, flags, opt );
        break;
    }
}

void MetalStyle::drawControl( ControlElement element,
                              QPainter *p,
                              const QWidget *widget,
                              const QRect &r,
                              const QColorGroup &cg,
                              SFlags how,
                              const QStyleOption& opt ) const
{
    switch( element ) {
    case CE_PushButton:
        {
            const QPushButton *btn;
            btn = (const QPushButton*)widget;
            int x1, y1, x2, y2;

            r.coords( &x1, &y1, &x2, &y2 );

            p->setPen( cg.foreground() );
            p->setBrush( QBrush(cg.button(), NoBrush) );


            QBrush fill;
            if ( btn->isDown() )
                fill = cg.brush( QColorGroup::Mid );
            else if ( btn->isOn() )
                fill = QBrush( cg.mid(), Dense4Pattern );
            else
                fill = cg.brush( QColorGroup::Button );

            if ( btn->isDefault() ) {
                QPointArray a;
                a.setPoints( 9,
                             x1, y1, x2, y1, x2, y2, x1, y2, x1, y1+1,
                             x2-1, y1+1, x2-1, y2-1, x1+1, y2-1, x1+1, y1+1 );
                p->setPen( Qt::black );
                p->drawPolyline( a );
                x1 += 2;
                y1 += 2;
                x2 -= 2;
                y2 -= 2;
            }
            SFlags flags = Style_Default;
            if ( btn->isOn() )
                flags |= Style_On;
            if ( btn->isDown() )
                flags |= Style_Down;
            if ( !btn->isFlat() && !btn->isDown() )
                flags |= Style_Raised;
            drawPrimitive( PE_ButtonCommand, p,
                           QRect( x1, y1, x2 - x1 + 1, y2 - y1 + 1),
                           cg, flags, opt );

            if ( btn->isMenuButton() ) {
                flags = Style_Default;
                if ( btn->isEnabled() )
                    flags |= Style_Enabled;

                int dx = ( y1 - y2 - 4 ) / 3;
                drawPrimitive( PE_ArrowDown, p,
                               QRect(x2 - dx, dx, y1, y2 - y1),
                               cg, flags, opt );
            }
            if ( p->brush().style() != NoBrush )
                p->setBrush( NoBrush );
            break;
        }
    case CE_PushButtonLabel:
        {
            const QPushButton *btn;
            btn = (const QPushButton*)widget;
            int x, y, w, h;
            r.rect( &x, &y, &w, &h );

            int x1, y1, x2, y2;
            r.coords( &x1, &y1, &x2, &y2 );
            int dx = 0;
            int dy = 0;
            if ( btn->isMenuButton() )
                dx = ( y2 - y1 ) / 3;
            if ( btn->isOn() || btn->isDown() ) {
                dx--;
                dy--;
            }
            if ( dx || dy )
                p->translate( dx, dy );
            x += 2;
            y += 2;
            w -= 4;
            h -= 4;
            drawItem( p, QRect( x, y, w, h ),
                      AlignCenter|ShowPrefix,
                      cg, btn->isEnabled(),
                      btn->pixmap(), btn->text(), -1,
                      (btn->isDown() || btn->isOn())? &cg.brightText() : &cg.buttonText() );
            if ( dx || dy )
                p->translate( -dx, -dy );
            break;
        }
    default:
        QWindowsStyle::drawControl( element, p, widget, r, cg, how, opt );
        break;
    }
}
void MetalStyle::drawComplexControl( ComplexControl cc,
                                     QPainter *p,
                                     const QWidget *widget,
                                     const QRect &r,
                                     const QColorGroup &cg,
                                     SFlags how,
                                     SCFlags sub,
                                     SCFlags subActive,
                                     const QStyleOption& opt ) const
{
    switch ( cc ) {
    case CC_Slider:
        {
            const QSlider *slider = ( const QSlider* ) widget;
            QRect handle = querySubControlMetrics( CC_Slider, widget,
                                                   SC_SliderHandle, opt);
            if ( sub & SC_SliderGroove )
                QWindowsStyle::drawComplexControl( cc, p, widget, r, cg, how,
                                                   SC_SliderGroove, subActive, opt );
            if ( (sub & SC_SliderHandle) && handle.isValid() )
                drawMetalButton( p, handle.x(), handle.y(), handle.width(),
                                 handle.height(), FALSE,
                                 slider->orientation() == QSlider::Horizontal);
            break;
        }
    case CC_ComboBox:
        {
            // not exactly correct...
            const QComboBox *cmb = ( const QComboBox* ) widget;

            qDrawWinPanel( p, r.x(), r.y(), r.width(), r.height(), cg, TRUE,
                           cmb->isEnabled() ? &cg.brush( QColorGroup::Base ) :
                                              &cg.brush( QColorGroup::Background ) );
            drawMetalButton( p, r.x() + r.width() - 2 - 16, r.y() + 2, 16, r.height() - 4,
                             how & Style_Sunken, TRUE );
            drawPrimitive( PE_ArrowDown, p,
                           QRect( r.x() + r.width() - 2 - 16 + 2,
                                  r.y() + 2 + 2, 16 - 4, r.height() - 4 -4 ),
                           cg,
                           cmb->isEnabled() ? Style_Enabled : Style_Default,
                           opt );
            break;
        }
    default:
        QWindowsStyle::drawComplexControl( cc, p, widget, r, cg, how, sub, subActive,
                                           opt );
        break;
    }
}


/*!
  Draw a metallic button, sunken if \a sunken is TRUE, horizontal if
  /a horz is TRUE.
*/

void MetalStyle::drawMetalButton( QPainter *p, int x, int y, int w, int h,
                                  bool sunken, bool horz, bool flat  ) const
{

    drawMetalFrame( p, x, y, w, h );
    drawMetalGradient( p, x, y, w, h, sunken, horz, flat );
}




void MetalStyle::drawMetalFrame( QPainter *p, int x, int y, int w, int h ) const
{
    QColor top1("#878769691515");
    QColor top2("#C6C6B4B44949");

    QColor bot2("#70705B5B1414");
    QColor bot1("#56564A4A0E0E"); //first from the bottom


    int x2 = x + w - 1;
    int y2 = y + h - 1;

    //frame:

    p->setPen( top1 );
    p->drawLine( x, y2, x, y );
    p->drawLine( x, y, x2-1, y );
    p->setPen( top2 );
    p->drawLine( x+1, y2 -1, x+1, y+1 );
    p->drawLine( x+1, y+1 , x2-2, y+1 );

    p->setPen( bot1 );
    p->drawLine( x+1, y2, x2, y2 );
    p->drawLine( x2, y2, x2, y );
    p->setPen( bot2 );
    p->drawLine( x+1, y2-1, x2-1, y2-1 );
    p->drawLine( x2-1, y2-1, x2-1, y+1 );


}


void MetalStyle::drawMetalGradient( QPainter *p, int x, int y, int w, int h,
                                    bool sunken, bool horz, bool flat  ) const

{
    QColor highlight("#E8E8DDDD6565");
    QColor subh1("#CECEBDBD5151");
    QColor subh2("#BFBFACAC4545");

    QColor topgrad("#B9B9A5A54040");
    QColor botgrad("#89896C6C1A1A");



    if ( flat && !sunken ) {
            p->fillRect( x + 2, y + 2, w - 4,h -4, topgrad );
    } else {
        // highlight:
        int i = 0;
        int x1 = x + 2;
        int y1 = y + 2;
        int x2 = x + w - 1;
        int y2 = y + h - 1;
        if ( horz )
            x2 = x2 - 2;
        else
            y2 = y2 - 2;

#define DRAWLINE if (horz) \
                    p->drawLine( x1, y1+i, x2, y1+i ); \
                 else \
                    p->drawLine( x1+i, y1, x1+i, y2 ); \
                 i++;

        if ( !sunken ) {
            p->setPen( highlight );
            DRAWLINE;
            DRAWLINE;
            p->setPen( subh1 );
            DRAWLINE;
            p->setPen( subh2 );
            DRAWLINE;
        }
        // gradient:
        int ng = (horz ? h : w) - 8; // how many lines for the gradient?

        int h1, h2, s1, s2, v1, v2;
        if ( !sunken ) {
            topgrad.hsv( &h1, &s1, &v1 );
            botgrad.hsv( &h2, &s2, &v2 );
        } else {
            botgrad.hsv( &h1, &s1, &v1 );
            topgrad.hsv( &h2, &s2, &v2 );
        }

        if ( ng > 1 ) {
            for ( int j =0; j < ng; j++ ) {
                p->setPen( QColor( h1 + ((h2-h1)*j)/(ng-1),
                                   s1 + ((s2-s1)*j)/(ng-1),
                                   v1 + ((v2-v1)*j)/(ng-1),  QColor::Hsv ) );
                DRAWLINE;
            }
        } else if ( ng == 1 ) {
            p->setPen( QColor((h1+h2)/2, (s1+s2)/2, (v1+v2)/2, QColor::Hsv) );
            DRAWLINE;
        }
        if ( sunken ) {
            p->setPen( subh2 );
            DRAWLINE;

            p->setPen( subh1 );
            DRAWLINE;

            p->setPen( highlight );
            DRAWLINE;
            DRAWLINE;
        }
    }
}



int MetalStyle::pixelMetric( PixelMetric metric, const QWidget *w ) const
{
    switch ( metric ) {
    case PM_MenuBarFrameWidth:
        return 2;
    default:
        return QWindowsStyle::pixelMetric( metric, w );
    }
}

#endif


Header file of the example:

/****************************************************************************
** $Id: qt/themes.h   3.2.0b2   edited May 13 09:08 $
**
** Copyright (C) 1992-2000 Trolltech AS.  All rights reserved.
**
** This file is part of an example program for Qt.  This example
** program may be used, distributed and modified without limitation.
**
*****************************************************************************/

#ifndef THEMES_H
#define THEMES_H

#include <qmainwindow.h>
#include <qfont.h>

class QTabWidget;

class Themes: public QMainWindow
{
    Q_OBJECT

public:
    Themes( QWidget *parent = 0, const char *name = 0, WFlags f = WType_TopLevel );

protected:
    QTabWidget *tabwidget;

protected slots:
    void makeStyle(const QString &);
    void about();
    void aboutQt();

private:
    QFont appFont;
};


#endif


Implementation of the example:

/****************************************************************************
** $Id: qt/themes.cpp   3.2.0b2   edited May 13 09:08 $
**
** Copyright (C) 1992-2000 Trolltech AS.  All rights reserved.
**
** This file is part of an example program for Qt.  This example
** program may be used, distributed and modified without limitation.
**
*****************************************************************************/

#include "themes.h"
#include "wood.h"
#include "metal.h"

#include "../buttongroups/buttongroups.h"
#include "../lineedits/lineedits.h"
#include "../listboxcombo/listboxcombo.h"
#include "../checklists/checklists.h"
#include "../progressbar/progressbar.h"
#include "../rangecontrols/rangecontrols.h"
#include "../richtext/richtext.h"

#include <qtabwidget.h>
#include <qapplication.h>
#include <qpopupmenu.h>
#include <qmenubar.h>
#include <qmessagebox.h>
#include <qfont.h>
#include <qstylefactory.h>
#include <qaction.h>
#include <qsignalmapper.h>
#include <qdict.h>

Themes::Themes( QWidget *parent, const char *name, WFlags f )
    : QMainWindow( parent, name, f )
{
    appFont = QApplication::font();
    tabwidget = new QTabWidget( this );

    tabwidget->addTab( new ButtonsGroups( tabwidget ), "Buttons/Groups" );
    QHBox *hbox = new QHBox( tabwidget );
    hbox->setMargin( 5 );
    (void)new LineEdits( hbox );
    (void)new ProgressBar( hbox );
    tabwidget->addTab( hbox, "Lineedits/Progressbar" );
    tabwidget->addTab( new ListBoxCombo( tabwidget ), "Listboxes/Comboboxes" );
    tabwidget->addTab( new CheckLists( tabwidget ), "Listviews" );
    tabwidget->addTab( new RangeControls( tabwidget ), "Rangecontrols" );
    tabwidget->addTab( new MyRichText( tabwidget ), "Fortune" );

    setCentralWidget( tabwidget );

    QPopupMenu *style = new QPopupMenu( this );
    style->setCheckable( TRUE );
    menuBar()->insertItem( "&Style" , style );

    style->setCheckable( TRUE );
    QActionGroup *ag = new QActionGroup( this, 0 );
    ag->setExclusive( TRUE );
    QSignalMapper *styleMapper = new QSignalMapper( this );
    connect( styleMapper, SIGNAL( mapped( const QString& ) ), this, SLOT( makeStyle( const QString& ) ) );
    QStringList list = QStyleFactory::keys();
    list.sort();
#ifndef QT_NO_STYLE_WINDOWS
    list.insert(list.begin(), "Norwegian Wood");
    list.insert(list.begin(), "Metal");
#endif
    QDict<int> stylesDict( 17, FALSE );
    for ( QStringList::Iterator it = list.begin(); it != list.end(); ++it ) {
        QString styleStr = *it;
        QString styleAccel = styleStr;
        if ( stylesDict[styleAccel.left(1)] ) {
            for ( uint i = 0; i < styleAccel.length(); i++ ) {
                if ( !stylesDict[styleAccel.mid( i, 1 )] ) {
                    stylesDict.insert(styleAccel.mid( i, 1 ), (const int *)1);
                    styleAccel = styleAccel.insert( i, '&' );
                    break;
                }
            }
        } else {
            stylesDict.insert(styleAccel.left(1), (const int *)1);
            styleAccel = "&"+styleAccel;
        }
        QAction *a = new QAction( styleStr, QIconSet(), styleAccel, 0, ag, 0, ag->isExclusive() );
        connect( a, SIGNAL( activated() ), styleMapper, SLOT(map()) );
        styleMapper->setMapping( a, a->text() );
    }
    ag->addTo(style);
    style->insertSeparator();
    style->insertItem("&Quit", qApp, SLOT( quit() ), CTRL | Key_Q );

    QPopupMenu * help = new QPopupMenu( this );
    menuBar()->insertSeparator();
    menuBar()->insertItem( "&Help", help );
    help->insertItem( "&About", this, SLOT(about()), Key_F1);
    help->insertItem( "About &Qt", this, SLOT(aboutQt()));

#ifndef QT_NO_STYLE_WINDOWS
    qApp->setStyle( new NorwegianWoodStyle );
#endif
}

void Themes::makeStyle(const QString &style)
{
    if(style == "Norwegian Wood") {
#ifndef QT_NO_STYLE_WINDOWS
        qApp->setStyle( new NorwegianWoodStyle );
#endif
    } else if( style == "Metal" ) {
#ifndef QT_NO_STYLE_WINDOWS
        qApp->setStyle( new MetalStyle );
#endif
    } else {
        qApp->setStyle(style);
        if(style == "Platinum") {
            QPalette p( QColor( 239, 239, 239 ) );
            qApp->setPalette( p, TRUE );
            qApp->setFont( appFont, TRUE );
        } else if(style == "Windows") {
            qApp->setFont( appFont, TRUE );
        } else if(style == "CDE") {
            QPalette p( QColor( 75, 123, 130 ) );
            p.setColor( QPalette::Active, QColorGroup::Base, QColor( 55, 77, 78 ) );
            p.setColor( QPalette::Inactive, QColorGroup::Base, QColor( 55, 77, 78 ) );
            p.setColor( QPalette::Disabled, QColorGroup::Base, QColor( 55, 77, 78 ) );
            p.setColor( QPalette::Active, QColorGroup::Highlight, Qt::white );
            p.setColor( QPalette::Active, QColorGroup::HighlightedText, QColor( 55, 77, 78 ) );
            p.setColor( QPalette::Inactive, QColorGroup::Highlight, Qt::white );
            p.setColor( QPalette::Inactive, QColorGroup::HighlightedText, QColor( 55, 77, 78 ) );
            p.setColor( QPalette::Disabled, QColorGroup::Highlight, Qt::white );
            p.setColor( QPalette::Disabled, QColorGroup::HighlightedText, QColor( 55, 77, 78 ) );
            p.setColor( QPalette::Active, QColorGroup::Foreground, Qt::white );
            p.setColor( QPalette::Active, QColorGroup::Text, Qt::white );
            p.setColor( QPalette::Active, QColorGroup::ButtonText, Qt::white );
            p.setColor( QPalette::Inactive, QColorGroup::Foreground, Qt::white );
            p.setColor( QPalette::Inactive, QColorGroup::Text, Qt::white );
            p.setColor( QPalette::Inactive, QColorGroup::ButtonText, Qt::white );
            p.setColor( QPalette::Disabled, QColorGroup::Foreground, Qt::lightGray );
            p.setColor( QPalette::Disabled, QColorGroup::Text, Qt::lightGray );
            p.setColor( QPalette::Disabled, QColorGroup::ButtonText, Qt::lightGray );
            qApp->setPalette( p, TRUE );
            qApp->setFont( QFont( "times", appFont.pointSize() ), TRUE );
        } else if(style == "Motif" || style == "MotifPlus") {
            QPalette p( QColor( 192, 192, 192 ) );
            qApp->setPalette( p, TRUE );
            qApp->setFont( appFont, TRUE );
        }
    }
}

void Themes::about()
{
    QMessageBox::about( this, "Qt Themes Example",
                        "<p>This example demonstrates the concept of "
                        "<b>generalized GUI styles </b> first introduced "
                        " with the 2.0 release of Qt.</p>" );
}


void Themes::aboutQt()
{
    QMessageBox::aboutQt( this, "Qt Themes Example" );
}



Main:

/****************************************************************************
** $Id: qt/main.cpp   3.2.0b2   edited May 13 09:08 $
**
** Copyright (C) 1992-2000 Trolltech AS.  All rights reserved.
**
** This file is part of an example program for Qt.  This example
** program may be used, distributed and modified without limitation.
**
*****************************************************************************/

#include <qapplication.h>
#include <qwindowsstyle.h>
#include "themes.h"

#include "metal.h"

int main( int argc, char ** argv )
{
    QApplication::setColorSpec( QApplication::ManyColor );
    QApplication a( argc, argv );

    Themes themes;
    themes.setCaption( "Qt Example - Themes (QStyle)" );
    themes.resize( 640, 400 );
    a.setMainWidget( &themes );
    themes.show();

    return a.exec();
}

See also Examples.


Copyright © 2003 TrolltechTrademarks
Qt version 3.2.0b2