Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How does QWidget support stylesheet ?
Forum Updated to NodeBB v4.3 + New Features

How does QWidget support stylesheet ?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 4.1k Views 1 Watching
  • 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.
  • L Offline
    L Offline
    linlin_0
    wrote on 18 Nov 2010, 12:52 last edited by
    #1

    hi,all.
    as we know ,the widget supports stylesheet. but i read the qwidget source code , i find the function paintevent() doing nothing.
    anybody can tell me
    how does the qwidget support stylesheet ?
    where can i find the information?

    thanks a lot.

    1 Reply Last reply
    0
    • F Offline
      F Offline
      Franzk
      wrote on 18 Nov 2010, 12:57 last edited by
      #2

      Have you read the "Qt Style Sheets":http://doc.qt.nokia.com/latest/stylesheet.html documentation?

      "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dfaure
        wrote on 24 Nov 2010, 17:53 last edited by
        #3

        The stylesheet support is done by a widget style, internally. I.e. a QStyle subclass. So if you're looking for the code, it will be in src/gui/styles/qstylesheetstyle.cpp

        David Faure (david.faure@kdab.com)
        KDE/Qt Senior Software Engineer
        KDAB - Qt Experts - Platform-independent software solutions

        1 Reply Last reply
        0

        1/3

        18 Nov 2010, 12:52

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved