Results 1 to 9 of 9

Thread: How to draw freetype fonts on QGraphicsScene?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2013
    Posts
    17
    Thanks
    2
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default How to draw freetype fonts on QGraphicsScene?

    Hey i am trying to draw freetype font on QGraphicsScene....

    I have attached my header and source files for program.

    I am using freetype lib functions to get glyph outlins for a given character from a give font
    I am drawing character on image then converting it to pixmap and drawing that pixmap on scene.
    is this the right way to draw fonts on QGraphicsScene?
    how to make that character move, or select or re scale?
    what is the another way to draw fonts in Qt?

    I also want to pop up this font drawing window when i click on the option or say button of my base aplication.
    how to do that?
    i tried doing that also ...even the window comes up but when I close the window...the 'Application output' tab shows that 'The program has unexpectedly finished' .
    I can't figure out why is that?

    how to solve these problems??
    Attached Files Attached Files

Similar Threads

  1. How to Draw spline on QGraphicsScene
    By seguprasad in forum Qt Programming
    Replies: 1
    Last Post: 3rd February 2011, 05:28
  2. To Draw Text at given position on QGraphicsScene
    By volcano in forum Qt Programming
    Replies: 6
    Last Post: 4th February 2010, 08:16
  3. Replies: 5
    Last Post: 21st January 2010, 15:55
  4. QGraphicsScene and fonts/shapes sizes
    By olelukoie in forum Qt Programming
    Replies: 15
    Last Post: 28th January 2009, 21:46
  5. want to draw points in QGraphicsScene
    By ntp in forum Qt Programming
    Replies: 2
    Last Post: 10th April 2008, 18:14

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.