Issue when loading an ico from a Qt resource file

后端 未结 5 2291
星月不相逢
星月不相逢 2020-12-21 05:31

I am using Qt Designer 4.8.4 and I include two files in the QMainWindow resource file: a .ico file and a .gif file. When loading from code using:

QPixmap p;
         


        
5条回答
  •  旧时难觅i
    2020-12-21 05:34

    Because QPixmap Cant read .ico files simply, take a look at documentation QPixmap if you want to know more about formats supported

提交回复
热议问题