09-25-2012 09:26 AM
Does the NDK (for PlayBook) expose a method of controlling screen brightness that would be accessible to a Qt program? In the API documentation I've seen some fuctions that seem to be related to brightness control, but they all appear to refer to data structures that don't seem to be accessible to a Qt program.
09-25-2012 10:41 AM
I'm looking at
but I don't know if that applies to the whole screen, or just to a native window. I'm not sure how you can set the brighness of a specific window, unless the documentation is using the word 'brightness' to mean something different from what I understand. In any event, the function takes a screen_window_t argument, and I have no idea how to get that within a Qt application, or if it's even possible to.
09-25-2012 10:56 AM
screen_set_window_property (SCREEN_PROPERTY_BRIGHTNESS...) is indeed only for a single window, and not for the whole screen. I haven't found an API yet to control the screen brightness.
SCREEN_PROPERTY_BRIGHTNESS doesn't work anyway, apparently the specific GPU doesn't support it.
As for getting the screen_window_t from a Qt window, there is no support for that at the moment, though it could be added to QPlatformNativeInterface of the Blackberry plugin.
11-08-2012 06:32 AM
As for getting the screen_window_t from a Qt window, there is no support for that at the moment
Maybe application.mainWindow()->handle() will help to get screen_window_t. But screen_set_window_property_iv with SCREEN_PROPERTY_BRIGHTNESS seems doesn't have any visual effect