When learning QT setting icons for beginners, errors are reported during compilation. The following two error correction methods and correct correction methods are shared.
Error operation 1: modify the suffix of JPG file to .ico
Error operation 2: save as using PS and other tools on BMP format and then modify the suffix to .ico format
Correct operation: generate transparent ICO icons online through ICO, and then import them
Tips: the default size of qtball is 32 * 32, and the menu is 16 * 16
If the icon size is larger than the default size, QT will automatically reduce the size; If the icon size is smaller than the default size, QT will not operate.
.ico files need to be placed in the project resource directory.
Compiled, as shown below.
Read More:
- [Solved] electron-builder Package mac Error: panic: runtime error: index out of range
- ERROR ITMS-90022: “Missing required icon file. [How to Solve]
- Vue ElementUI el-dropdown Error: Uncaught TypeError: Cannot read property ‘disabled‘ of null
- [Solved] React import the Path of Image error: cannot find mouse ‘.‘
- [Solved] Tensorflow/Keras Error reading weights: ValueError: axes don‘t match array
- SLAMBook2 in ch3 code run fatal error: Eigen/Core: No such file or directory
- error RC2247 : SYMBOL name too long [How to Solve]
- [Solved] CentOS build a docker error: job for docker.service failed….
- [Solved] ELK Log System Error: “statusCode“:429,“error“:“Too Many Requests“,“message“ Data too large
- How to Sovle expdp/impdp Data Pump Error
- OpenCV(-206:Bad flag (parameter or structure field)) Unrecognized or unsupported array type [How to Solve]
- HIVE Error: Error: Error while processing statement: FAILED: Execution Error, return code 2 from org.apac
- Idea Error: java: java.lang.OutOfMemoryError: GC overhead limit exceeded
- How to Solve Nginx 413 Error (request entity too large)
- [Solved] STM32F4 MDK5 Software Simulate Error: error 65: no ‘read‘ permission
- [Solved] Kafka Start Log Error: WARN Found a corrupted index file due to requirement failed: Corrupt index found
- [Solved] Toad Set Error: The following files specified on the Executables tab could not be found:TNS Ping
- Solutions to error reporting after adding comments to XML files
- InstallShield 2015 Limited Edition error 3204[How to Fix]
- [Solved] Hadoop Mapreduce Error: GC overhead limit exceeded