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

📄 qembed.html

📁 qtopiaphone英文帮助,用于初学者和开发人员,初学者可以用来学习,开发人员可以用来资料查询.
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>QEmbed - File and Image Embedder</title></head><body bgcolor="#ffffff"><p><table width="100%"><tr><td><a href="index.html"><img width="100" height="100" src="qtlogo.png"alt="Home" border="0"><img width="100"height="100" src="face.png" alt="Home" border="0"></a><td valign="top"><div align="right"><img src="dochead.png" width="472" height="27"><br><a href="classes.html"><b>Classes</b></a>- <a href="annotated.html">Annotated</a>- <a href="hierarchy.html">Tree</a>- <a href="functions.html">Functions</a>- <a href="index.html">Home</a>- <a href="topicals.html"><b>Structure</b>  <font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" align="center" size=32>Qte</font></a></div></table><p><h1 align=center>QEmbed - File and Image Embedder</h1><br clear="all"><p>The QEmbed tool, found in <tt>qt/tools/qembed</tt>converts arbitrary files into C++ code.This is useful for including image filesand other resources directly into your application rather than loading the datafrom external files.<p>QEmbed can also generate uncompressed versions ofimages that can be included directly into your application, thus avoidingboth the external file and the need to parse the image file format. Thisis useful for small images such as icons for which compression is nota great gain.<p><h2>Usage</h2><pre>    qembed <i>[ general-files ] [ </i>--images<i> image-files ]</i></pre><p><dl> <dt><tt><i>general-files</i></tt>    <dd>These files can be any type of file. <dt><tt>--images <i>image-files</i></tt>    <dd>These files must be in image formats supported by Qt.</dl><p><h2>Output</h2>The output from QEmbed is a C++ header file which you shouldinclude in a C++ source file. In that file, you should make a wrapperfunction that suites your application. Two inline functions are provided,and your wrapper function could just call one of these, or you canimplement your own. To use the inline functions in the simplest way:<p><pre>    #include "generated_qembed_file.h"<p>    // Just call the generated function    // "name" is the original image filename WITHOUT the extension    QImage myFindImage(const char* name)    {        return qembed_findImage(name);    }<p>    // Just call the generated function    // "name" is the original filename WITH the extension    QByteArray myFindData(const char* name)    {        return qembed_findData(name);    }</pre><p>Alternatively, look at the output from QEmbed and write a function moretailored to the needs of your application.<p><address><hr><div align="center"><table width="100%" cellspacing="0" border="0"><tr><td>Copyright 

⌨️ 快捷键说明

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