Results 1 to 2 of 2

Thread: Fluently resize a QGroupBox

  1. #1
    Join Date
    Jan 2011
    Qt products
    Qt4 Qt/Embedded
    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 21:05.

  2. #2
    Join Date
    Mar 2009
    Brisbane, Australia
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Unix/X11 Windows
    Wiki edits

    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, 10:09
  2. Replies: 1
    Last Post: 9th May 2011, 20:45
  3. Replies: 1
    Last Post: 1st May 2010, 23:03
  4. QGroupBox
    By Devoraz in forum Newbie
    Replies: 1
    Last Post: 30th July 2009, 04:49
  5. Replies: 2
    Last Post: 22nd January 2008, 16:10

Tags for this Thread


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.