Thanks for the reply!!

Originally Posted by
ChrisW67
... and are you passing the event to the parent class so that normal resizing can be completed? One line in isolation is insufficient for us to know.
no im not doing any thing other than that .. the graphicsView is my arch parent and im reimplementing the resize Event like this only ..
im showing this GraphicsView widget only ...
void
{
fitInView(scene()->sceneRect(), Qt::KeepAspectRatio);
}
void
Widget::resizeEvent(QResizeEvent *event)
{
QGraphicsView::resizeEvent(event);
fitInView(scene()->sceneRect(), Qt::KeepAspectRatio);
}
To copy to clipboard, switch view to plain text mode
if u want more in the code
my scene representation ...
scene
->setBackgroundBrush
(QColor(80,
18,
60));
scene->addItem(startButton);
scene
->setSceneRect
(QRectF(0,
0,
1200,
1000) );
QGraphicsScene *scene = new QGraphicsScene(this);
scene->setBackgroundBrush(QColor(80, 18, 60));
scene->setItemIndexMethod(QGraphicsScene::NoIndex);
scene->addItem(startButton);
scene->setSceneRect(QRectF(0, 0, 1200, 1000) );
To copy to clipboard, switch view to plain text mode
my view settings ..
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setMinimumSize(50, 50);
setViewportUpdateMode(FullViewportUpdate);
setCacheMode(CacheBackground);
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setMinimumSize(50, 50);
setViewportUpdateMode(FullViewportUpdate);
setCacheMode(CacheBackground);
setRenderHints(QPainter::Antialiasing | QPainter::SmoothPixmapTransform | QPainter::TextAntialiasing);
To copy to clipboard, switch view to plain text mode
more than that it crashed when i try to use showFullScreen() function in the graphicsView constructor itself!!
Bookmarks