Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to get multi-screen count?? (for static libs)
Forum Updated to NodeBB v4.3 + New Features

How to get multi-screen count?? (for static libs)

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 3.1k 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

    Platform
    1-LCD: 1024 x 600
    2-LCD: 1024 x 768
    Qt Creator 2.5.2 Based on Qt 4.8.2 (32bit)
    OS: ubuntu 12.10

    If I use the Qt default dynamic linked (compiler) call
    QApplication :: desktop () -> screenCount (); Ans: 2
    QApplication :: desktop () -> isVirtualDesktop () Ans: true
    QApplication :: desktop () -> screenGeometry (0) Ans: x = 0 y = 0 width = 1024 height = 600
    QApplication :: desktop () -> screenGeometry (1) Ans: x = 1024 y = 0 width = 1024 height = 768

    Qt statically linked (compiler) call
    QApplication :: desktop () -> screenCount (); Ans: 1
    QApplication :: desktop () -> isVirtualDesktop () Ans: false
    QApplication :: desktop () -> screenGeometry (0) Ans: x = 0 y = 0 width = 2048 height = 768
    QApplication :: desktop () -> screenGeometry (1) Ans: x = 0 y = 0 width = 2048 height = 768

    Why statically linked(compiler) information is wrong??
    I hope to get the results of the dynamic linked.
    I build a statically linked less what information (packages).
    I refer to the following message, but no effect
    http://qt-project.org/doc/qt-4.8/install-x11.html

    Does anyone know statically linked wrong?

    Following instruction for the building of static links
    . / configure-release-developer-build-static-platform linux-g + + -32-x11-qt-zlib-qt-libpng-qt-libmng-qt-libjpeg-qt-libtiff-prefix / usr / local / Trolltech / Qt -4.8.2_static

    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