FascinatedBox / QLiveStyleEditor

Embeddable Qt stylesheet editor for testing stylesheets.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QLiveStyleEditor

QLiveStyleEditor is a tool for writing Qt stylesheets that is easy to embed in an existing project. Stylesheet rules written in QLiveStyleEditor are immediately checked and applied if valid. The editor supports basic text editing operations (cut, copy, paste, undo, redo, and save).

Demo image

Usage

QLiveStyleEditor is composed of two files: src/qlivestyleeditor.h and src/qlivestyleeditor.cpp. Copy them into your project and include them in the build (can be qmake or cmake).

Once you've done that, all that's left is to create an instance of QLiveStyleEditor.

#include "qlivestyleeditor.h"

int main(int argv, char **argc)
{
    QApplication app(argv, argc);
    QLiveStyleEditor *l = new QLiveStyleEditor(&app, "path-to-your-style.qss");

    l->show();
    return app.exec();
}

About

Embeddable Qt stylesheet editor for testing stylesheets.

License:MIT License


Languages

Language:C++ 95.3%Language:CMake 4.7%