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

Disabling predictive text not working on GraphicsTextItem

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.2.1
    • 5.2.0 Beta1
    • Widgets: GraphicsView
    • None
    • Android
    • Android
    • 55a4db4f47013662970144bb0657e1686186ce05

    Description

      The flag Qt::ImhNoPredictiveText is not turning off the suggestion in Android for QGraphicsTextItem.
      Setting the Qt::ImhNoPredictiveText on QLineEdit works in the same binary.

      The following code works only when called on QLineEdit
      Qt::InputMethodHints currentHints=inputMethodHints();
      setInputMethodHints(currentHints|Qt::ImhNoPredictiveText);

      The behavior of QT input widgets varies a lot when predictive text is enabled.
      On Nexus 7 it completely crazy, On Samsung S3, it is a bit more stable but still not to be enabled.

      I was not able to conclude if this bug is already reported. There were so many issues related to Qt::ImhNoPredictiveText. QTBUG-34827 is not referring to GraphicsTextItem, I tested multiple QLineEdit, and multiple GraphicsTextItem in the same app, The prediction appears only on GraphicsTextItem.

      Attachments

        For Gerrit Dashboard: QTBUG-34893
        # Subject Branch Project Status CR V

        Activity

          People

            tvete Paul Olav Tvete
            oqtodev Oqto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes