[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: Dead keys can edit QTextEdit widget despite readOnly on Linux?
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2022-07-17 9:46:04
Message-ID: e179104725407afbf77f83c7cd928f7d () riverbankcomputing ! com
[Download RAW message or body]

On 07/07/2022 22:23, t_techcn wrote:
> Howdy,
> 
> I've been having a minor issue with a program since transitioning to
> PyQt6; On Linux, typing a character with a dead key modifier seems to
> let me edit the text inside a PyQt6.QtWidgets.QTextEdit widget even if
> I've set the text edit to read-only. Like so:
> 
> 1. Highlight any part of the text.
> 2. With a keyboard with dead keys, press any diacritic and then a
> letter, like '`' + 'a' or '^' + '2'.
> 
> The character then replaces the selected part of the text.
> 
> I was able to reproduce this on Arch & Debian when using the script
> I've added as an attachment. PyQt5 doesn't seem to have this behavior,
> and it doesn't seem to occur with c++ Qt6 either as far as I can tell.
> Not sure how to prevent this with PyQt6.

I don't see how this could be a PyQt problem.

Phil
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic