Results 1 to 3 of 3

Thread: Screen Resolution Restrictions

  1. #1
    Join Date
    Mar 2011
    Posts
    25
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Screen Resolution Restrictions

    Hi,

    I have a question about the maximum screen resultions supported by Qt. I'm porting an application from X/Motif, and X coordinates are short's with dimensions of unsigned shorts, so the maximum X/Y coordinate in a window is 32,767. We've used Exceed on Windows, so the same restrictions have applied to both Linux and Windows.

    In our industry, our customers sometimes use wallboard systems consisting of many monitors comprising a very large virtual display. We're unlikely to have a resolution restriction vertically, but 16 monitors at 2000+ pixels per monitor can exceed the 32,767 restriction horizontally.

    Our Qt-based application will also run on both platforms. On Linux, since Qt runs on top of X, I presume that the same resolution restriction is in effect. Is that correct? On Windows, what is the maximum supported resolution?

    Thanks,
    Doug

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Screen Resolution Restrictions

    The Xlib drawing primitives I can see all take int arguments for x, y positions, e.g
    Qt Code:
    1. int XDrawLine(Display *display, Drawable d, GC gc, int x1, int y1, int x2, int y2);
    2. int XMoveResizeWindow(Display *display, Window w, int x, int y, unsigned width, unsigned height);
    To copy to clipboard, switch view to plain text mode 
    and Qt takes ints for these sorts of values too:
    Qt Code:
    1. const QRect QDesktopWidget::availableGeometry ( int screen = -1 ) const // QRect is defined with ints
    2. void QWidget::move ( int x, int y )
    To copy to clipboard, switch view to plain text mode 
    Int is 32-bits on any modern machine, but since Exceed has been around a very long time it is possible they are hamstrung by a 16-bit int.

  3. #3
    Join Date
    Mar 2011
    Posts
    25
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Screen Resolution Restrictions

    Thanks for catching that. My confusion appears to stem from Motif, where the Position and Dimension typedefs are a short and unsigned short respectively. I must've assumed that those restrictions existed at the X level and never caught the difference.

    A guess the question really comes down to what Qt has been tested with. I doubt I'm the first person in the world to sprawl a QGraphicsView across 40 feet of monitors, but it would be comforting to know for sure.

    Thanks,
    Doug

Similar Threads

  1. Replies: 8
    Last Post: 20th June 2010, 19:15
  2. changing screen resolution of touchscreen
    By aj2903 in forum Qt for Embedded and Mobile
    Replies: 7
    Last Post: 8th April 2009, 18:57
  3. Replies: 7
    Last Post: 4th October 2008, 12:14
  4. Screen resolution
    By sabeesh in forum Qt Programming
    Replies: 4
    Last Post: 7th September 2007, 17:00
  5. Screen Resolution
    By vijay anandh in forum Qt Programming
    Replies: 3
    Last Post: 6th October 2006, 13:47

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.