Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    What's the different between QStyle and QStyleSheet?

    General and Desktop
    2
    2
    797
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      henryxuv last edited by

      I don't have much experience to UI programming, Can anybody explain the difference between them?thanks!

      1 Reply Last reply Reply Quote 0
      • jensen82
        jensen82 last edited by

        QStyleSheet is an old class from Qt3. I'm sure you mean styling the application with a stylesheet like webpages "Stylesheet Examples":http://qt-project.org/doc/qt-5/stylesheet-examples.html. You derive a class from QStyle to create a style (style coded in C++). Take a look at the examples int Qt5 (FoldertoQt\examples\widgets\widgets).

        1 Reply Last reply Reply Quote 0
        • First post
          Last post