Results 1 to 2 of 2

Thread: problem about showing my Qt application in smaller screen

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

    Default problem about showing my Qt application in smaller screen

    Hi,
    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.
    This is because of my window contents are too large for the smaller screen. So, there is a "simple view mode" on the mainWindow that some contents be hidden in this mode. this mode actives by pushing on a pushbutton. After pushing this button, my window contents are suitable for the smaller screen but for fitting to the desktop, I must manually Restore Down the my window and then Maximize.

    my question is:
    how can my window Restore Down and then Maximize automatically?

  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 smaller screen

    Usually this works
    Qt Code:
    1. window->resize(0, 0);
    To copy to clipboard, switch view to plain text mode 

    Cheers,
    _

Similar Threads

  1. Replies: 5
    Last Post: 13th February 2016, 11:35
  2. image not showing in splash screen
    By dave2k in forum Qt Programming
    Replies: 4
    Last Post: 22nd February 2012, 09:35
  3. Showing a splash screen with transparency.
    By kremuwa in forum Qt Programming
    Replies: 11
    Last Post: 12th September 2010, 22:46
  4. Splash screen showing for two seconds
    By Koas in forum Qt Programming
    Replies: 5
    Last Post: 17th October 2008, 19:40
  5. getting problem in running qtopia home screen application
    By afgan_rajesh in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 31st January 2008, 07:01

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.