Results 1 to 2 of 2

Thread: Qt 5 QSplitter Animation

  1. #1
    Join Date
    Jun 2013
    Qt products
    MacOS X Unix/X11 Windows

    Exclamation Qt 5 QSplitter Animation

    Hi, I get some stucks with QSplitter as well. I have two widget in the splitter and I set one of the size of control as 0 to hide it.
    Now, I'd like to show the hide one with an expand anime. I use QPropertyAnimation but it doesn't work.

    Qt Code:
    1. QPropertyAnimation showTrevwAnime(trevwCompileInfo,"geometry");
    2. QRect startRect=trevwCompileInfo->rect();
    3. QRect finalRect=startRect;
    4. finalRect.setWidth(100);
    5. showTrevwAnime.setStartValue(startRect);
    6. showTrevwAnime.setEndValue(finalRect);
    8. showTrevwAnime.start();
    To copy to clipboard, switch view to plain text mode 

    I've know the code above is wrong. But I have no idea how to do this. I have read about QAnimationFramework, can someone help me? Thanks a lot!!!!

  2. #2
    Join Date
    Jan 2012
    Qt products
    Qt4 Qt/Embedded

    Default Re: Qt 5 QSplitter Animation


    (don't place animation on the stack!)

Similar Threads

  1. Replies: 1
    Last Post: 27th July 2012, 16:33
  2. qsplitter
    By marc2050 in forum Newbie
    Replies: 3
    Last Post: 31st May 2011, 16:06
  3. Bug in QSplitter with Qt4.5.1
    By araglin in forum Qt Programming
    Replies: 1
    Last Post: 28th April 2009, 07:45
  4. QSplitter
    By weixj2003ld in forum Qt Programming
    Replies: 1
    Last Post: 8th April 2009, 13:46
  5. New to QSplitter
    By bruccutler in forum Qt Programming
    Replies: 6
    Last Post: 6th September 2007, 16:43


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.