Re: How to make a such button? Need help quick
Make an empty widget to hold the button.
Make a button
Make a timer
Attach clicked() signal of the button to start the timer
Attach timeout signal of the timer to some slot that moves the position of the button in the form (need to check for 'collisions' with the edge of the form here)
I'll leave up to you to figure how to deal with stopping the button moving.
If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.
Bookmarks