From d796c9dd933ab96ec83b9a634feedd5d32e1ba3f Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 8 Nov 2011 12:31:36 -0600 Subject: Test conversion to TQt3 from Qt3 8c6fc1f8e35fd264dd01c582ca5e7549b32ab731 --- doc/html/qembed.html | 100 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 doc/html/qembed.html (limited to 'doc/html/qembed.html') diff --git a/doc/html/qembed.html b/doc/html/qembed.html new file mode 100644 index 000000000..026e24c36 --- /dev/null +++ b/doc/html/qembed.html @@ -0,0 +1,100 @@ + + + + + +TQEmbed - File and Image Embedder + + + + + + + +
+ +Home + | +All Classes + | +Main Classes + | +Annotated + | +Grouped Classes + | +Functions +

TQEmbed - File and Image Embedder

+ + + +

The TQEmbed tool, found in qt/tools/qembed, converts arbitrary files +into C++ code. This is useful for including image files and other resources +directly into your application rather than loading the data from external +files. +

TQEmbed can also generate uncompressed versions of images that can be included +directly into your application, thus avoiding both the external file and the +need to parse the image file format. This is useful for small images such as +icons for which compression is not a great gain. +

Usage +

+

+    qembed [ general-files ] [ --images image-files ]
+
+ +

+

Output +

+

The output from TQEmbed is a C++ header file which you should +include in a C++ source file. In the source file, you should make a +wrapper function that suits your application. Two functions are +provided; your wrapper function could just call one of these, or +you can implement your own. Here's a simple example of usage for each +of the supplied functions: +

qembed_findImage() +

+

+    #include "generated_qembed_file.h"
+
+    TQImage myFindImage(const char* name)
+    {
+        return qembed_findImage(name);
+    }
+
+ +

Just call the generated function; name is the original image +filename without the extension. +

qembed_findData() +

+

+    #include "generated_qembed_file.h"
+
+    TQByteArray myFindData(const char* name)
+    {
+        return qembed_findData(name);
+    }
+
+ +

Just call the generated function; name is the original filename +with the extension +

Alternatively, look at the output from TQEmbed and write a function +tailored to your needs. + + +


+ +
Copyright © 2007 +TrolltechTrademarks +
TQt 3.3.8
+
+ -- cgit v1.2.1