tags:

views:

217

answers:

2

How does windowing work in qt embedded, where Qt is drawing directly to a framebuffer instead of through a separate windowing system? Can I run multiple programs at once? Do I get compositing and the little [x] button, maximizing and so forth?

+1  A: 

What part of how does it work are you asking about? If you want a basic overview, think of it kind of like a X-windows server on Linux, where the framebuffer draws the border, decorations, etc., only the Qt libraries are compiled to work more directly with the framebuffer than they do with X-windows servers. Various aspects of the framebuffer can be overridden by a program as well, rather than needing to be changed by the window server. However, for most of your UI work with Qt, you'd be using the exact some classes (QDialog, etc.) that you would on a regular desktop version. They are just drawn by a different underlying layer.

Caleb Huitt - cjhuitt
+4  A: 

You need to run one application as the server to provide window management facilities; for example, by passing the -qws option at the command line when you run it.

Any other applications are run as clients. See this page for details:

http://doc.trolltech.com/4.5/qt-embedded-running.html

David Boddie