Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML 1.1 Gradient strange

QML 1.1 Gradient strange

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 639 Views 2 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.
  • R Offline
    R Offline
    RubberJones
    wrote on last edited by
    #1

    Hello,
    I am trying to integrate a gradient in my application. But as you can see in the picture, the color gradient is not continuous. Everything looks fine on my desktop PC, but not on my embedded device. Any of you have any idea what that might be?

    The color gradient in the rectangle is defined as follows.

    gradient: Gradient {
    GradientStop { position: 0.0; color: "#1c1c1c" }
    GradientStop { position: 1.0; color: "#545454"}
    }

    0_1519816154127_20180228_115026.jpg

    raven-worxR 1 Reply Last reply
    0
    • R RubberJones

      Hello,
      I am trying to integrate a gradient in my application. But as you can see in the picture, the color gradient is not continuous. Everything looks fine on my desktop PC, but not on my embedded device. Any of you have any idea what that might be?

      The color gradient in the rectangle is defined as follows.

      gradient: Gradient {
      GradientStop { position: 0.0; color: "#1c1c1c" }
      GradientStop { position: 1.0; color: "#545454"}
      }

      0_1519816154127_20180228_115026.jpg

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @RubberJones
      alternative:

       LinearGradient {
              anchors.fill: parent
              start: Qt.point(0, 0)
              end: Qt.point(parent.width, 0)
              gradient: Gradient {
                  GradientStop { position: 0.0; color: "#1c1c1c" }
                  GradientStop { position: 1.0; color: "#545454" }
              }
          }
      

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • R Offline
        R Offline
        RubberJones
        wrote on last edited by
        #3

        @raven-worx
        LinearGradient is not available with Qt Quick 1.1 after all

        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