diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2011-05-03 14:47:10 +0200 |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2011-05-03 14:56:18 +0200 |
commit | 61114c608d0097e90cded814f430b9904db7c47b (patch) | |
tree | b6c631538ee35185b8497bfdc09c085430fec314 /examples/qpa/windows/main.cpp | |
parent | 075634945d5a9ba45fe7628c533977e6909f446d (diff) |
Pure QWindow with multiple windows and child windows example added.
Diffstat (limited to 'examples/qpa/windows/main.cpp')
-rw-r--r-- | examples/qpa/windows/main.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/examples/qpa/windows/main.cpp b/examples/qpa/windows/main.cpp new file mode 100644 index 0000000000..99c24fa017 --- /dev/null +++ b/examples/qpa/windows/main.cpp @@ -0,0 +1,19 @@ +#include <QGuiApplication> + +#include "window.h" + +int main(int argc, char **argv) +{ + QGuiApplication app(argc, argv); + + Window a; + a.setVisible(true); + + Window b; + b.setVisible(true); + + Window child(&b); + child.setVisible(true); + + return app.exec(); +} |