Read out from the text inside \ n, the interface does not show

Reason: read out from the text " \ n- " as a ' \' and ' n- ' two characters, special characters not in the C language definition of "\ n" = char (13 )

Treatment options:
    QString str = "xxx\nyyyyy";
    str.replace("\\n", "\n");

 

Guess you like

Origin www.cnblogs.com/azbane/p/12108239.html