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.

  • and if to make textEdit->setCursor(Qt::ArrowCursor) ? - Pavel Gridin
  • Well, textEdit-> viewport () -> setCursor (Qt :: ArrowCursor) works. If no viewport-a, it does not change. But I want him not to react at all. If through the filter, I don’t know if it’s just going to be expensive. For example, sometimes it is necessary to have Qt :: ArrowCursor, and sometimes (say) Qt :: BusyCursor, wouldn't it be costly if I override the filter? - Kaznachei
  • will not, do the filter and do not worry - ipkis

0