I am working on ti board, flashed with Android Marshmallow. There are 2 displays connected to the board(LCD and HDMI).
I have created small Qt App(Example:Hello world). current scenario, screen mirror happening: If i open any application same is getting mirrored on both the displays.
I want different applications to be run independently on each display.(example: video playback on LCD and google maps on HDMI ). How to do it in Qt?
Any help will be highly appreciated.
What does QApplication :: desktop () -> screenCount () return?
QDesktopWidget *widget = QApplication::desktop();
qDebug() << “Number of screens:” << widget->screenCount();
Number of screens: 1 (screen count coming as 1 even though both HDMI and LCD connected to the board)
Just a wild guess but if your screens are setup in mirroring mode, your system is only making "one" available to your applications. Therefore the screen count is coherent with the current mode your system is using.
I'm guessing that the the reason is that multiple display support seems to only have come in Android Oreo.
Anything before that and you would probably need help from either the chipset vendor and pretty good Android hacking skills.
dual display is available in Android Marshmallow using the presentation mode.
is there any way/method to get the same using Qt? (My Qt App to be displayed independently on LCD and other application should be displayed on HDMI).
@dasariarun6 that looks like quite specific functionality.
Qt for Android doesn't have Presentation implemented. You would have to write something to handle that functionality in the Android Qt Platform Abstraction. (http://doc.qt.io/qt-5/qpa.html)