Results 1 to 4 of 4

Thread: Implementing fade-in / fade-out for a modal QDialog

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Implementing fade-in / fade-out for a modal QDialog

    I can't be sure (without looking at the source code) that calling hide() might be an end-run around setVisible( false )
    From the docs:
    Hides the widget. This function is equivalent to setVisible(false).
    sources:
    Qt Code:
    1. void QWidget::hide()
    2. {
    3. setVisible(false);
    4. }
    5.  
    6. void QWidget::show()
    7. {
    8. bool isPopup = data->window_flags & Qt::Popup & ~Qt::Window;
    9. if (isWindow() && !isPopup && qApp->styleHints()->showIsFullScreen())
    10. showFullScreen();
    11. else
    12. setVisible(true);
    13. }
    14.  
    15. void QWidget::setHidden(bool hidden)
    16. {
    17. setVisible(!hidden);
    18. }
    19.  
    20. // sorry i forgot this one:
    21. void QWidget::showFullScreen()
    22. {
    23. ...
    24. ...
    25. setVisible(true);
    26. ...
    27. }
    To copy to clipboard, switch view to plain text mode 
    Last edited by stampede; 30th October 2013 at 07:15. Reason: updated contents

Similar Threads

  1. QLabel Text fade in/out
    By lamp in forum Qt Programming
    Replies: 6
    Last Post: 6th October 2016, 09:12
  2. QGraphicsView scroll fade out
    By Cruz in forum Qt Programming
    Replies: 1
    Last Post: 30th September 2013, 10:03
  3. video fade in/out in phonon
    By panpanpandas in forum Qt Programming
    Replies: 2
    Last Post: 31st July 2011, 08:40
  4. Desktop wallpaper Fade In
    By Dan` in forum Qt Programming
    Replies: 4
    Last Post: 30th November 2010, 10:14
  5. fade from one colour to another
    By panduro in forum Newbie
    Replies: 2
    Last Post: 18th June 2008, 13:30

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
  •  
Qt is a trademark of The Qt Company.