How to call qDebug without the appended spaces and newline?

后端 未结 7 1813
耶瑟儿~
耶瑟儿~ 2020-12-13 08:33

I\'m using the the C++/Qt print function qDebug, but sometimes I would like to control how \", space and newline is appended and not use the default qDebug.

Let\'s

7条回答
  •  借酒劲吻你
    2020-12-13 08:56

    Combining some of the above answers you can use

    qDebug() << qPrintable(var1);
    

    to eliminate the surrounding quotes.

提交回复
热议问题