Results 1 to 4 of 4

Thread: Multiple Meshes for a single QQuickItem subclass?

  1. #1
    Join Date
    Dec 2013
    Posts
    9
    Qt products
    Qt5
    Platforms
    Windows

    Default Multiple Meshes for a single QQuickItem subclass?

    It appears as though QQuickItem supports one instance of QSGGeometry. I'm interested in drawing more than one thing, and in different colors, in a single QQuickItem. Is this possible? This would require more than one instance of QSGGeometry for the meshes, or at least more than one material if they were different colors.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Multiple Meshes for a single QQuickItem subclass?

    Yes, it is possible. You can set a top level QSGNode where you will attach more than one child node.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Dec 2013
    Posts
    9
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Multiple Meshes for a single QQuickItem subclass?

    Ok, so the single QQuickItem returns from updatePaintNode a single node, but that node has multiple child nodes, is that what you mean?

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Multiple Meshes for a single QQuickItem subclass?

    Yes, that's exactly what I mean.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 0
    Last Post: 11th June 2013, 10:50
  2. Multiple model to single view
    By moh.gup@gmail.com in forum Qt Programming
    Replies: 4
    Last Post: 9th March 2012, 09:57
  3. multiple table in a single variable
    By sattu in forum Qt Programming
    Replies: 0
    Last Post: 1st March 2011, 11:01
  4. Should I use multiple or a single model(s)?
    By Cotlone in forum Newbie
    Replies: 2
    Last Post: 7th May 2010, 03:39
  5. insertion of multiple items in a single row
    By grimbaum in forum Qt Programming
    Replies: 4
    Last Post: 17th November 2006, 05:36

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.