[qtmoko] [ANN] auto rotate example program and library

Jim Morris ml at e4net.com
Tue Sep 29 01:19:46 CEST 2009


Hi,

I have uploaded to http://github.com/wolfmanjm/qtrotate an example program using my RotateHelper 
class that auto rotates the screen based on the device orientation.

The two files rotate.h and rotate.cpp are designed to be self contained, so it is easy to add auto 
rotate to any qtmoko program, with a few lines of code.

See the README and included here...

A simple self contained routine that will enable a QTE app to rotate
the screen depending on orientation

To use...
#include "rotate.h"

// create an instance of RotateHelper

RotateHelper *rh= new RotateHelper();

// then start it off..

rh->start(); // the default sample rate is 500ms

// to stop it...
rh->stop();

// to restore to upright...
rh->restore();

The only files you need to put in your project are rotate.h and rotate.cpp


-- 
Jim Morris, http://blog.wolfman.com



More information about the community mailing list