Results 1 to 6 of 6

Thread: problem about showing my Qt application in deference desktops resolution

  1. #1
    Join Date
    Nov 2015
    Posts
    128
    Thanks
    70
    Qt products
    Qt5
    Platforms
    Windows

    Default problem about showing my Qt application in deference desktops resolution

    While running ".exe" of my Qt application in deference desktops (whit deference resolution), when resolution of a desktop is low, mainWindow is shown bigger than size of that desktop. Because of using "QLayout", after Maximizing the mainWindow size becomes fit to the desktop but some elements like some QLabels becomes incomplete.
    How can it be shown correctly in all desktops and with all resolutions?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: problem about showing my Qt application in deference desktops resolution

    That sounds like your window contents are too large for the smaller screen.

    Maybe you have minimum sizes or fixed sizes set that make it impossible for the layout to be smaller, or you need to rearrange the content.

    Cheers,
    _

  3. #3
    Join Date
    Nov 2015
    Posts
    128
    Thanks
    70
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: problem about showing my Qt application in deference desktops resolution

    Quote Originally Posted by anda_skoa View Post
    That sounds like your window contents are too large for the smaller screen.
    You are right. Is it possible for this issues (for smaller screen), a scroll bar may appear?

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: problem about showing my Qt application in deference desktops resolution

    A scroll area would be possible if you really can't relayout to fit into the smaller size.

  5. #5
    Join Date
    Nov 2015
    Posts
    128
    Thanks
    70
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: problem about showing my Qt application in deference desktops resolution

    Quote Originally Posted by anda_skoa View Post
    A scroll area would be possible if you really can't relayout to fit into the smaller size.
    please explain more how can i add scroll area?

  6. #6
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: problem about showing my Qt application in deference desktops resolution

    One option would be to use the QScrollArea as the main window's central widget and the current central widget as the scroll area's content widget.

    Cheers,
    _

Similar Threads

  1. desktops size
    By seux in forum Newbie
    Replies: 1
    Last Post: 1st September 2011, 18:18
  2. Application Resizing on Display resolution change
    By augusbas in forum Qt Programming
    Replies: 1
    Last Post: 26th April 2010, 12:12
  3. Replies: 7
    Last Post: 4th October 2008, 12:14
  4. Screen Resolution stting takes effect on application !
    By santhoshv84 in forum Qt Programming
    Replies: 1
    Last Post: 30th August 2008, 13:06
  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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.