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. Box-shadow in qss?
Forum Update on Monday, May 27th 2025

Box-shadow in qss?

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 6.1k Views
  • 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
    liuyanghejerry
    wrote on last edited by
    #1

    CSS3 Box-shadow has been in candidate of CSS3 spec for a while. However, I don't see any clue about using box-shadow in Qt style sheet (NOT QtWebkit!).

    Is that will be support? Or, is style sheet died already?

    1 Reply Last reply
    0
    • W Offline
      W Offline
      weblife
      wrote on last edited by
      #2

      The style sheet model is based on CSS2 and all of its selector definitions and a little bit of CSS3 Pseudo-Elements. Keep in mind they don't always cascade they way you want into sub elements of a widget.

      I believe this was created before Nokia took over Qt and it may have very little support for more CSS3 due to QML features now.

      Brandon Clark
      www.themindspot.com

      1 Reply Last reply
      0
      • M Offline
        M Offline
        messi
        wrote on last edited by
        #3

        @weblife I think style sheet should be supported in the future because not everyone is jumping on the QML Train. In my last project style sheet was very important for the look & feel.
        So only the future will tell us if style sheet will die.

        1 Reply Last reply
        0
        • W Offline
          W Offline
          weblife
          wrote on last edited by
          #4

          @messi I don't disagree I'm on the gravy boat too and prefer .qss files. I say that because of the lack of progress over a long period of time and the repeated responses of others pushing QML to do these style edits.

          Brandon Clark
          www.themindspot.com

          1 Reply Last reply
          0
          • M Offline
            M Offline
            messi
            wrote on last edited by
            #5

            @weblife Totally clear. But I wondering how the KDE guys will continue the work on the Desktop. Will they all switch to QML and realize all the features with it? I doubt that. QML is a nice thing and it will drive the development further but to gain and to keep the number of developers they have to continue and to support the native C++ way as well. That's what M$ also is doing with there new architecture of Win8. You can develop your applications in almost every way.

            1 Reply Last reply
            0
            • L Offline
              L Offline
              liuyanghejerry
              wrote on last edited by
              #6

              What a pity. I'm interested in it because it's not that easy to implement box-shadow in other ways. The most closed way may be draw a blurred image under my widget.

              And if I look into the source code of QWidget, is there any possibility that submit a fix around this?

              1 Reply Last reply
              0

              • Login

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