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

QGraphicsItem draw Chinese failure

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: 5.14.0 RC2
    • Fix Version/s: None
    • Component/s: Widgets: GraphicsView
    • Labels:
      None
    • Environment:
      qt5.14.2,vs2017
    • Platform/s:
      Windows

      Description

      How to solve the problem of Chinese, please give a reasonable solution;

      At present, is usually in compiling a program with Chinese compilation fails because of Chinese, we usually use Chinese header file defines such as attachment 2: "pic2. PNG", and then use notepad to open the file save as utf8 format with Chinese, compile and run the normal, but now this method applied in the QGraphicsItem failure, drawing show Chinese garbled, as shown in figure "pic4. PNG";

      As for whether there is a solution in Chinese, thank you

        Attachments

        1. bom.png
          bom.png
          2 kB
        2. Desktop.7z
          82 kB
        3. eg.png
          eg.png
          29 kB
        4. pic4.png
          pic4.png
          61 kB
        5. pic5.png
          pic5.png
          58 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            bibr Andreas Aardal Hanssen
            Reporter:
            michaelhuang michaelhuang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes