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. [solved] QuickItem custom drawing: multiple colors
Forum Updated to NodeBB v4.3 + New Features

[solved] QuickItem custom drawing: multiple colors

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 772 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.
  • Q Offline
    Q Offline
    qttester5
    wrote on last edited by
    #1

    It seems each node in a subclassed QQuickItem must have a single uniform color over all drawing in that node. This contrasts with a single OpenGL call where you can specify different colors for each vertex you send. I know I can use multiple nodes, but that's a problem if you have quite a variety of colors that are changing often. Is there a way to send colors per-vertex when you setup the geometry for a QQuickItem rather than just have the material/color for the entire geometry be constant?

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      qttester5
      wrote on last edited by
      #2

      I have since found that this class supports other types of attributes than the simple flatcolor material, so I believe this is resolved.

      1 Reply Last reply
      0
      • EddyE Offline
        EddyE Offline
        Eddy
        wrote on last edited by
        #3

        Thanks for reporting back to us of the status.

        Please add [solved] to the topic so everyone can see that this problem is solved. You can do that by editing your first post.

        Qt Certified Specialist
        www.edalsolutions.be

        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