Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-103934

API to disable undo/redo functionality

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 6.3.0
    • None
    • All

    Description

      Similar to https://bugreports.qt.io/browse/QTBUG-83036

      Feature request to add an API to disable undo/redo stack functionality completely. Could be useful for a password field or otherwise sensitive information.

      Currently, the only way to prevent undo operation on a QML TextField is to catch Keys.onPressed events, and match them against StandardKey.Undo which is very hacky, error-prone, and likely to be work-aroundable by calling undo() method from C++ (even function undo() override in QML wouldn't help).

      Inspired by this merge request: https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/1788

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            ratijas ivan tkachenko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes