Questions tagged [qgraphicsrectitem]

19 questions
0
votes
1 answer

Resize a rotated GraphicsItem from Center

https://forum.qt.io/topic/67664/solved-resizable-rotatable-graphicsitem Hello, the above post resizes with the handle selected and changes the center of the boundingRect. I need to do the same by keyPressEvent and it would resize the rotated…
Sayan Bera
  • 135
  • 2
  • 16
0
votes
2 answers

How to fix: custom QGraphicsItem receiving mousePressEvent coordinates late/laggy?

I have a "standard" Qt5 QWidgets application, with a MainWindow that includes a QGraphicsView in the mainwindow.ui created in QtCreator. That QGraphicsView has its scene set to a simple subclass of QGraphicsScene, which has a big rectangle in the…
MangoCat
  • 89
  • 5
0
votes
2 answers

C++ Qt5.11 error :" C2661: No overloaded function takes 3 arguments"

I am new to Qt and when I tried to compile and run a Qt program from "Foundations of Qt Development " Chapter 7, see http://www.java2s.com/Code/Cpp/Qt/QGraphicsViewQGraphicsItemandQGraphicsScene.htm #include #include…
AH_HUANG
  • 31
  • 2
-1
votes
2 answers

Co-ordinates for rectItem wrt to other rectItem in qgraphicsScene

In a qgraphicsScene, we have 2 rectItems added. Let's say, the red rect is added first and it's topleft coordinates are (x1, y1) wrt to the qgraphicsscene. Now a second blue rect is added in the scene, which overlaps the red rect. Now how can I get…
1
2