Results 1 to 3 of 3

Thread: QGLWidget and draw string

  1. #1
    Join Date
    Apr 2010
    Location
    Italia
    Posts
    149
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QGLWidget and draw string

    Hi all, there is a method of QGLWidget type draw_string( i, 0, 0, str ) that allows me to draw in (i, 0, 0) the string str ? An example of C + + code that will allow me to do what ?

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: QGLWidget and draw string

    Qt Code:
    1. void QGLWidget::renderText ( double x, double y, double z, const QString & str, const QFont & font = QFont(), int listBase = 2000 )
    To copy to clipboard, switch view to plain text mode 
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

  3. #3
    Join Date
    Apr 2010
    Location
    Italia
    Posts
    149
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QGLWidget and draw string

    Tanks you, Santosh Reddy, very much

Similar Threads

  1. QGLWidget: Draw 100% of image (even when hidden)
    By JohnnyRep in forum Qt Programming
    Replies: 5
    Last Post: 28th January 2016, 14:46
  2. Replies: 2
    Last Post: 21st February 2013, 15:47
  3. QGLWidget don't draw in its place in the layout
    By entee in forum Qt Programming
    Replies: 1
    Last Post: 15th October 2011, 19:01
  4. Replies: 1
    Last Post: 27th August 2011, 15:10
  5. Replies: 10
    Last Post: 10th February 2011, 23:31

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.