Embedding/NewApi/QtLinux: Difference between revisions
Jump to navigation
Jump to search
(→Run) |
(→Build) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 3: | Line 3: | ||
== Prerequisites == | == Prerequisites == | ||
* | * [[User:Pjohnsen/MozillaQtBuild|Qt build of mozilla]] | ||
* [[Embedding/NewApi#Getting_the_code|Get the code]] | * [[Embedding/NewApi#Getting_the_code|Get the code]] | ||
== Build == | == Build == | ||
You need to add GRE_HOME to your path. This should be set to the dist/bin dir of your mozilla Qt build. | |||
mozembed/qt/test$ export GRE_HOME=~/mozilla/build/obj-qt/dist/bin/ | |||
There are qmake project files for the widget and the test program. Here is how to build: | There are qmake project files for the widget and the test program. Here is how to build: | ||
| Line 22: | Line 26: | ||
== Run == | == Run == | ||
You can then run the test application from mozembed/qt/test/testqmozembed | |||
mozembed/qt/test$ ./testqmozembed | mozembed/qt/test$ ./testqmozembed | ||
Latest revision as of 11:49, 29 September 2008
Qt Widget (linux)
This is a Qt widget that uses the new embedding API to display content. There is also a simple test program showing how to use the widget.
Prerequisites
Build
You need to add GRE_HOME to your path. This should be set to the dist/bin dir of your mozilla Qt build.
mozembed/qt/test$ export GRE_HOME=~/mozilla/build/obj-qt/dist/bin/
There are qmake project files for the widget and the test program. Here is how to build:
First build the widget itself into a library
cd mozembed/qt qmake mozembed.pro make
Then you can build the test app
cd test qmake testqmozembed.pro make
Run
You can then run the test application from mozembed/qt/test/testqmozembed
mozembed/qt/test$ ./testqmozembed