ithinkso
1st June 2011, 08:37
Hi,
I have a little problem with my QGraphicsView and QGraphicsScene when im scrolling. As you can see on pictures linked below i cliked this button to add Graph and some arrays, but something strange happened when i scrolling.
At top i see only Graph, to see arrays i must scroll down and i dont know why, it is possible to have this arrays all the time?
Pics to better understand my problem (only thing i did is changed scrollbar position)
http://img16.imageshack.us/img16/6522/screen1ard.png
http://img706.imageshack.us/img706/2315/screen2mr.png
http://img21.imageshack.us/img21/74/screen3tw.png
When im adding new items(graph or arrays) i simple resize QGraphicsScene (setSceneRectF) to oldsize+newitem.heigh and change newitem pos (setPos) to right place. It seems working only for 700px height i think, to see other i need to scroll down.
I add QGraphicsView into layout and then into centralWidget in mainwindow which i set to Qt::WindowMaximized so i think this might be a problem, how can i expand view to all visible area?
regards,
ithinkso
I have a little problem with my QGraphicsView and QGraphicsScene when im scrolling. As you can see on pictures linked below i cliked this button to add Graph and some arrays, but something strange happened when i scrolling.
At top i see only Graph, to see arrays i must scroll down and i dont know why, it is possible to have this arrays all the time?
Pics to better understand my problem (only thing i did is changed scrollbar position)
http://img16.imageshack.us/img16/6522/screen1ard.png
http://img706.imageshack.us/img706/2315/screen2mr.png
http://img21.imageshack.us/img21/74/screen3tw.png
When im adding new items(graph or arrays) i simple resize QGraphicsScene (setSceneRectF) to oldsize+newitem.heigh and change newitem pos (setPos) to right place. It seems working only for 700px height i think, to see other i need to scroll down.
I add QGraphicsView into layout and then into centralWidget in mainwindow which i set to Qt::WindowMaximized so i think this might be a problem, how can i expand view to all visible area?
regards,
ithinkso