[Qt-interest] QProgressDialog and Cancel and Window Flags
Alex Strickland
sscc at mweb.co.za
Thu Feb 10 11:12:03 CET 2011
On 2011/02/10 11:51 AM, Oliver.Knoll at comit.ch wrote:
> There exists a Qt::WindowCloseButtonHint with which you can
> *request* a close button, but I don't see any flag with which
> you could explicitly request *not* to have a close button.
Right.
> So if you *really* want to have a dialog with a progress bar and
> which the user cannot "cancel" (IMHO that denies the whole purpose
> of a progress dialog, but anyway...) you could do a frameless dialog
> (with no close button and no nothing around it) with the flag
> Qt::FramelessWindowHint. Off course you are then responsible for
> drawing a title bar yourself (if needed), handle the resize of the
> dialog etc.
Hmm, thanks, I tried that now, it is a bit too bare, and I don't want to
do all that stuff you mention.
> But if you just want to display a "informative progress bar which the
> user can just look at and say 'ahhhh... nice!'" then this might
> exactly meet your requirements. ;)
Well, maybe you are right and the pesky user should get to choose.
> Note that these flags are really just "hints" to the underlying window
> manager, just as the Pirate Code is more what you'd call "guidelines"
> than actual rules...
Thankee Capn.
--
Alex
More information about the Qt-interest-old
mailing list