Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. dual display
Forum Updated to NodeBB v4.3 + New Features

dual display

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
7 Posts 4 Posters 2.3k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dasariarun6
    wrote on last edited by
    #1

    Hi,
    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.

    Thanks,
    Arun

    1 Reply Last reply
    0
    • D Offline
      D Offline
      drwho
      wrote on last edited by
      #2

      What does QApplication :: desktop () -> screenCount () return?

      1 Reply Last reply
      2
      • D Offline
        D Offline
        dasariarun6
        wrote on last edited by dasariarun6
        #3

        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)

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          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.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • tekojoT Offline
            tekojoT Offline
            tekojo
            wrote on last edited by
            #5

            Hi @dasariarun6
            I'm guessing that the the reason is that multiple display support seems to only have come in Android Oreo.
            https://developer.android.com/about/versions/oreo/android-8.0.html

            Anything before that and you would probably need help from either the chipset vendor and pretty good Android hacking skills.

            1 Reply Last reply
            2
            • D Offline
              D Offline
              dasariarun6
              wrote on last edited by dasariarun6
              #6

              Hi @tekojo

              dual display is available in Android Marshmallow using the presentation mode.
              https://developer.android.com/reference/android/app/Presentation.html

              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).

              tekojoT 1 Reply Last reply
              0
              • D dasariarun6

                Hi @tekojo

                dual display is available in Android Marshmallow using the presentation mode.
                https://developer.android.com/reference/android/app/Presentation.html

                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).

                tekojoT Offline
                tekojoT Offline
                tekojo
                wrote on last edited by
                #7

                @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)

                1 Reply Last reply
                2

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved