Results 1 to 1 of 1

Thread: How to paint a 2D polygon with different colors in each vertex?

  1. #1
    Join Date
    Feb 2014
    Posts
    28
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Windows

    Question How to paint a 2D polygon with different colors in each vertex?

    Hello everyone,

    I want to draw a gradient 2D polygon with different colors in each vertex(like the picture in accessory), It seems that the derived class of QGradient(which means QConicalGradient, QLinearGradient, and QRadialGradient) could not finished this work, is there anyway to draw this polygon?

    001TuJVSgy6UEVByCdnf5.jpg
    Last edited by momo; 29th June 2016 at 02:36.

Similar Threads

  1. Point in a Polygon
    By jesse_mark in forum Qt Programming
    Replies: 2
    Last Post: 31st July 2013, 00:49
  2. Pass two attributes into vertex shader(Qt5.0.2)
    By stereoMatching in forum Qt Programming
    Replies: 0
    Last Post: 9th May 2013, 03:33
  3. Draw polygon in QML
    By tuxit in forum Qt Quick
    Replies: 0
    Last Post: 27th July 2011, 15:13
  4. QGLBuffer instead of Vertex Buffer Object -> How To?
    By FlashMuller in forum Qt Programming
    Replies: 0
    Last Post: 18th November 2010, 11:41
  5. pixmap to polygon
    By mhoover in forum Qt Programming
    Replies: 1
    Last Post: 14th October 2009, 09:02

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.