Convert

QT

Convert from char*(char array) to QString

char *ch = "ABC"; 1번 방법) QString str = QString(ch); 2번 방법) QString str = QString("%1").arg(ch);

QT

Convert from QImage to QPixmap

QString filename = "test.png"; QImage image(filename); QPixmap pixmap = QPixmap::fromImage(image);

Geuny
'Convert' 태그의 글 목록