QGraphicsView selection problem when there is large scale factor in view (Linux)
Greetings,
I would like to show QGraphicsScene. The scene bounding rectangle is (0,0,1,1). The problem is that then the selection of items on linux doesn't work correctly. On Windows there are no problems.
To better explain this I have created simple application with QGraphicsView of dimensions (500,500) in a simple QMainWindow:
Code:
MainWindow
::MainWindow(QWidget *parent
) : ui(new Ui::MainWindow)
{
ui->setupUi(this);
ui->graphicsView->setScene(scena);
ui->graphicsView->scale(500,500);
it->setRect(-0.1,-0.1,0.2,0.2);
scena->addItem(it);
}
Is there some bug in linux version of qt? I have qt 4.7.
Thank you,
MadBear
Re: QGraphicsView selection problem when there is large scale factor in view (Linux)
I tried this code, and works fine:
Code:
ui->graphicsView->setScene(scena);
ui->graphicsView->scale(500,500);
it->setRect(-0.1,-0.1,0.2,0.2);
scena->addItem(it);