Coder Social home page Coder Social logo

qstylesheetstring's Introduction

QStyleSheetString

QStyleSheetString is a class for pretty creating, saving, editing and getting CSS StyleSheet for Qt object. This class ONLY for Qt (because he uses another Qt classes).

![photo]

Installation

Just download this files. And include this class to project:

#include "path/to/class/QStyleSheetString.h"

Don't forget to inslude this class to .pro file (or another configuration file of project).

Usage example

Simle example how to use QStyleSheetString:

    // in constructor we set name of object
    QStyleSheetString style("QPushButton");
    // set propereties
    style.SetPropereties("", "color", "#86ab29");
    style.SetPropereties("", "background", "#ffffff");
    style.SetPropereties("", "border", "2px solid grey");
    style.SetPropereties("", "border-radius", "5px");
    style.SetPropereties(":hover", "color", "#ffffff");
    style.SetPropereties(":hover", "border", "2px solid #1d7f88");
    style.SetPropereties(":hover", "background", "#f24bef");
    // apple style to our button
    ui->button1->setStyleSheet(style.GetStyleSheet());

Result:

For more examples and usage, please refer to the [Wiki][wiki].

Release History

  • v.0.1
    • Can create, edit and remove selectors...

Meta

Pavlo Myroniuk โ€“ @TheBestTvarynka โ€“ [email protected]

Distributed under the GNU General Public License v3.0 license. See LICENSE for more information.

https://github.com/TheBestTvarynka/QStyleSheetString

Contributing

  1. Fork it (https://github.com/TheBestTvarynka/QStyleSheetString)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

qstylesheetstring's People

Contributors

thebesttvarynka avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.