×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Feb 2010
    Posts
    21

    QGraphicsView don't work on X6-00

    Hi.
    QPixmap pix=QPixmap(string);
    scene=new GraphicsScene();
    scene->setSceneRect(0,0,pix.width()-16,pix.height()-16);
    scene->setItemIndexMethod(QGraphicsScene::NoIndex);
    view=new QGraphicsView();view->setScene(scene);
    view->setRenderHint(QPainter::Antialiasing);
    view->setBackgroundBrush(pix);
    view->setCacheMode(QGraphicsView::CacheBackground);
    view->setViewportUpdateMode(QGraphicsView::BoundingRectViewportUpdate);
    view->setDragMode(QGraphicsView::ScrollHandDrag);
    view->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
    view->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
    view->centerOn(0,0);
    QMainWindow::setCentralWidget(view);

    The problem is the pix( larger than the X6's screen ) displays normally on the simulator. But can not show on my X6-00.
    When the pix's size is 640*360. It displays normally on both side.
    And I put some items at the different places of the big pix. But on my X6-00. These items are squeezed at the corner of the screen.
    Who can help?
    Last edited by Taiga; 2011-03-31 at 03:25.

  2. #2
    Registered User
    Join Date
    Feb 2010
    Posts
    21

    Re: QGraphicsView don't work on X6-00

    Is it because the ram of the device is limited? My pix is 200KB.
    Should I use QSystemScreenSaver to solve this problem?

    It's very strange.
    (1)
    A 360KB (900*800) jpg shows well.
    A 20KB (900*800) png can not show.
    It seems jpg work better than png.
    (2)
    A 100KB (1300*1100) jpg can not show.
    It seems the large size pic doesn't work well.
    (3)
    A 70KB (600*700) jpg can not show.

    These doesn't make sense!
    Last edited by Taiga; 2011-03-31 at 05:52.

Similar Threads

  1. C3-00 Communicatuion error and C6-00, C7-00, N8-00, C5-00 Temporary services error
    By Digamber.Singh in forum General Development Questions
    Replies: 0
    Last Post: 2011-02-18, 10:30
  2. Can not send Sms on Symbian( Nokia X6), but it can work on N900
    By hpbrother in forum [Archived] Qt Mobility Project
    Replies: 6
    Last Post: 2010-11-07, 11:57
  3. X6 wrt don't run
    By florianhaar in forum Symbian
    Replies: 3
    Last Post: 2010-10-29, 12:43

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •