Embedding/NewApi/QtLinux: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(New page: == 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 == * Qt...)
 
Line 4: Line 4:
== Prerequisites ==
== Prerequisites ==
* Qt build of mozilla User:Pjohnsen/MozillaQtBuild
* Qt build of mozilla User:Pjohnsen/MozillaQtBuild
* [[Embedding/NewApi#Getting_the_code|Get the code]]


== Build ==
== Build ==

Revision as of 13:47, 22 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

  • Qt build of mozilla User:Pjohnsen/MozillaQtBuild
  • Get the code

Build

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 need to add GRE_HOME to your path. You can then run the test application from mozembed/qt/test/testqmozembed