Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. Qt multi-screen
Forum Updated to NodeBB v4.3 + New Features

Qt multi-screen

Scheduled Pinned Locked Moved Chinese
2 Posts 2 Posters 3.0k 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.
  • M Offline
    M Offline
    mitsune
    wrote on last edited by
    #1

    在ubuntu下Qt如何偵測各別LCD的解析度~
    ubuntu-12.10的版本下,雙螢幕會自動偵測啟用,但如果使用
    QApplication::desktop()->screenGeometry()
    或
    QApplication::desktop()->availableGeometry()
    所取得的QRect的範圍都是雙螢幕寬度相加,而高度取最大值
    例如:
    LCD1 = 1024 x 600
    LCD2 = 1024 x 768
    讀取到的QRect = 2048 x 768
    不管QApplication::desktop()->screenGeometry(0) 或者 QApplication::desktop()->screenGeometry(1)
    範圍大小都一樣,QApplication::desktop()->availableGeometry()也是相同的情況
    請問?怎麼取得分別的LCD1,LCD2的解析度呢?

    1 Reply Last reply
    0
    • P Offline
      P Offline
      panda-z
      wrote on last edited by
      #2

      http://stackoverflow.com/questions/3867712/start-program-on-second-monitorqt-framework

      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