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. QGradient add stops at starting/ending location
Forum Updated to NodeBB v4.3 + New Features

QGradient add stops at starting/ending location

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 256 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.
  • PerdrixP Offline
    PerdrixP Offline
    Perdrix
    wrote on last edited by Perdrix
    #1

    I'd like to be able to add stops at the start location and end location.

    Why? Because I'd like the start and end to remain as they are (for the sake of argument (0.0, black) and (1.0, white)).

    The additional stops I'd like to able to modify but initially set to the existing start/end locations and colours.

    So would it work if the vector of stops were:

    (0.0, black), (0.0, black), (sqrt(0.5), grey), (1.0, white), (1.0, white)?

    Or do I need to adjust the position of the second and last but one stops to (say) 0.001 and 0.999

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      I would guess double points are simply ignored - simply try it out and you will see.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      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