text.sprintf("R: %d G: %d B: %d", ... 在上例中也可以看到,QString可以使用類似C語言的printf()函式用法,也就是使用sprintf()來設定文字格式。
確定! 回上一頁