Results 1 to 2 of 2

Thread: QGraphicsTextItem position

  1. #1
    Join Date
    Aug 2010
    Posts
    62
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    3

    Default QGraphicsTextItem position

    Hello!

    I've searched in the documentation but I didn't find what I need...so please, could you tell me how can I change the position of a QGraphicsTextItem object in a QGraphicsScene?

    Or, how can I set the position of the text written by using QGraphicsScene::addText(QString &text)?

    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: QGraphicsTextItem position

    Quote Originally Posted by harmodrew View Post
    I've searched in the documentation but I didn't find what I need...
    Then you should spend some time to get familiar with the documentation and its search! QGraphicsItem::setPos().

Similar Threads

  1. QGraphicsTextItem and text cursor position via QPoint
    By Lykurg in forum Qt Programming
    Replies: 2
    Last Post: 10th July 2017, 19:38
  2. QGraphicsTextItem not remembering it's position
    By grabalon in forum Qt Programming
    Replies: 2
    Last Post: 6th July 2010, 16:55
  3. Word at mouse click position in QGraphicsTextItem
    By pherthyl in forum Qt Programming
    Replies: 2
    Last Post: 3rd November 2008, 05:56
  4. QGraphicsTextItem: handling cursor position change
    By Angelo Moriconi in forum Qt Programming
    Replies: 2
    Last Post: 30th January 2007, 11:42
  5. QGraphicsTextItem - is it a bug there?
    By Tair in forum Qt Programming
    Replies: 5
    Last Post: 18th October 2006, 09:48

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.