I want to create scrollable graphics, not so large, as fullscreen ( N900, Qt Creator 1.3.83). After looking in animated tiles sample, I wrote the code below:
QGraphicsScene scene(0,0,400,400); //Smaller size
scene.setBackgroundBrush(Qt::blue); //for the first attempt
QGraphicsView *view = new QGraphicsView (&scene);
view->setCacheMode(QGraphicsView::CacheBackground);
view->show();
return a.exec();
In Maemo emulator (once more, Qt Creator 1.3.83 ) it shows blue fullscreen, not 400x400 area.
When I'm setting 900x900 size during my attempts - scrollbars are visible. This means, that parameters are exactly passing inside constructor and accepted OK.
I made a try to set
view->resize(400,400);
same thing (full blue screen, not area). Emulator, or something is forgotten|not known by me - any advice? (Maybe, I set wrong color, as in BSOD?)
P.S. How window title area with clock etc. may be hidden?

)
Reply With Quote


