Results 1 to 2 of 2

Thread: QgraphicsSimpleTextItem, QPen outline

  1. #1

    Default QgraphicsSimpleTextItem, QPen outline

    is there a way to get the outline draw by qpen on a qgrphicssimpletextitem to only draw as an outline?
    it seems it draws centered instead of only outlining

  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: QgraphicsSimpleTextItem, QPen outline

    Use QGraphicsPathItem instead of QGraphicsSimpleTextItem and use QPainterPath::addText(). Make the item have an empty brush to prevent filling the shape.
    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: 2
    Last Post: 6th May 2011, 19:50
  2. QGraphicTextItem and outline
    By eric_vi in forum Qt Programming
    Replies: 12
    Last Post: 17th October 2010, 20:47
  3. How to remove 3D frame and outline in QToolButton?
    By Kevin Hoang in forum Qt Programming
    Replies: 9
    Last Post: 9th March 2010, 14:31
  4. Checking for intersect of QPainterPath OUTLINE?
    By SonOfGuest in forum Qt Programming
    Replies: 1
    Last Post: 12th May 2009, 00:30
  5. Line Outline?
    By jon-ecm in forum Qt Programming
    Replies: 0
    Last Post: 23rd April 2009, 00:46

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.