Results 1 to 2 of 2

Thread: Fluently resize a QGroupBox

  1. #1
    Join Date
    Jan 2011
    Posts
    17
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows Symbian S60

    Default Fluently resize a QGroupBox

    Hi. I have a QGroupBox that I want to resize (make it smaller) after clicking a button. For example if initial size of QGroupBox was 200px, I want it to become 100px (hiding contents from 101px - 200px). Is there any easy way to make it?
    In groupBox I have an image and a text below. After clicking a button I want only image to be visible. And I would love it of the animation was fluent
    Last edited by karlkar; 28th June 2013 at 22:05.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Fluently resize a QGroupBox

    I think you mean fluid not fluent, and I think you want to use QPropertyAnimation on the geometry property.

Similar Threads

  1. Replies: 3
    Last Post: 11th December 2011, 11:09
  2. Replies: 1
    Last Post: 9th May 2011, 21:45
  3. Replies: 1
    Last Post: 2nd May 2010, 00:03
  4. QGroupBox
    By Devoraz in forum Newbie
    Replies: 1
    Last Post: 30th July 2009, 05:49
  5. Replies: 2
    Last Post: 22nd January 2008, 17:10

Tags for this Thread

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.