Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Highlighting widget
Qt 6.12 LTS is out! See what's new in the release blog

Highlighting widget

Scheduled Pinned Locked Moved Unsolved General and Desktop
highlight
1 Posts 1 Posters 1.6k 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.
  • Joel BodenmannJ Offline
    Joel BodenmannJ Offline
    Joel Bodenmann
    wrote on 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

    • Login

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