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. Multiple meshes or different colored vertex sets on a single QQuickItem?
Forum Updated to NodeBB v4.3 + New Features

Multiple meshes or different colored vertex sets on a single QQuickItem?

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 614 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

    Is it possible to have more than one draw call for a QQuickItem subclass? It seems to only support one QSGGeometry instance, which suggests it cannot. For example, suppose I am drawing a multi-colored chart in QQuickItem's updatePaintNode, how would I do this if it only supports one set of vertices?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      Torgeir
      wrote on last edited by
      #2

      The QSGNode that you create in updatePaintNode() may have as many children (with their own geometries) as you'd like.

      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