Skip to content

chrizbee/QtStyler

Repository files navigation

Basic Overview

QtStyler is a QObject class to style QtWidgets. See QtShowcase for an example and screenshots.

Usage

To use QtStyler in your application simply clone this repository to your applications root folder.

cd YourApplication
git clone https://github.com/chrizbee/QtStyler

Additionally the project needs to be included from YourApplication.pro.

include(QtStyler/qtstyler.pri)

The easiest way to use QtStyler is with a QComboBox.

QtStyler *styler = new QtStyler(this);
QComboBox *combo = new QComboBox(this);
combo->addItems(styler->availableStyles());
combo->setCurrentText(styler->currentStyle());
connect(combo, &QComboBox::currentTextChanged, styler, &QtStyler::setStyle);
connect(styler, &QtStyler::styleChanged, combo, &QComboBox::setCurrentText);

Built With

  • Qt5 - The UI framework used

Versioning

We use SemVer for versioning.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details.