Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Animated Main Window Layout

License

NotificationsYou must be signed in to change notification settings

huseyinkozan/QAnimatedMainWindowLayout

Repository files navigation

Usage

Create

QAnimatedMainWindowLayout * amwl = new QAnimatedMainWindowLayout;

Add widgets

amwl->addLeftWidget(leftGroupBox);amwl->addRightWidget(rightGroupBox);amwl->addTopWidget(topGroupBox);amwl->addBottomWidget(bottomGroupBox);amwl->addCenterWidget(centerGroupBox);

Do fine tunes

amwl->setEasingCurve(QEasingCurve::OutBack);amwl->setAnimationDuration(500);

Initialize stretch values

// disable animation for initializationamwl->setAnimationEnabled(false);amwl->setLeftPercentage(leftDoubleSpinBox->value());amwl->setRightPercentage(rightDoubleSpinBox->value());amwl->setTopPercentage(topDoubleSpinBox->value());amwl->setBottomPercentage(bottomDoubleSpinBox->value());amwl->setCenterPercentage(centerDoubleSpinBox->value());amwl->setAnimationEnabled(true);

Set some of the widgets layout

frame->setLayout(amwl);

Now, on every change on stretch property will done with an animation.

About

Animated Main Window Layout

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp