how to print QString contents /avoid segmentation fault using printf

QString qsTxt=(QString)qlwItem->text();
qDebug()<<qsTxt;
do not use printf, you will get segmentation fault.

Leave a Reply

Your email address will not be published. Required fields are marked *