Results 1 to 7 of 7

Thread: problems resizing an application

  1. #1
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    693
    Thanks
    59
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default problems resizing an application

    Hi to all,
    I have some problems when I press the window system button to resize an application.
    I don't exactly know the correct name of such button so I attached this explanatory screenshot resize.jpg. The button is located in the upper-right side of the window, next the x ( used to close the application ).
    The problem is that when pressed the button, my application become very little and I don't want it. I would control the size of the application when I resize it pressing the button.
    How can I do?
    Best Regards,
    Franco Amato

  2. #2
    Join Date
    Feb 2010
    Location
    Wokingham, United Kingdom
    Posts
    36
    Thanks
    7
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: problems resizing an application

    you can use the setMinimumSize(const QSize &) which QMainWindow inherits from QWidget

  3. #3
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    693
    Thanks
    59
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: problems resizing an application

    Quote Originally Posted by janorcutt View Post
    you can use the setMinimumSize(const QSize &) which QMainWindow inherits from QWidget
    Hi thank for your reply.
    I agree with you setting a minimum size it resize to the minimum size when I press the button, BUT I can not do a further resizing.
    What I would do is -> resize to a specific size when I press the button and then I would resize it to a size lower than the minimum size with the mouse.
    In bried I don't want a minimum size.
    I hope you can understand me.
    Regards
    Franco Amato

  4. #4
    Join Date
    Feb 2010
    Location
    Wokingham, United Kingdom
    Posts
    36
    Thanks
    7
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: problems resizing an application

    OK i'm assuming that when your app starts, you tell it to display fullscreen. if so before you do just resize it to a reasonable size and then set it to fullscreen.
    odd but should work

  5. #5
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    693
    Thanks
    59
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: problems resizing an application

    Quote Originally Posted by janorcutt View Post
    OK i'm assuming that when your app starts, you tell it to display fullscreen. if so before you do just resize it to a reasonable size and then set it to fullscreen.
    odd but should work
    Hi you're right.
    It works ( and I don't understand why ), I hope to get a reply from the experts.
    Regards
    Franco Amato

  6. #6
    Join Date
    Feb 2010
    Location
    Wokingham, United Kingdom
    Posts
    36
    Thanks
    7
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: problems resizing an application

    it occurred to me that after you 'maximize' a window it always goes back to its previous position and size when you 'restore' it. glad to be able to help

  7. The following user says thank you to janorcutt for this useful post:

    franco.amato (17th November 2010)

  8. #7
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    693
    Thanks
    59
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: problems resizing an application

    Quote Originally Posted by janorcutt View Post
    it occurred to me that after you 'maximize' a window it always goes back to its previous position and size when you 'restore' it. glad to be able to help
    No problems,
    your help was very usefull.
    Thanx
    Franco Amato

Similar Threads

  1. Replies: 1
    Last Post: 18th August 2010, 13:39
  2. Application Resizing on Display resolution change
    By augusbas in forum Qt Programming
    Replies: 1
    Last Post: 26th April 2010, 12:12
  3. Problems with QGraphicsView resizing.
    By aarelovich in forum Qt Programming
    Replies: 2
    Last Post: 24th July 2009, 12:35
  4. Problems resizing QWidget & Phonon
    By gmclachl in forum Qt Programming
    Replies: 2
    Last Post: 18th April 2009, 16:32
  5. Resizing problems when applying a layout
    By JimBrown in forum Newbie
    Replies: 1
    Last Post: 21st February 2007, 22:54

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.