2023年1月31日

Qt 按键添加图标

摘要: 1、开发环境:Qt5.12.2,QtCreate4.8.2 2、直接上代码 /* 按键上背景 */ QPixmap pixmap(":/Resourses/images/easyicon_net.png"); QPixmap fitpixmap = pixmap.scaled(100, 100, Q 阅读全文

posted @ 2023-01-31 16:08 掌控命运 阅读(343) 评论(0) 推荐(0)

Qt 程序主界面添加背景图片

摘要: 1、开发环境:Qt5.12.2,QtCreator4.8.2 2、贴图代码,在主程序中编写 #include <QImageReader> int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; /* 阅读全文

posted @ 2023-01-31 15:28 掌控命运 阅读(360) 评论(0) 推荐(0)

导航