![]() |
Re: Detect hw keyboard slide event
The code would look as follows:
Code:
QDBusConnection::systemBus().connect(QString("org.freedesktop.Hal"), QString("/org/freedesktop/Hal/devices/platform_slide"), QString("org.freedesktop.Hal.Device"), QString("PropertyModified"), this, SLOT(slotKeyboardSlide()));Code:
QDBusInterface propertyInterface("org.freedesktop.Hal", QString("/org/freedesktop/Hal/devices/platform_slide"), "org.freedesktop.Hal.Device", QDBusConnection::systemBus());You'll also need the following line in the .pro file: Code:
QT += dbus |
| All times are GMT. The time now is 22:10. |
vBulletin® Version 3.8.8