Results 1 to 1 of 1

Thread: problem with QPixmap in setCacheMode

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 problem with QPixmap in setCacheMode

    hi friends,
    im trying to add thousands of pixmap items in the QGraphicsView so i tried to use cache method for the pixmap Item
    Qt Code:
    1. Qpixmap pxm;
    2. setCacheMode(QGraphicsItem::ItemCoordinateCache,QSize(pxm.width(),pxm.height()));
    To copy to clipboard, switch view to plain text mode 

    im adding the pixmap item in QGraphicsLinearlayout


    my problem is when i set to use the viewport as opengl the pixmaps are rendered properly ..but if i remove the opengl viewport property it is not showing the pixmaps and only borders are visible with partial pixmap display .

    Please help me .. thx in advance ..
    Note: same thing happens for QGraphicsProxyWidget with QLabel with that pixmap ..
    Last edited by wagmare; 1st October 2013 at 05:20.
    "Behind every great fortune lies a crime" - Balzac

Similar Threads

  1. Replies: 1
    Last Post: 8th June 2013, 21:49
  2. QGraphicsItem::setCacheMode - how does it work?
    By d_stranz in forum Qt Programming
    Replies: 10
    Last Post: 1st June 2012, 09:52
  3. QPixmap problem.
    By muny in forum Qt Programming
    Replies: 4
    Last Post: 5th November 2009, 23:40
  4. QPixmap resize problem
    By khcbabu in forum Qt Programming
    Replies: 2
    Last Post: 17th November 2008, 13:29
  5. problem with QPixmap::grabWidget()
    By momesana in forum Qt Programming
    Replies: 6
    Last Post: 19th October 2007, 00:57

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.