1. QT +=webkit
2. QT += network
1. C:\WINDOWS\system32\Macromed\Flash\NPSWF32.dll
1. QApplication aApp(argc,argv);
2. QApplication::setLibraryPaths(QStringList(QCoreApplication::applicationDirPath()+"/plugins/"));
1. QTextCodec *codec=QTextCodec::codecForName("GB2312");
2. QTextCodec::setCodecForLocale(codec);
3. QTextCodec::setCodecForCStrings(codec);
4. QTextCodec::setCodecForTr(codec);
1. #ifdefined(Q_WS_WIN)
2. ... ...
3. #endif
1. QNetworkDiskCache *diskCache=newQNetworkDiskCache(this);
2. QString location=QDesktopServices::storageLocation(QDesktopServices::CacheLocation);
3. diskCache->setCacheDirectory(location);
4. this->ui->wndHtmlView->page()->networkAccessManager()->setCache(diskCache);
5. QDesktopServices::storageLocation(QDesktopServices::CacheLocation);
1. gdb: unknown target exception 0xc0000135 at 0x7c984ed1
1. 1 24 "manifest.xml"
1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2. <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
3. <assemblyIdentity
4. version="1.0.0.0"
5. processorArchitecture="X86"
6. name="test.exe.manifest"
7. type="win32"
8. />
9. <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
10. <security>
11. <requestedPrivileges>
12. <requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
13. </requestedPrivileges>
14. </security>
15. </trustInfo>
16. </assembly>
1. RC_FILE = resource.rc
2. (RC_FILE 只在 windows 平台上有效)
1. # if defined(UNDER_CE)
2. # include <winbase.h>
3. # else
4. # include <winver.h>
5. # endif
6.
7. VS_VERSION_INFO VERSIONINFO
8. FILEVERSION 1,0,0,0
9. PRODUCTVERSION 1,0,0,0
10. FILEFLAGSMASK 0x3fL
11. #ifdef _DEBUG
12. FILEFLAGS VS_FF_DEBUG
13. #else
14. FILEFLAGS 0x0L
15. #endif
16. FILEOS VOS__WINDOWS32
17. FILETYPE VFT_DLL
18. FILESUBTYPE 0x0L
19. BEGIN
20. BLOCK "StringFileInfo"
21. BEGIN
22. BLOCK "040904B0"
23. BEGIN
24. VALUE "CompanyName", "公司名字\0"
25. VALUE "FileDescription", "文件描述\0"
26. VALUE "FileVersion", "文件版本\0"
27. VALUE "ProductName", "产品名字\0"
28. VALUE "产品版本", "0.1.0\0"
29. VALUE "LegalCopyright", "版权信息\0"
30. END
31. END
32. END
33. /* End of Version info */
Qt webkit插件相关知识,布布扣,bubuko.com
原文:http://www.cnblogs.com/lzh-Linux/p/3763698.html