Results 1 to 2 of 2

Thread: Disable QGraphicsTextItem borders

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

    Default Disable QGraphicsTextItem borders

    This seems like a very easy-to-solve question, but it seems it's harder when you start actually trying to implement it.

    Is there a way to disable the QGraphicsTextItem borders, when the QGraphicsTextItem is focused (and/or selected)?

    Thanks in advance.
    - Ryo

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Disable QGraphicsTextItem borders

    Override the paint function of the QGraphicsTextItem and in options, negate the focused/selected flag and call the base class paint function with new options.

Similar Threads

  1. Skinned Windows (own TitleBar and Borders)
    By kernel_panic in forum Qt-based Software
    Replies: 21
    Last Post: 17th July 2011, 00:15
  2. Replies: 1
    Last Post: 25th May 2010, 14:44
  3. Groupbox has no borders ?
    By vieraci in forum Qt Programming
    Replies: 12
    Last Post: 30th April 2009, 12:46
  4. how to enable borders in QGraphicsScene?
    By as001622 in forum Qt Programming
    Replies: 8
    Last Post: 3rd June 2008, 19:43
  5. Popup window with round borders
    By anderssonj in forum Qt Programming
    Replies: 1
    Last Post: 16th September 2007, 19:45

Tags for this Thread

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.