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. Android: Display count return as "1" in dual display setup
Forum Updated to NodeBB v4.3 + New Features

Android: Display count return as "1" in dual display setup

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 3 Posters 987 Views 1 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.
  • V Offline
    V Offline
    vineesh
    wrote on last edited by
    #1

    Hi,

    Platform : iMX6Q SABRE-AI,
    Using Android Marshmallow and QT : 5.7
    we have HDMI and LVDS (dual display) connected to imx6 board.

    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    int iScreenCount = QGuiApplication::screens().size();
    qDebug("[QT_ANDRO] ScreenCount--->%d",iScreenCount);
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    Above code returns "iScreenCount" =1 , even-though we have connected HDMI and LVDS display to imx6 board.

    ///////////////////////////////////////////////////////////////
    foreach (QScreen *screen, QGuiApplication::screens()) {
    qDebug() << "[QT_ANDRO] Connected Screen Name" << screen->name();
    }
    ///////////////////////////////////////////////////////////
    also we are getting "screen->name()" as "empty".

    Please comment about this.

    Thanks

    jsulmJ 1 Reply Last reply
    0
    • V vineesh

      Hi,

      Platform : iMX6Q SABRE-AI,
      Using Android Marshmallow and QT : 5.7
      we have HDMI and LVDS (dual display) connected to imx6 board.

      //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
      int iScreenCount = QGuiApplication::screens().size();
      qDebug("[QT_ANDRO] ScreenCount--->%d",iScreenCount);
      ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

      Above code returns "iScreenCount" =1 , even-though we have connected HDMI and LVDS display to imx6 board.

      ///////////////////////////////////////////////////////////////
      foreach (QScreen *screen, QGuiApplication::screens()) {
      qDebug() << "[QT_ANDRO] Connected Screen Name" << screen->name();
      }
      ///////////////////////////////////////////////////////////
      also we are getting "screen->name()" as "empty".

      Please comment about this.

      Thanks

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @vineesh Do both displays work?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vineesh
        wrote on last edited by vineesh
        #3

        Yes.
        Mirrored contents are shown on both hdmi and lvds display.

        D 1 Reply Last reply
        0
        • V vineesh

          Yes.
          Mirrored contents are shown on both hdmi and lvds display.

          D Offline
          D Offline
          dasariarun6
          wrote on last edited by
          #4

          Any update on this issue? I am also facing same issue.

          1 Reply Last reply
          0

          • Login

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