Qt WebKit 学习的说明
1. QT +=webkit 2. QT += network
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);
gdb: unknown target exception 0xc0000135 at 0x7c984ed1
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>
RC_FILE = resource.rc
(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 */
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。