Results 1 to 2 of 2

Thread: QQuickItem draw text in C++

  1. #1
    Join Date
    Aug 2009
    Thanked 1 Time in 1 Post
    Qt products
    Unix/X11 Windows

    Default QQuickItem draw text in C++

    Hi. Im use QQuickItem and updatePaintNode for pain my item in qml, because QQuickPainterItem is wery slow, to slow it is not posible to use. But i need draw text in QQuickItem how i can do this?

  2. #2
    Join Date
    Jan 2006
    Graz, Austria
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Unix/X11 Windows

    Default Re: QQuickItem draw text in C++

    When QQuickPaintedItem is to slow because of a high updated frequency, the next easiest way is usually to use QQuickFrameBufferObject as you can still use normal OpenGL to render.
    If you really need to go to the scene graph API then I would suggest to look how the standard Text element does it.


Similar Threads

  1. draw multiple custom openGL objects in a QQUickItem
    By notImplemented in forum Qt Quick
    Replies: 3
    Last Post: 7th January 2015, 18:10
  2. Draw text on images
    By arunkumaraymuo1 in forum Qt Programming
    Replies: 2
    Last Post: 23rd August 2012, 05:38
  3. Replies: 10
    Last Post: 10th February 2011, 23:31
  4. QtOpenGL how to draw text?
    By AndreaCe in forum Qt Programming
    Replies: 0
    Last Post: 22nd July 2009, 00:50
  5. QLineEdit, draw only text
    By Radagast in forum Qt Programming
    Replies: 1
    Last Post: 28th March 2009, 11:15


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.