Hi, I want to add sliding panel to my MainWindow, so I am trying to use the QPropertyAnimation;
animation = new QPropertyAnimation(ui->centralWidget, "geometry");
animation->setDuration(10000);
animation
->setStartValue
(QRect(0,
0,
356,
330));
animation
->setEndValue
(QRect(0,
0,
450,
330));
animation = new QPropertyAnimation(ui->centralWidget, "geometry");
animation->setDuration(10000);
animation->setStartValue(QRect(0,0,356,330));
animation->setEndValue(QRect(0,0,450,330));
To copy to clipboard, switch view to plain text mode
and activating it by a PushButton :
void MainWindow::buttonSlideClicked()
{
animation->start();
}
void MainWindow::buttonSlideClicked()
{
animation->start();
}
To copy to clipboard, switch view to plain text mode
but it doesn't work. What I have to do to make it.
Bookmarks