Usually, if you're writing code in the mainwindow.cpp file, all you need to do is to put this in the bracket when initializing QPainter. For example: ...
確定! 回上一頁