Embedding/NewApi/QtWin

From MozillaWiki
Jump to: navigation, search

Qt Widget (win)

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

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
nmake

Then you an build the test app

cd test
qmake testqmozembed.pro
nmake

NOTE: you can generate VisualC projects instead if you use qmake with "-tp vc"

Run

You need to add GRE_HOME to your path. You can then run the test application from mozembed/qt/test/debug/testqmozembed.exe