Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rubberband properties #8068

Merged
merged 4 commits into from Oct 1, 2018
Merged

Rubberband properties #8068

merged 4 commits into from Oct 1, 2018

Conversation

m-kuhn
Copy link
Member

@m-kuhn m-kuhn commented Sep 30, 2018

Because it allows for nice effects. It also works with good looking colours.

QPropertyAnimation *animation = new QPropertyAnimation( mFeatureRubberband, "fillColor" );
connect( animation, &QPropertyAnimation::finished, animation, &QPropertyAnimation::deleteLater );
connect( animation, &QPropertyAnimation::valueChanged, this, [this]
{
  mFeatureRubberband->update();
} );

animation->setDuration( 2000 );
animation->setStartValue( QColor( 100, 255, 100, 255 ) );
animation->setEndValue( QColor( 100, 255, 100, 0 ) );

animation->start();

peek 2018-09-30 10-15

Like #7508

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants