Hi guys.
Please run this test code.
You will see, the scrollbars comes automatically.
Because the GV cannot show the full line.
I hope you are getting my point.
#include <QApplication>
#include <QGraphicsScene>
#include <QGraphicsView>
int main(int argc, char *argv[])
{
scene.addLine(0,0,2000,2000);
view.show();
return a.exec();
}
#include <QApplication>
#include <QGraphicsScene>
#include <QGraphicsView>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QApplication::setStyle("plastique");
QGraphicsScene scene;
scene.addLine(0,0,2000,2000);
QGraphicsView view(&scene);
view.show();
return a.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks