Results 1 to 2 of 2

Thread: problem with QGraphicsTextItem's black dotted line.

  1. #1
    Join Date
    Jul 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Question problem with QGraphicsTextItem's black dotted line.

    Hello, everyone, how to hide the black dotted line in QGraphicsTextItem. When I edit it, it will always appear, this will affect the appearance.so,i want to delete it.

    Here what i mean:



    Thanks.

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: problem with QGraphicsTextItem's black dotted line.

    Probably have to derive a new class from QGraphicsTextItem and reimplement the paint() method so it doesn't draw the rect when the item is selected.

    Of course, this will confuse your users completely, because you will change the standard behavior, and now they won't be able to tell if they are editing the text or not.

Similar Threads

  1. Replies: 3
    Last Post: 2nd August 2013, 22:53
  2. Replies: 51
    Last Post: 26th November 2010, 13:24
  3. QGraphicsTextItem and in between line spacing
    By eric_vi in forum Qt Programming
    Replies: 0
    Last Post: 19th October 2010, 17:57
  4. How to remove the dotted rectangle of selection
    By jiveaxe in forum Qt Programming
    Replies: 5
    Last Post: 18th April 2010, 22:00
  5. how to change the line space in QGraphicsTextItem Paint()
    By goldhappywang in forum Qt Programming
    Replies: 1
    Last Post: 22nd September 2009, 01:42

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.