Created attachment 125297 [details] Qscintilla widget with misplaced caret SUMMARY In certain types of Qscintilla text boxes (I haven't been able to establish which yet), the caret is in the wrong place relative to the text (see attached screenshot). The location is exactly where it should be if the text had no kerning - ie the caret assumes no kerning, but the text is kerned. I've tried different fonts, turning kerning on/off in Qt designer, changing the system font, all to no effect. Others have reported that the issue does not occur in other DEs on the same platforms (Manjaro Gnome and Manjaro Xcfe have been tried), so it's something to do with the way KDE renders these particular boxes. STEPS TO REPRODUCE 1. Open a QgsExpressionBuilderWidget - The easiest way to do this is through Qgis (mapping software) which uses the widget. a) Open Qgis b) Add a scratch layer c) go to properties>manage fields>field calculator 2. Type in a string of letters ('w' works well) OBSERVED RESULT The caret is someway away from the actual letters EXPECTED RESULT The caret should follow the letters SOFTWARE/OS VERSIONS Linux/KDE Plasma: 4.19.97-1-MANJARO x86_64 (available in About System) KDE Plasma Version: KDE Plasma 5.17.5 KDE Frameworks Version: Qt Version: 5.14.0 ADDITIONAL INFORMATION
please run Qscintilla --style fusion and report if it still appears
(In reply to David Edmundson from comment #1) > please run Qscintilla --style fusion and report if it still appears I don't actually have Qscintilla on my machine (other than calling it in python, so I can't run it directly I'm afraid. If I make a Qscintilla text box like ``` import sys from PyQt5.QtWidgets import QApplication from PyQt5.Qsci import QsciScintilla if __name__ == "__main__": app = QApplication(sys.argv) editor = QsciScintilla() editor.show() editor.setText('this is a test') app.exec_() ``` The caret works perfectly, so it's something in that particular widget that's not interacting well with Plasma. I forgot to add that this type of widget always used to work. It's only stopped working since my last upgrade which was to KDE 5.17.5 and QT 5.14.0
Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone!
I fail to see the issue in the screenshot. The caret is exactly between two 'w' characters. Could you please show the expected screenshot for comparison?
This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging Thank you for helping us make KDE software even better for everyone!
(In reply to Christoph Feck from comment #4) > I fail to see the issue in the screenshot. The caret is exactly between two > 'w' characters. Could you please show the expected screenshot for comparison? Sorry, I thought I'd been clearer in my write-up. That's where the caret is when I finish typing the line of 'w's.I've not moved it with the cursor or anything. Similarly, if I type a line of small letters (kerning-wise) like 'I's, the caret ends up far in front of the letters. I don't understand why this issue is now closed. I've given all the info I've been asked for (that it's possible for me to give). It seems a bit harsh to give KDE users no recourse to have bugs investigated unless they're technically proficient enough to run application-building software without instruction. I'd be grateful if someone could re-open this and look into it, or give me some further instruction as to how I can help.
You can set temporarily set the Application Style to Fusion in System Settings > Appearance > Application Style, then try your python script again. Does it still happen?