Home · All Classes · Main Classes · Annotated · Grouped Classes · Functions

window.h Example File
painting/basicdrawing/window.h

    #ifndef WINDOW_H
    #define WINDOW_H

    #include <QWidget>

    class QCheckBox;
    class QComboBox;
    class QLabel;
    class QSpinBox;
    class RenderArea;

    class Window : public QWidget
    {
        Q_OBJECT

    public:
        Window();

    private slots:
        void shapeChanged();
        void penChanged();
        void brushChanged();

    private:
        void addItem(QComboBox *comboBox, const QString &text, int id);

        RenderArea *renderArea;
        QLabel *shapeLabel;
        QLabel *penWidthLabel;
        QLabel *penStyleLabel;
        QLabel *penCapLabel;
        QLabel *penJoinLabel;
        QLabel *brushStyleLabel;
        QComboBox *shapeComboBox;
        QSpinBox *penWidthSpinBox;
        QComboBox *penStyleComboBox;
        QComboBox *penCapComboBox;
        QComboBox *penJoinComboBox;
        QComboBox *brushStyleComboBox;
        QCheckBox *antialiasingCheckBox;
        QCheckBox *transformationsCheckBox;
    };

    #endif


Copyright © 2005 Trolltech Trademarks
Qt 4.0.0-b2