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. [SOLVED]box-shadow in stylesheet

[SOLVED]box-shadow in stylesheet

Scheduled Pinned Locked Moved General and Desktop
10 Posts 3 Posters 11.6k 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.
  • M Offline
    M Offline
    mbnoimi
    wrote on last edited by
    #1

    I wonder how can I view the shadow by stylesheet?

    I tried the but it didn't work!
    @box-shadow: 0px 5px 5px 0px rgb(0, 170, 0);@

    1 Reply Last reply
    0
    • S Offline
      S Offline
      shadabk92
      wrote on last edited by
      #2

      Hello,
      I believe this is what you are looking for.If not,please do post back.
      Have a look at this link
      http://www.w3schools.com/cssref/css3_pr_box-shadow.asp

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

        bq. I believe this is what you are looking for.

        yes

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mbnoimi
          wrote on last edited by
          #4

          Any idea guys?! I couldn't see any mentioning to box-shadow in StyleSheets reference

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

            New up since last August

            1 Reply Last reply
            0
            • Chris KawaC Offline
              Chris KawaC Offline
              Chris Kawa
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Do you want it on a webpage using webkit or via qss on a widget?

              qss is a subset of css and does not support box shadow. Some simple cases can be "emulated" to an extent with some clever border gradients or a parent container with a padding and background gradient.

              1 Reply Last reply
              1
              • M Offline
                M Offline
                mbnoimi
                wrote on last edited by
                #7

                [quote]Do you want it on a webpage using webkit or via qss on a widget?[/quote]
                On widget

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  mbnoimi
                  wrote on last edited by
                  #8

                  Bump it; Shadow effect is needed feature in modern GUI

                  1 Reply Last reply
                  0
                  • Chris KawaC Offline
                    Chris KawaC Offline
                    Chris Kawa
                    Lifetime Qt Champion
                    wrote on last edited by Chris Kawa
                    #9

                    As I said - qss doesn't support it and most likely will not as there are no (that I know of) new features added to the widgets module.

                    Qt devs rarely read this forum so it's not the best place for feature request. You can always make it here: https://bugreports.qt.io

                    For now you can get shadows with border images or gradients or by using QGraphicsDropShadowEffect with setGraphicsEffect.

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      mbnoimi
                      wrote on last edited by
                      #10

                      Thanks a lot.

                      I'm really confused these days because I touch that Qt gurus (including Digia staff) push us to Qt Quick by stopping adding new features to Qt Widgets. I'm not confidence in Qt Quick although of its fancy features because of Digia policy (commercial plugins of QML) so I may leave Qt to another toolkit which may offers cross-platform flexibility (including web interface).

                      Any way, this post isn't the right place so I’ve to stop here. Once again thank you Chris.

                      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