I have a MainWindow, a custom GraphicsView and there is a QGraphicsScene. I add QGraphicsScene QGraphicsRectItem to which I add QTextEdit (I do all this so that I can rotate QTextEdit). I want to disable setMouseTracking from QTextEdit (so that it does not respond to mouse events). set setMouseTracking (false) in MainWindow, GraphicsView, QTextEdit, but does not work. I just need CursorShape to not change when the cursor is inside a QTextEdit under certain conditions, but sometimes it’s necessary for it to react.
|
textEdit->setCursor(Qt::ArrowCursor)
? - Pavel Gridin