Home > Mobile >  QT5 debugging encountered one step operation of the comments in Chinese?
QT5 debugging encountered one step operation of the comments in Chinese?

Time:09-25

Question:
A very simple QT program, with Chinese annotations, as shown in

debugging to the breakpoint, single step, would have been stuck there, running (line 11)
After several tests, found that the Chinese annotation for "hello" from "Arthur east" fix, not the problem, using MINGW KIT is no problem

Environment:
Qt: 5.12.1

Use the KIT is MSVC2017 32 bit (64 - bit also tried also have problems)
WIN10 SDK version is 10.0.17763.132 (have been installed the Debugger)
System for win10

1903 also tried to have a problem

CodePudding user response:

Tried UTF8 encoding format (BOM), GB2312, GB18030 and default System has a problem

CodePudding user response:

Is very interesting, can't help but tried, the result is such, have hints at compile time failed, also not line, also tried several different coding haha


But with single-line comments can
SetWindowTitle (name + tr (" hello "));//Arthur east

Number or with an even number of Chinese characters is also possible (met)

Still coding issues, attention should be paid to the

CodePudding user response:

MSVC BUG? Mingw is possible
  •  Tags:  
  • Qt
  • Related