View Single Post
Old 01-03-2010, 04:31 PM   #5
bero
Linux Developer
bero began at the beginning.
 
Posts: 5
Karma: 30
Join Date: Jan 2010
Location: Switzerland
Device: Sony PRS-505
Any of the normal Qt demos will do, given I didn't touch the Qt API.

The code I actually used for initial testing comes down to

Code:
#include <QApplication>
#include <QLabel>
#include <QTimer>

int main(int argc, char **argv) {
    QApplication app(argc, argv);
    QLabel l("test", 0);
    l.showFullscreen();
    QTimer::singleShot(10000, &app, SLOT(quit()));
    app.exec();
}
After getting that to run, I moved on to simply compiling a few standard applications/applications I was using on my desktop box.

I'm attaching some code I've written to talk to the keyboard, that makes it actually usable beyond running automated demos. When I have a bit of time I'll turn it into a proper Qt keyboard driver...
Attached Files
File Type: txt KeyboardThread.h.txt (371 Bytes, 484 views)
File Type: txt KeyboardThread.cpp.txt (2.0 KB, 500 views)
bero is offline   Reply With Quote