Results 1 to 10 of 10

Thread: QPropertyAnimation strange behavior only on Ubuntu

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2014
    Posts
    76
    Thanks
    17
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default QPropertyAnimation strange behavior only on Ubuntu

    Hi, I use following code to create "drop-down" dialog when user click 'more' button

    Qt Code:
    1. QPropertyAnimation *animation = new QPropertyAnimation(this, "size");
    2. animation->setDuration(150);
    3. animation->setStartValue(QSize(this->width(), this->height()));
    4. animation->setEndValue(QSize(this->width(), 360)); // on start has 250
    5. animation->start(QPropertyAnimation::DeleteWhenStopped);
    To copy to clipboard, switch view to plain text mode 

    and it works fine on windows but on ubuntu this code on every time when is called ( when user click 'more' button ) also moves dialog for top-left corner. Can you check this code on some linux distribution on simple dialog form?
    What I am doing wrong? Maybe it is a bug Qt?

    Thanks,

    Edit.
    Now i see that simple resize without animations

    Qt Code:
    1. this->resize(this->width(), this->height()+360);
    To copy to clipboard, switch view to plain text mode 

    also moves my dialog window... why? How I can resize window on ubuntu / linux? It is problem of my code? System? Qt?
    On Windows the same code works properly.
    Last edited by atomic; 30th July 2015 at 19:46.

Similar Threads

  1. Qt process strange behavior
    By rspock in forum Newbie
    Replies: 5
    Last Post: 15th March 2013, 17:11
  2. QSqlDatabase strange behavior
    By macav in forum Qt Programming
    Replies: 1
    Last Post: 9th February 2011, 15:21
  3. strange behavior of paintEvent
    By hashb in forum Qt Programming
    Replies: 3
    Last Post: 30th August 2010, 07:48
  4. Weird behavior under Ubuntu Gnome
    By psih128 in forum Qt Programming
    Replies: 0
    Last Post: 6th July 2010, 14:26
  5. Strange resize behavior
    By Lykurg in forum Newbie
    Replies: 3
    Last Post: 9th January 2007, 13:56

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.