Results 1 to 2 of 2

Thread: Text rotation in QPainter

  1. #1
    Join Date
    Apr 2009
    Location
    Pasadena, CA
    Posts
    2
    Qt products
    Platforms
    Windows

    Default Text rotation in QPainter

    Can I rotate text in the QPainter of a QFrame?

    I was able to rotate the painter but that gets a bit complicated. I've made a QFrame that represents the Y-axis of a chart and I'd like to put the label name rotated 90 degrees.

    I've been using PyQt4 for about a week and have been really happy with the ease of use, and dynamite functionality but this has me stuck -- it's got to be simple but I can't find the info.

    Thanks ,

    Rob
    Last edited by acpRobert; 26th April 2009 at 02:54. Reason: updated contents

  2. #2
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Thanks
    8
    Thanked 127 Times in 121 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Text rotation in QPainter

    I'm not familiar with PyQt but I suppose the API should be close to that of Qt so QPainter should expose several methods to transform its coordinate system which will allow you to draw text any way you want :

    Current Qt projects : QCodeEdit, RotiDeCode

Similar Threads

  1. Unhandled exception in qatomic
    By NewGuy in forum Qt Programming
    Replies: 14
    Last Post: 23rd July 2013, 09:49
  2. Positioning Rich Text when using QPainter
    By millsks in forum Qt Programming
    Replies: 8
    Last Post: 23rd June 2009, 07:21
  3. Drawing Rich Formatted Text with QPainter
    By millsks in forum Qt Programming
    Replies: 1
    Last Post: 5th March 2009, 19:59
  4. Replies: 2
    Last Post: 30th December 2008, 21:35
  5. Rich text with QPainter?
    By sarefo in forum Qt Programming
    Replies: 3
    Last Post: 7th April 2008, 14:40

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.