Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Highlighting widget
Forum Updated to NodeBB v4.3 + New Features

Highlighting widget

Scheduled Pinned Locked Moved Unsolved General and Desktop
highlight
1 Posts 1 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Joel Bodenmann
    wrote on 1 Jun 2016, 14:06 last edited by
    #1

    I have a couple of dock widgets with multiple tabs in each. It can happen that I have to programmatically change the focus and the active tab of a dock widget. In that case I'd like to highlight the widget with a simple and short "flash" animation.
    As Qt doesn't seem to support such behavior by default I took a look at QPropertyAnimation and used this to change the background color. However, obviously this is not a good solution as I'd have to reset the background color property back to its initial state after the animation.
    Hence my question: What is the proper way of highlighting a QWidget with a simple flash animation to show draw the users attention on a certain widget? Would it make sense to overlay a QRubberBand and change it's opacity level using QPropertyAnimation?

    I'd be thankful for any kind of suggestion.

    Industrial process automation software: https://simulton.com
    Embedded Graphics & GUI library: https://ugfx.io

    1 Reply Last reply
    0

    1/1

    1 Jun 2016, 14:06

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved