PDA

View Full Version : Detect GPIO pins in QT



keyurparekh
20th June 2011, 14:08
Hi friends,

I have one doubt in Qt programming.
I am currently using begal board with OMAP processor. Now i have attach one key board with it.

Now i want to detect GPIO pins of processor. How can i detect GPIO in QT? Can any body suggest me what class or widget i can use in Qt?

Please reply me.

Thanks in advance.

mcosta
20th June 2011, 14:34
I think this is a very platform specific task.

Nokia says (http://qt.nokia.com/products)
"Qt is a cross-platform application and UI framework with APIs for C++ ....."

If you need to have access to plaftorm (Hardware or Software) speficic resources, you have to use platform specific API.

squidge
20th June 2011, 18:45
I'll assume your using Linux with OMAP, so you'll typically have a device called /dev/GPIO which you can read with standard Qt file i/o functions.