Results 1 to 2 of 2

Thread: desktops size

  1. #1
    Join Date
    May 2011
    Posts
    27
    Thanks
    10
    Qt products
    Qt4
    Platforms
    Windows

    Default desktops size

    Hello,
    How can i get the screen resolution? I tried it with
    Qt Code:
    1. QApplication::desktop()->screenGeometry(0);
    To copy to clipboard, switch view to plain text mode 
    But the values are fairly to high to fit to my screen.

  2. #2
    Join Date
    Dec 2008
    Location
    Poland
    Posts
    383
    Thanks
    52
    Thanked 42 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: desktops size

    Use:
    Qt Code:
    1. dsk.width()
    To copy to clipboard, switch view to plain text mode 
    In the near future - corporate networks reach out to the stars. Electrons and light flow throughout the universe.
    The advance of computerization however, has not yet wiped out nations and ethnic groups.

  3. The following user says thank you to Talei for this useful post:

    seux (1st September 2011)

Similar Threads

  1. Is there an imei equivalent for desktops and laptops
    By Rakula in forum General Programming
    Replies: 3
    Last Post: 25th November 2010, 07:25
  2. Replies: 0
    Last Post: 26th October 2010, 17:59
  3. Replies: 2
    Last Post: 23rd March 2009, 17:26
  4. Replies: 0
    Last Post: 21st December 2006, 11:48
  5. Displaying on multiple desktops?
    By nupul in forum Qt Programming
    Replies: 8
    Last Post: 6th May 2006, 18:03

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
  •  
Qt is a trademark of The Qt Company.