Results 1 to 4 of 4

Thread: Can't adjust font size of QGraphicsTextItem in QGraphicsRectItem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Dec 2019
    Posts
    32
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Can't adjust font size of QGraphicsTextItem in QGraphicsRectItem

    Quote Originally Posted by d_stranz View Post
    Have you set the QGraphicsItem::ItemIgnoresTransformations flag on your QGraphicsTextItem? This will prevent the QGraphicsRectItem from scaling the text according to its own scaling transformations (which are applied when the scene is fit into the view).



    You should be a little more patient. This forum has been slow lately, and not everyone reads it every day.
    My apologies. I'll take a look at what you mentioned. Thanks.

  2. The following user says thank you to leinad for this useful post:

    d_stranz (3rd November 2021)

Similar Threads

  1. Replies: 1
    Last Post: 30th March 2012, 16:46
  2. QGraphicsRectItem and QGraphicsTextItem.
    By cydside in forum Qt Programming
    Replies: 13
    Last Post: 20th July 2009, 12:11
  3. Font size in QGraphicsTextItem
    By rippa in forum Qt Programming
    Replies: 1
    Last Post: 7th December 2008, 19:11
  4. adjust font size to QLabel-size
    By hunsrus in forum Qt Programming
    Replies: 0
    Last Post: 9th July 2008, 14:33
  5. adjust Font size to a given rect when drawText
    By yartov in forum Qt Programming
    Replies: 5
    Last Post: 14th May 2008, 19:03

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.