View Single Post
Nathraiben's Avatar
Posts: 267 | Thanked: 408 times | Joined on May 2010 @ Austria
#45
Originally Posted by Venemo View Post
The easiest way:

In Qt Creator's UI designer, right-click a widget, click "Go to slot...", select a slot (eg. clicked() for a button), and it generates what you need where it needs to be.
Shiny!
Finding out the hard way was good for getting the hang of how it works, but knowing that there's a hasslefree way to do it made my day...

Thanks a lot, Venemo!

Originally Posted by D-Iivil View Post
I did, but the whole point is that user must not close it, I mean I don't want to give user opportunity to close it. Just show him a message that something is being done and all he can do is wait
From a user's point of view, I'd advise against unclosable progress bars.

In maemo, that thing will completely take away the ability to close that application, so in case anything goes wrong with either your C++ code or your shell script, the user is stuck with an unclosable application until they either reboot or manage to issue a successful kill command (which, btw, didn't work for me - the application was completely locked).

Instead, issue a warning in your progress bar that this might take a couple of minutes and should not be canceled. Warn the user, but don't take away control over their own system.
 

The Following User Says Thank You to Nathraiben For This Useful Post: