⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qmake_image_collection.cpp

📁 用QT库写的查看二进制文件数据的程序
💻 CPP
字号:
/****************************************************************************** Image collection for project 'ex6'.**** Generated from reading image files: **      images/filenew**      images/fileopen**      images/filesave**      images/print**      images/undo**      images/redo**      images/editcut**      images/editcopy**      images/editpaste**      images/searchfind**** Created: ??? ?? 4 16:28:44 2008**      by: The User Interface Compiler ($Id: qt/embed.cpp   3.3.2   edited May 5 2003 $)**** WARNING! All changes made in this file will be lost!****************************************************************************/#include <qimage.h>#include <qdict.h>#include <qmime.h>#include <qdragobject.h>// images/filenewstatic const unsigned char image_0_data[] = {    0x00,0x00,0x07,0x90,0x78,0x9c,0xed,0xcd,0xe1,0x09,0x00,0x20,0x08,0x84,    0x51,0x27,0x72,0x22,0xf7,0x71,0x2f,0x17,0x2b,0x5c,0xc0,0xab,0x0b,0xa2,    0xc0,0x0f,0xee,0x97,0xf0,0x14,0xb9,0xd6,0x58,0xdc,0xb6,0x5b,0x95,0x77,    0x55,0x65,0x6c,0xe8,0x9a,0x19,0x63,0x43,0xd7,0xdd,0x19,0x1b,0xba,0x11,    0xc1,0xd8,0xd0,0xcd,0x08,0x1b,0xba,0xc5,0x68,0x17,0xfc,0x6b,0xb7,0xdd,    0x76,0x1f,0x71,0x0f,0xf6,0x6d,0x13,0xc0,0x23,0x49,0x3f};// images/fileopenstatic const unsigned char image_1_data[] = {    0x00,0x00,0x07,0x90,0x78,0x9c,0xed,0x90,0xdb,0x0e,0xc0,0x20,0x08,0x43,    0xf9,0xf6,0x65,0xff,0xcd,0x1e,0x96,0x4c,0x71,0x60,0x0a,0xa9,0x3e,0xd9,    0xa4,0xc1,0x78,0x39,0x60,0x45,0x8e,0x8a,0xd2,0xc1,0xde,0x79,0x85,0x19,    0xf5,0x19,0xd7,0x2c,0xcd,0xfe,0xc0,0x60,0x2a,0xb0,0x5f,0x61,0xb6,0x4c,    0xf4,0xd5,0x57,0xfd,0xbb,0xd1,0xfb,0xb0,0x9f,0x61,0xa2,0x15,0xe0,0xa6,    0x99,0x20,0x77,0xfb,0xbc,0x78,0xce,0xae,0xa7,0xcc,0xeb,0xce,0xb9,0x67,    0xf3,0x99,0xff,0x7c,0x39,0x4c,0x9b,0x2f,0x8f,0xd9,0xe6,0xe5,0x32,0xc5,    0xe4,0xcc,0x63,0xca,0x22,0xa6,0x9d,0x37,0xef,0xed,0x7a,0x00,0x84,0x95,    0xf6,0x66};// images/filesavestatic const unsigned char image_2_data[] = {    0x00,0x00,0x07,0x90,0x78,0x9c,0x63,0x60,0xa0,0x29,0xf8,0x4f,0x65,0x8c,    0x30,0xb7,0xa9,0x05,0x82,0x81,0xec,0x83,0x07,0x0f,0x92,0x84,0x91,0xf5,    0x0c,0x56,0x73,0x2f,0x6e,0x3d,0x85,0x6e,0x16,0x49,0xe1,0x00,0xd2,0x8f,    0x6c,0x06,0x2e,0xf7,0x22,0xeb,0x1f,0x48,0x73,0x89,0x0d,0xdf,0x51,0x73,    0x89,0x34,0x17,0x21,0x47,0x3c,0xc6,0xd4,0x8b,0xdd,0x5c,0x4a,0xf0,0x40,    0x98,0x4b,0x4e,0x59,0x43,0x25,0x73,0x69,0x15,0x6f,0xa3,0xe6,0x92,0x64,    0x2e,0x03,0x59,0x69,0x00,0x3b,0xa6,0x29,0x00,0x00,0xa4,0x3b,0x14,0x82};// images/printstatic const unsigned char image_3_data[] = {    0x00,0x00,0x07,0x90,0x78,0x9c,0x95,0x94,0x21,0x90,0x83,0x30,0x10,0x45,    0x4f,0x9e,0x44,0x62,0x91,0x48,0x24,0x16,0x79,0xf2,0x24,0xb6,0x12,0x59,    0x59,0x8b,0x8c,0x8c,0xc4,0x46,0x22,0x91,0x58,0x24,0x32,0x12,0x8b,0x44,    0x56,0xee,0xed,0x5f,0x12,0x9a,0x52,0x7a,0x53,0xc2,0xfc,0x59,0x48,0xc3,    0xcb,0xdf,0x25,0xdb,0xaf,0xaf,0xe3,0xd1,0x75,0x1d,0xf5,0x7d,0x4f,0xe3,    0x38,0x3e,0x69,0x18,0x06,0x11,0x7e,0x83,0xda,0xb6,0x95,0xf8,0x06,0xf3,    0x32,0xb0,0x76,0x59,0x16,0x9a,0xe7,0xf9,0x45,0x98,0xf7,0x9a,0xa6,0xe9,    0x34,0xd7,0x7b,0x83,0xf6,0x7e,0x43,0xdf,0x88,0x9f,0x72,0x7d,0x1d,0x42,    0x85,0x73,0xb8,0x87,0xce,0xd4,0x01,0xfb,0x63,0x7d,0xe8,0x67,0x5f,0x57,    0x3f,0x0f,0xf6,0x99,0x1a,0xec,0xfd,0xed,0xe5,0xf7,0x39,0xcb,0xc5,0xfa,    0xbd,0xbf,0x90,0xe9,0x23,0xf2,0xfa,0x94,0xfb,0x8e,0x77,0xa4,0x33,0x7e,    0xe1,0x01,0xdf,0x1e,0x67,0x0a,0xe7,0xe8,0x48,0xd6,0x5a,0x89,0xc6,0x18,    0x51,0xf7,0x8f,0x6f,0xec,0xdf,0x34,0x0d,0x5d,0xab,0xab,0xf8,0xc0,0xbb,    0xe0,0x1f,0x45,0xcf,0xd7,0x4a,0x53,0xf9,0x5b,0x52,0x51,0x14,0x54,0x55,    0xd5,0x8b,0x7f,0x61,0x6a,0x4d,0xf5,0xad,0xa6,0xfa,0x7a,0xa3,0xdb,0x3f,    0x52,0xbc,0x46,0xdf,0x14,0xe9,0x5a,0xb1,0x87,0x8a,0x8a,0x3c,0xa7,0x34,    0x49,0x28,0x89,0x63,0xe1,0xc3,0x7f,0xe8,0x73,0xb2,0x13,0x2d,0xe8,0x29,    0x78,0xb1,0x90,0x7d,0x92,0x1d,0x39,0xb2,0xcc,0xd8,0x50,0x39,0x96,0xa4,    0x07,0x4d,0xa6,0x31,0xc2,0x4a,0xe2,0x44,0x14,0x47,0xb1,0xec,0x03,0xa6,    0x61,0xe6,0x32,0x2f,0xf4,0xc9,0x60,0x3a,0xa5,0x7c,0x7d,0xf3,0x85,0x88,    0xba,0xc0,0x7b,0x96,0x65,0xe2,0x37,0x8a,0x22,0xe1,0xb7,0xa6,0xa5,0xfb,    0xfd,0xfe,0x11,0x13,0x83,0xb3,0xa1,0x0b,0x55,0x94,0xf1,0xc5,0x55,0x59,    0xe7,0x38,0x37,0xd4,0x07,0x5c,0x4e,0xdf,0x71,0x8d,0xcb,0x91,0xfb,0x7f,    0x18,0x25,0xda,0x30,0x7f,0xae,0xc9,0x3c,0x3d,0x6a,0xb3,0x46,0x4b,0xbd,    0xed,0xa5,0x2e,0xfe,0x3d,0xad,0x94,0xd4,0x60,0xe5,0xc6,0xf2,0x3d,0xbb,    0xb6,0x93,0x73,0x02,0xef,0xd8,0xa7,0xe5,0x9a,0x21,0xa2,0x76,0xad,0x93,    0x71,0xf3,0x8f,0xb9,0x96,0x8c,0x6e,0xe4,0x5b,0x83,0x59,0x5d,0x2a,0xe6,    0x46,0x9b,0xdf,0x95,0xdb,0xae,0xdc,0x80,0xf7,0x50,0x13,0xc4,0x40,0xc2,    0x5c,0x85,0x73,0x11,0x72,0x63,0xf8,0xe5,0xfd,0x36,0x4f,0xef,0x38,0x78,    0x7f,0xc7,0x82,0xf0,0x0c,0x5f,0xaa,0xae,0x1d,0x77,0xad,0xc3,0xef,0xcf,    0x8f,0xcc,0x3f,0x79,0xdc,0x31,0x0e,0x9f,0xb7,0xfc,0xd7,0x1a,0x28,0x77,    0x8e,0xe1,0x17,0x5e,0xd1,0xaf,0xf0,0x8b,0xfd,0xf0,0x1b,0xf2,0x51,0xca,    0x45,0x3c,0xef,0xef,0x45,0x7a,0x8b,0x8d,0xbf,0xf7,0x75,0x70,0xf9,0xa3,    0x27,0xd0,0x77,0xe8,0x5b,0xdf,0x2f,0x09,0xc7,0x54,0x94,0x6e,0xca,0x52,    0x28,0x13,0xe5,0x99,0x57,0xee,0xf4,0x98,0xf7,0xcc,0xfd,0x7f,0xcd,0xa5,    0xe4,0x3e,0xcf,0x0b,0x51,0x9e,0xbb,0x77,0x02,0xa5,0xcc,0x17,0xf1,0xbe,    0xf0,0x06,0x45,0xdf,0x91,0xf4,0x1b,0x6a,0x15,0xf2,0xfe,0x00,0x71,0x07,    0x39,0xaf};// images/undostatic const unsigned char image_4_data[] = {    0x00,0x00,0x07,0x90,0x78,0x9c,0x63,0x60,0x18,0x05,0xc3,0x1d,0xb4,0x30,    0x30,0xfc,0xc7,0x8a,0x9b,0x5a,0xfe,0xe3,0xd3,0x43,0xb2,0x79,0x68,0x18,    0x9f,0x5e,0x7c,0xe6,0x11,0xb4,0x17,0x8b,0xbb,0xd1,0xf5,0x13,0x63,0x1e,    0x21,0x77,0xe1,0xf3,0x2b,0x31,0x66,0x92,0x6a,0x2e,0xb1,0x66,0x0e,0x16,    0xf7,0xd2,0x32,0x7c,0x89,0x31,0x9b,0x98,0x74,0x4c,0x0a,0x00,0x99,0x43,    0x6e,0x7c,0xe0,0x35,0x97,0x06,0x66,0x8e,0x82,0xe1,0x09,0x00,0xae,0x76,    0x84,0x98};// images/redostatic const unsigned char image_5_data[] = {    0x00,0x00,0x07,0x90,0x78,0x9c,0x63,0x60,0x18,0x05,0xc3,0x01,0xb4,0x34,    0xb5,0xfc,0x6f,0x61,0x60,0xc0,0x8a,0xc9,0x36,0x13,0x87,0x79,0xc4,0x9a,    0x8f,0x4d,0x0e,0xd9,0x9d,0xc4,0xda,0x8b,0x4d,0x0e,0x97,0x1e,0x52,0xfd,    0x85,0x8d,0x4f,0xae,0xb9,0xd8,0xdc,0x4e,0x2d,0x73,0x71,0x99,0x3d,0x18,    0xdd,0x4b,0x4a,0x5a,0x21,0x26,0x3d,0x10,0x32,0x13,0x97,0x5e,0x14,0x35,    0x40,0x7b,0x88,0x71,0x3b,0xb1,0x80,0x1a,0xf9,0x6b,0x14,0x8c,0x02,0x74,    0x00,0x00,0x3b,0x0a,0x84,0x98};// images/editcutstatic const unsigned char image_6_data[] = {    0x00,0x00,0x07,0x90,0x78,0x9c,0xe5,0xd2,0x41,0x0a,0x00,0x20,0x08,0x04,    0xc0,0xde,0xee,0xc7,0xed,0x92,0x20,0xa2,0x91,0xb6,0xd2,0xa1,0xbd,0x24,    0x85,0x83,0x84,0x63,0x3c,0x09,0x27,0xef,0x7f,0x72,0x19,0xe4,0x5a,0xe3,    0xd6,0x8c,0x1c,0xa4,0xcb,0x4e,0x8d,0xb4,0x91,0x66,0xa7,0x2b,0x36,0x34,    0xb4,0x66,0x25,0xa0,0x4d,0xca,0x93,0xfa,0xd6,0xd7,0x9e,0x3e,0x6d,0x5d,    0x31,0x23,0xb7,0x62,0x47,0xfd,0x9e,0x73,0x6a,0xef,0x7a,0xbb,0x5c,0xef,    0xbd,0xc3,0xcd,0xfc,0xef,0xc9,0x3c,0xd5,0x5d,0x43,0xed,0x69,0x47,0x26,    0xd9,0x6b,0x53,0x0d};// images/editcopystatic const unsigned char image_7_data[] = {    0x00,0x00,0x07,0x90,0x78,0x9c,0xd5,0x91,0x41,0x0a,0xc0,0x20,0x0c,0x04,    0x7d,0x98,0xaf,0xcb,0xd5,0x37,0x8b,0xc5,0x43,0x21,0x48,0x77,0x13,0x13,    0x7b,0x70,0x21,0x97,0xac,0x8c,0x23,0x96,0x72,0x5d,0x86,0x31,0x61,0x2e,    0x4a,0x92,0xbd,0x32,0x86,0xde,0xa9,0xee,0xa8,0xef,0xe2,0x7e,0xcc,0x57,    0x8c,0x89,0xfa,0x0a,0xe9,0x0d,0xf6,0xa7,0xef,0xbb,0x17,0xf2,0x9e,0xd9,    0xf5,0x5a,0x11,0x1b,0xfa,0x68,0x2e,0xea,0x7a,0x6b,0x88,0x9d,0xf2,0x9d,    0x01,0xec,0x94,0x2f,0xf9,0xcb,0xb0,0x2f,0xba,0x2b,0xeb,0xeb,0xe1,0xee,    0xfa,0xb2,0xf3,0x7f,0xfb,0xb2,0x49,0xf8,0xd2,0x24,0x7c,0x5d,0xdc,0x9b,    0x7c,0x77,0xc7,0xc3,0x8d,0xe6,0x01,0xba,0xca,0xfb,0x3b};// images/editpastestatic const unsigned char image_8_data[] = {    0x00,0x00,0x07,0x90,0x78,0x9c,0xc5,0x94,0x0d,0x0a,0xc0,0x20,0x08,0x46,    0x3d,0xfb,0xe8,0x66,0x83,0xae,0xe5,0x2a,0x68,0x6b,0xa2,0x96,0xda,0x98,    0xf0,0x21,0xf4,0xf3,0x7a,0x4c,0x18,0xc0,0x2f,0x85,0x4c,0x76,0x30,0x10,    0x10,0x9f,0x48,0x67,0x22,0x4c,0x3b,0xbb,0xad,0xa7,0x23,0x21,0x94,0xb4,    0x3e,0x72,0xe9,0x3b,0xda,0x79,0xc2,0xa5,0x67,0xf2,0x99,0xa7,0x11,0xd8,    0x6f,0xdf,0xbe,0x67,0xe4,0xd2,0x7b,0x33,0xdf,0xd5,0x58,0x7c,0xbd,0x7d,    0xea,0xeb,0xed,0x56,0xdf,0xfa,0xee,0x42,0xac,0xbe,0xf5,0x8e,0x56,0x7d,    0x3f,0x39,0x7c,0xfb,0x3d,0x9a,0x91,0xcb,0xb0,0xb7,0xf8,0x32,0xec,0x6d,    0xbe,0x84,0x1d,0xf6,0x15,0xe7,0x18,0xf0,0x95,0xde,0x8a,0xfa,0x6a,0x5c,    0xaf,0xaf,0xf6,0xcd,0xef,0xd9,0x49,0xff,0x00,0xbf,0xaf,0x5a,0xab,0x9e,    0xcc,0xdc,0x3e,0xa9,0x0b,0xdb,0x19,0x41,0x63};// images/searchfindstatic const unsigned char image_9_data[] = {    0x00,0x00,0x07,0x90,0x78,0x9c,0xd5,0x94,0xa1,0x92,0xe3,0x30,0x10,0x44,    0xf7,0x57,0x02,0xf3,0x09,0xa1,0xf9,0x0c,0x53,0x43,0x43,0x41,0x53,0x41,    0x41,0x41,0x51,0x41,0x41,0x41,0x51,0x41,0x41,0x43,0x51,0x43,0x43,0xc3,    0xbe,0xe9,0x71,0x16,0xdc,0xd5,0x55,0xd9,0x7b,0x9b,0xda,0xaa,0x73,0x55,    0x57,0x12,0x47,0x7e,0xea,0xe9,0x19,0xf9,0xe3,0xe3,0xff,0xbd,0x72,0xce,    0xf0,0xde,0x63,0x9e,0x67,0x18,0x33,0xa9,0xf8,0x3d,0x84,0x80,0x52,0x0a,    0xfe,0x85,0x99,0x52,0x12,0x86,0x81,0x0f,0x16,0xb5,0x25,0xb4,0x7e,0x28,    0x15,0xee,0x73,0xf0,0xb9,0xef,0x57,0x99,0xc3,0x30,0x20,0x44,0x8f,0x0d,    0x4d,0xb5,0xee,0x15,0x7d,0x2b,0x58,0xb6,0x8c,0xba,0x46,0xcc,0x8e,0xfe,    0xcd,0x65,0xdf,0x5c,0x67,0xc4,0x67,0x2e,0x41,0x39,0xe4,0xed,0xbd,0x02,    0x4b,0xc1,0x5e,0x0b,0x7a,0x8e,0xc8,0xcd,0xa3,0x2c,0x1e,0xd6,0x19,0x38,    0xe7,0x2e,0x71,0x99,0x1d,0x6b,0xdf,0xb1,0x28,0x17,0xbd,0xa1,0x97,0x8c,    0xd6,0xa2,0x6a,0x93,0x5a,0x16,0x1f,0x90,0xaa,0x13,0x79,0x4c,0xd3,0x78,    0x29,0x0f,0x6b,0x67,0xd4,0x25,0x69,0xed,0xbd,0x67,0xf1,0x97,0x0e,0x7f,    0xab,0xb0,0x9a,0x53,0xbf,0xdd,0x47,0xc4,0x64,0xf5,0xfe,0x6c,0x27,0xed,    0xe3,0x19,0x97,0xbd,0x5a,0x56,0xa9,0x77,0x2f,0x92,0x63,0x50,0x95,0x1e,    0x90,0xa5,0xee,0xd6,0x02,0x36,0xe6,0x60,0x2d,0x42,0x91,0xbe,0x89,0x5f,    0xeb,0x0d,0xac,0xfc,0xbe,0xc2,0x65,0xdf,0xd9,0x1f,0xf2,0x4a,0xf7,0xca,    0x5c,0xca,0x8b,0xe9,0x1d,0x7c,0x9a,0x11,0x85,0x1b,0xb3,0x83,0xbb,0xc8,    0x65,0xcf,0x98,0x43,0x5b,0x93,0xf2,0x54,0xaf,0xfa,0x8b,0xf4,0x88,0x3e,    0x43,0x15,0x65,0xb2,0xad,0xe6,0x70,0xa5,0x77,0x5c,0x43,0x1f,0xb5,0x47,    0xe5,0x69,0x7f,0x9a,0x45,0x49,0xf2,0x19,0x59,0xbf,0xcc,0x74,0x3e,0x14,    0xc4,0xf7,0x64,0x06,0x70,0x2e,0xcf,0xb8,0x9f,0xe7,0xa1,0x48,0x96,0xb1,    0xda,0x43,0xe2,0xb1,0xc9,0x2c,0x33,0x57,0x97,0x46,0xc9,0x61,0x52,0x59,    0xff,0xb5,0x19,0xa6,0x67,0xce,0x7d,0xac,0x47,0x8e,0x5a,0x7b,0x34,0x9a,    0x25,0x7d,0xda,0x30,0xa8,0xc6,0x71,0xd4,0x59,0x68,0x4b,0x53,0xcf,0x67,    0x7c,0xfe,0xaf,0xef,0x04,0x39,0xaf,0x21,0x8b,0x5f,0x4a,0xb2,0x64,0xa6,    0xec,0x19,0x67,0x40,0xcf,0xe3,0x6b,0xbe,0xc8,0xe4,0x1e,0xbc,0x77,0x96,    0x09,0xd9,0xf4,0xcd,0xb9,0x27,0x9f,0xfd,0xa1,0x26,0x33,0xca,0xbd,0xe9,    0xb7,0xe7,0x6b,0xad,0xea,0xe3,0x7e,0xbf,0xe3,0xf1,0x78,0xe8,0x73,0x67,    0xde,0x79,0x96,0xe8,0x8b,0x6b,0xf9,0x6e,0x8b,0x31,0x82,0x9c,0xbf,0xad,    0xe5,0x7f,0xcf,0xe7,0x53,0xf9,0x7f,0xee,0xfd,0xdd,0x4b,0xdf,0x2f,0xd2,    0xcb,0xdb,0xed,0xa6,0xde,0xe9,0xe5,0x5d,0x6c,0x5e,0xac,0x91,0x5c,0xf2,    0xe9,0xfd,0x9d,0x6c,0x66,0xf8,0xd9,0xcf,0x77,0x72,0x7f,0xe2,0xfa,0x05,    0x8a,0xcd,0x52,0x07};static struct EmbedImage {    int width, height, depth;    const unsigned char *data;    ulong compressed;    int numColors;    const QRgb *colorTable;    bool alpha;    const char *name;} embed_image_vec[] = {    { 22, 22, 32, (const unsigned char*)image_0_data, 81, 0, 0, TRUE, "filenew" },    { 22, 22, 32, (const unsigned char*)image_1_data, 114, 0, 0, TRUE, "fileopen" },    { 22, 22, 32, (const unsigned char*)image_2_data, 98, 0, 0, TRUE, "filesave" },    { 22, 22, 32, (const unsigned char*)image_3_data, 520, 0, 0, TRUE, "print" },    { 22, 22, 32, (const unsigned char*)image_4_data, 86, 0, 0, TRUE, "undo" },    { 22, 22, 32, (const unsigned char*)image_5_data, 90, 0, 0, TRUE, "redo" },    { 22, 22, 32, (const unsigned char*)image_6_data, 102, 0, 0, TRUE, "editcut" },    { 22, 22, 32, (const unsigned char*)image_7_data, 123, 0, 0, TRUE, "editcopy" },    { 22, 22, 32, (const unsigned char*)image_8_data, 149, 0, 0, TRUE, "editpaste" },    { 22, 22, 32, (const unsigned char*)image_9_data, 480, 0, 0, TRUE, "searchfind" },    { 0, 0, 0, 0, 0, 0, 0, 0, 0 }};static QImage uic_findImage( const QString& name ){    for ( int i=0; embed_image_vec[i].data; i++ ) {	if ( QString::fromUtf8(embed_image_vec[i].name) == name ) {	    QByteArray baunzip;	    baunzip = qUncompress( embed_image_vec[i].data, 		embed_image_vec[i].compressed );	    QImage img((uchar*)baunzip.data(),			embed_image_vec[i].width,			embed_image_vec[i].height,			embed_image_vec[i].depth,			(QRgb*)embed_image_vec[i].colorTable,			embed_image_vec[i].numColors,			QImage::BigEndian		);	    img = img.copy();	    if ( embed_image_vec[i].alpha )		img.setAlphaBuffer(TRUE);	    return img;        }    }    return QImage();}class MimeSourceFactory_ex6 : public QMimeSourceFactory{public:    MimeSourceFactory_ex6() {}    ~MimeSourceFactory_ex6() {}    const QMimeSource* data( const QString& abs_name ) const {	const QMimeSource* d = QMimeSourceFactory::data( abs_name );	if ( d || abs_name.isNull() ) return d;	QImage img = uic_findImage( abs_name );	if ( !img.isNull() )	    ((QMimeSourceFactory*)this)->setImage( abs_name, img );	return QMimeSourceFactory::data( abs_name );    };};static QMimeSourceFactory* factory = 0;void qInitImages_ex6(){    if ( !factory ) {	factory = new MimeSourceFactory_ex6;	QMimeSourceFactory::defaultFactory()->addFactory( factory );    }}void qCleanupImages_ex6(){    if ( factory ) {	QMimeSourceFactory::defaultFactory()->removeFactory( factory );	delete factory;	factory = 0;    }}class StaticInitImages_ex6{public:    StaticInitImages_ex6() { qInitImages_ex6(); }#if defined(Q_OS_SCO) || defined(Q_OS_UNIXWARE)    ~StaticInitImages_ex6() { }#else    ~StaticInitImages_ex6() { qCleanupImages_ex6(); }#endif};static StaticInitImages_ex6 staticImages;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -