egberts Guru
Joined: 04 Nov 2003 Posts: 357 Location: Dimmed Cathode Ray Tube
|
Posted: Sun Jul 24, 2005 11:04 pm Post subject: LCD panel prototyping development under X11 using qvfb |
|
|
Let's say you have a special B/W LCD panel sized (300x400) that you want for your industrial widget panel and you want to develop Qt window programming within this window size constraint.
Qt/X11 is obviously too big (1280x1024 or 640x480).
Why not use X11 window scheme to create a new virtual framebuffer in which you can do your development within the comfort of your existing X11 login session. No more logging out into console and using SVGA. To do this, we use TrollTech's qvfb. It isn't available by default but it is included with x11-libs/qt-embedded-3.3.4. See https://forums.gentoo.org/viewtopic-t-363019.html on how to build qvfb.
Run qvfb with a desired viewscreen size:
Code: | # $QTDIR/bin/qvfb -width 300 -height 400 -depth 1 |
Then run your application
Code: | # <your-app-name> -qws |
Enjoy! _________________ Clusters of Fry's Special, AMD 2200, 2 GB DDR, 220 GB (2008.1/desktop, stage 1, -O3) x8
HP Compaq Fry's SPecial, AMD 2100, 2 GB DDR, 260 GB (2008.0/server, stage 1, -O3)
Ultra Sparc 5, 256MB, 3GB (2006.1/server, stage 1, -O3) |
|