Results 1 to 11 of 11

Thread: How to remove flickering in animation on Qt 5.5.0 with Mac OS X

  1. #1
    Join Date
    Sep 2015
    Posts
    28
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default How to remove flickering in animation on Qt 5.5.0 with Mac OS X

    I have to resize my widget on some animations bt it gives flickering while opening or closing the widget.I have tried several approaches in these last days like QTimeLine, QTimer::singleShot(),QStateMachine.I have seen by pausing the animation also.But it gave me no result.I am still receiving the flickering on Mac OS X.Please suggest me something about this.I will be so grateful to you all.
    Thanks.

  2. #2
    Join Date
    Sep 2015
    Posts
    28
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Re: How to remove flickering in animation on Qt 5.5.0 with Mac OS X

    Please someone help me...I have not achieved any solution regarding the above stated problem related to flickering.It has been around 7 to 8 days putting effort on this.

  3. #3
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    Default Re: How to remove flickering in animation on Qt 5.5.0 with Mac OS X

    Do you only get this on OSX or also on other platforms?
    Can you create a simple program that shows the problem?

    Cheers,
    _

  4. #4
    Join Date
    Sep 2015
    Posts
    28
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Re: How to remove flickering in animation on Qt 5.5.0 with Mac OS X

    I am facing this problem on Mac OSX only...it is running fine on Windows.I gives no fllickering on Windows at all.

    ...
    connect(mWOWMaster.get(), SIGNAL(loggedIn(bool)), this, SLOT(OnSlotLoggedIn(bool)));//on getting object mWoWMaster into existence, i have to call this slot OnSlotLoggedIn(bool)


    void CMainWindow::OnSlotLoggedIn(bool status){
    mcpushBtnLogin->setText(tr("Login"));

    if (status) {

    mcLineEditRoomCode->clear();
    //buildStateMachine();I tried animation by QStateMachine

    QPropertyAnimation *mainwindowanimate = new QPropertyAnimation(this,"geometry");
    mainwindowanimate->setDuration(400);
    mainwindowanimate->setStartValue(QRect(this->x(), this->y(), 569, 400));
    mainwindowanimate->setEndValue(QRect(this->x(), this->y(), 569, 0));
    mainwindowanimate->start(QPropertyAnimation:eleteWhenStopped);

    connect(mainwindowanimate, SIGNAL(finished()), this,SLOT(animationFinished()));
    }
    }



    void CMainWindow::animationFinished(){

    mwidgetLogin->setHidden(TRUE);
    mWidgetAfterLogin->setHidden(FALSE);
    QPropertyAnimation *mainwindowglow = new QPropertyAnimation(this, "geometry");
    mainwindowglow->setDuration(200);
    mainwindowglow->setStartValue(QRect(this->x(), this->y(), 569, 0));
    mainwindowglow->setEndValue(QRect(this->x(), this->y(), 569, 86));
    if (mWOWMaster->mbIsWindowsGatweay==true) {
    connect(mainwindowglow, SIGNAL(finished()), this,SLOT(SlotAnimationForGatewayAtLogin()));
    }

    mainwindowglow->start(QPropertyAnimation:eleteWhenStopped);


    }
    ...
    Thanks

  5. #5
    Join Date
    Sep 2015
    Posts
    28
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Re: How to remove flickering in animation on Qt 5.5.0 with Mac OS X

    Please someone reply...

  6. #6
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    Default Re: How to remove flickering in animation on Qt 5.5.0 with Mac OS X

    As I've said before: attach an example program that has the problem.

    Cheers,
    _

  7. #7
    Join Date
    Sep 2015
    Posts
    28
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Re: How to remove flickering in animation on Qt 5.5.0 with Mac OS X

    thx for reply..but i have sent the example code in one of my replies..It contains a slot in which i am resizing my widget with QPropertyAnimation and on animation
    's signal finished() i am again resize the widget with QPropertyAnimation.This means I have to resize my widget two times....so flickering is occurring while resizing the widget. You can easily read the code.

    Thanks.

  8. #8
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    Default Re: How to remove flickering in animation on Qt 5.5.0 with Mac OS X

    Quote Originally Posted by bartarya.parul View Post
    thx for reply..but i have sent the example code in one of my replies
    That reply must have been lost.

    I can see only a bit of code in comment #4 but that doesn't look like it would compile and run if copied into a file.

    Can you check which comment contains the build and runnable example you've uploaded? Maybe you posted it to a different thread?

    Cheers,
    _

  9. #9
    Join Date
    Sep 2015
    Posts
    28
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Re: How to remove flickering in animation on Qt 5.5.0 with Mac OS X

    Actually this is the entire pseudo code which i have written.Nothing has been lost.please read only QPropertyAnimation statements then you would understand ow it is doing.The main Widget is not opaque and some background(The window which is opened at the background) is shown while running the application.
    I have used setAttribute(Qt::WidgetAttribute) also but it is not working.
    Thanks.

  10. #10
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    Default Re: How to remove flickering in animation on Qt 5.5.0 with Mac OS X

    Quote Originally Posted by bartarya.parul View Post
    Actually this is the entire pseudo code which i have written.Nothing has been lost.
    Well, ok.
    We will see of anyone has the inclination of building a test program themselves.
    I highly doubt it but you never know.

    Cheers,
    _

  11. #11
    Join Date
    Sep 2015
    Posts
    28
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Re: How to remove flickering in animation on Qt 5.5.0 with Mac OS X

    Thanks ...anda_skoa...I have used Q_PROPERTY also on myWidget->height().bt all in Vain...I have used many setAttributes and mac specific attributes also...bt nothing is going...If you have some clue about it ,then please notify me ASAP.
    Thanks...

Similar Threads

  1. Replies: 2
    Last Post: 8th January 2015, 20:15
  2. Replies: 1
    Last Post: 27th July 2012, 17:33
  3. Qt flickering animation
    By tomrider in forum Qt Programming
    Replies: 5
    Last Post: 5th May 2011, 15:31
  4. flickering in frame moving animation
    By Seth90 in forum Qt Programming
    Replies: 0
    Last Post: 23rd April 2011, 13:55
  5. Flickering
    By Pembar in forum Qt Programming
    Replies: 2
    Last Post: 19th May 2009, 20:21

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.