Results 1 to 13 of 13

Thread: QGraphicsTextItem is blurring at certain regions

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Thanks
    116
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QGraphicsTextItem is blurring at certain regions

    hi friends,
    i am encountering this problem second time ..

    on the QGraphicsRectItem
    Qt Code:
    1. QFont font;
    2. textItem = new QGraphicsTextItem(this);
    3. if(currentType == X86_TYPE){
    4. font.setPixelSize(16);
    5. textItem->setPos(15,12);
    6. }else{
    7. font.setPixelSize(13);
    8. textItem->setPos(6,4);
    9. }
    10. textItem->setFont(font);
    11. textItem->setDefaultTextColor(QColor(111, 120, 122));
    12. textItem->setPlainText(QString("Pin %1").arg(currentIndex));
    To copy to clipboard, switch view to plain text mode 
    i am positioning the QGraphicsTextItem on it ..

    some times the text is blurred in certain region ... previous time its at the top region of QGraphicsView() and now in bottom
    see my screenshot i attach with this thread
    please help me to solve this problem ..

    P.S.
    my QGraphicsView is a embedded widget of another QGraphicsView()
    Attached Images Attached Images
    "Behind every great fortune lies a crime" - Balzac

Similar Threads

  1. cursor in qgraphicstextitem
    By Noxxik in forum Qt Programming
    Replies: 0
    Last Post: 15th March 2009, 12:04
  2. Problem on set QGraphicsTextItem write protect.
    By patrik08 in forum Qt Programming
    Replies: 1
    Last Post: 22nd July 2007, 20:53
  3. QGraphicsTextItem: handling cursor position change
    By Angelo Moriconi in forum Qt Programming
    Replies: 2
    Last Post: 30th January 2007, 10:42
  4. QGraphicsTextItem size
    By Angelo Moriconi in forum Qt Programming
    Replies: 1
    Last Post: 26th January 2007, 08:34

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.