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. LinearGradient Center problem

LinearGradient Center problem

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 1 Posters 269 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.
  • jondoeJ Offline
    jondoeJ Offline
    jondoe
    wrote on last edited by jondoe
    #1

    Hello,
    I have rectangle 862x65.
    And i have 3 color red-yellow-green

    I using this colors witch lineargradient in rectangle and i want show in center of rectangle.
    But yellow not in center.

    How can i show yellow color in center?

    Codes
    https://pastebin.com/ZdMvRhin

    What i want?
    http://prntscr.com/opj10j

    Example
    http://prntscr.com/opj30p

    jondoeJ 1 Reply Last reply
    0
    • jondoeJ jondoe

      Hello,
      I have rectangle 862x65.
      And i have 3 color red-yellow-green

      I using this colors witch lineargradient in rectangle and i want show in center of rectangle.
      But yellow not in center.

      How can i show yellow color in center?

      Codes
      https://pastebin.com/ZdMvRhin

      What i want?
      http://prntscr.com/opj10j

      Example
      http://prntscr.com/opj30p

      jondoeJ Offline
      jondoeJ Offline
      jondoe
      wrote on last edited by
      #2

      Fixed problems.

      Fix
      start: Qt.point(0,parent.height/2)
      end: Qt.point(parent.width,parent.height/2)

      1 Reply Last reply
      3

      • Login

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