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

openpersistenteditor function conflicts with microsoft pinyin inputmethod

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P1: Critical
    • Resolution: Unresolved
    • Affects Version/s: 5.9.5, 5.11.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Windows 10,Microsoft Pinyin

      Description

      In model/view program, such as Qt official demo "spinboxdelegate" in C:\Qt\Qt5.10.0\Examples\Qt-5.10.0\widgets\itemviews\spinboxdelegate

      if  openpersistenteditor function is used ,the application will crash.

      1) openpersistenteditor in some cells for example in cell (0,0)
      2) microsoft pinyin , windows 10, Qt mingw 5.9.1 later version (5.9.1 ok)
      3) input chinese words in cells (1,1) ,do not input in cells having persistenteditor
      4) crash!

      Test with Qt official demo "spinboxdelegate" in C:\Qt\Qt5.10.0\Examples\Qt-5.10.0\widgets\itemviews\spinboxdelegate

      main.cpp

      int main(...)
      {
      ...
      
      // add this sentence , input some words using microsoft pinyin in cell (0,0), then crash!
      tableView.openPersistentEditor(model.index(0,1));  
      tableView.setWindowTitle(QObject::tr("Spin Box Delegate"));
      ...
      }
      

        Attachments

        1. qtbug68520_example_repro.diff
          0.5 kB
        2. qtbug68520_stack.txt
          65 kB
        3. spinboxdelegate.rar
          7 kB

          Issue Links

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

            Activity

              People

              • Assignee:
                smd Jan Arve
                Reporter:
                xuke xuke
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes