[Interest] New in Qt 6.9: Default ContextMenu in TextField and TextArea
Shawn Rutledge
Shawn.Rutledge at qt.io
Wed Apr 23 15:21:22 CEST 2025
On Apr 23, 2025, at 14:54, Schimkowitsch Robert <Robert.Schimkowitsch at andritz.com> wrote:
From Qt 6.9 release notes:
“ TextField<https://doc-snapshots.qt.io/qt6-6.9/qml-qtquick-controls-textfield.html> and TextArea<https://doc-snapshots.qt.io/qt6-6.9/qml-qtquick-controls-textarea.html> now provide a ContextMenu<https://doc-snapshots.qt.io/qt6-6.9/qml-qtquick-controls-contextmenu.html> by default. If you already have a custom context menu for these types,ContextMenu<https://doc-snapshots.qt.io/qt6-6.9/qml-qtquick-controls-contextmenu.html> will not open its own (on right click or the context menu key).”
How can I ensure that no context menu will be displayed by default when upgrading to 6.9?
Since I have lots of TextField and TextArea, a global setting or one-liner would be preferable.
It’s just cut, copy, paste, delete, select all: things you can already do with the keyboard, so why don’t you want them?
Anyway there is a patch, not yet integrated: https://codereview.qt-project.org/c/qt/qtdeclarative/+/638956
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20250423/80f82568/attachment.htm>
More information about the Interest
mailing list