Results 1 to 1 of 1

Thread: Solved: QGraphicsTextItem: unwanted border/margin

  1. #1
    Join Date
    Aug 2012
    Posts
    4
    Qt products
    Platforms
    Windows

    Default Solved: QGraphicsTextItem: unwanted border/margin

    I was wondering about an unwanted margin in the QGraphicsTextItem.
    In order to remove it I had to set the document margin to zero:

    document = QtGui.QTextDocument()
    document.setDocumentMargin(0)

    myGrapcsTextItem.setDocument(document)

    myGrapcsTextItem.setHtml(...)
    Last edited by matameko; 19th March 2013 at 11:51.

Similar Threads

  1. Margins around QWidget - Unwanted
    By Jake123 in forum Newbie
    Replies: 2
    Last Post: 26th January 2013, 14:20
  2. Unwanted white border
    By Jake123 in forum Newbie
    Replies: 1
    Last Post: 26th January 2013, 13:16
  3. QGraphicsView unwanted margin
    By hheld in forum Qt Programming
    Replies: 4
    Last Post: 3rd January 2011, 18:16
  4. Replies: 51
    Last Post: 26th November 2010, 14:24
  5. Unwanted padding on QWidget
    By etru1927 in forum Qt Programming
    Replies: 4
    Last Post: 7th August 2008, 08: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
  •  
Qt is a trademark of The Qt Company.