Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 4.11.0
-
None
-
-
af52b65d6a6b4fe50deb074474c55817c669556f (qt-creator/qt-creator/4.11)
Description
When I move horizontal scroll bar of the code editor to the right, the cpu goes crazy, if I align it to the left back again, it turns back to normal. I believe I have been encountering this bug for several major Qt versions along the way in the past. I decided to report it. Please watch the video I attached below. (I don't think this is something to do with macOS version)
Plus I had some similar bug in my own C++ program back in the days when I was coding a QML code editor with QPlainTextEdit. I think problem might be related to the line number painting code within the Qt Creator's codes. I would consider checking out for and while loop usages within the texteditor plugin.
Possible buggy functions that I would suggest looking at first:
void paintLineNumbers(QPainter &painter, const ExtraAreaPaintEventData &data, const QRectF &blockBoundingRect) const; void paintTextMarks(QPainter &painter, const ExtraAreaPaintEventData &data, const QRectF &blockBoundingRect) const; void paintCodeFolding(QPainter &painter, const ExtraAreaPaintEventData &data, const QRectF &blockBoundingRect) const; void paintRevisionMarker(QPainter &painter, const ExtraAreaPaintEventData &data, const QRectF &blockBoundingRect) const;
Attachments
For Gerrit Dashboard: QTCREATORBUG-23647 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
291972,2 | Editor: Fix self recursive update | 4.11 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |