Results 1 to 3 of 3

Thread: Image - screen size

  1. #1
    Join Date
    Jun 2010
    Posts
    86
    Thanks
    10
    Thanked 6 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Image - screen size

    I have two questions:

    1- How to get the platform screen size ?
    2- How to scale the background image set by setStyleSheet on a QWidget (typically to the widget size)?

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Image - screen size

    for #1 see QDesktopWidget
    for #2 I don't know right now, but I would go for a custom widget and do the drawing in the paint event myself.

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

    ahmdsd_ostora (11th July 2010)

  4. #3
    Join Date
    Jun 2010
    Posts
    86
    Thanks
    10
    Thanked 6 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Image - screen size

    nice, thank you Lykurg

Similar Threads

  1. Replies: 8
    Last Post: 20th June 2010, 19:15
  2. how to get screen pixel size?
    By kodiak in forum Qt Programming
    Replies: 6
    Last Post: 26th August 2008, 18:59
  3. Replies: 1
    Last Post: 27th March 2008, 15:10
  4. screen size
    By eric in forum Qt Programming
    Replies: 2
    Last Post: 28th December 2007, 14:54
  5. how to get the screen size in qt2
    By pencilren in forum Qt Programming
    Replies: 2
    Last Post: 22nd June 2007, 03: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.