How to programmatically resize QProgressDialog
-
I create QProgressDialog but from parent window but I would like the default size to be be little bigger than what it comes up with. How can I change that?
@ progress = (QSharedPointer<QProgressDialog>) new QProgressDialog("Creating files...", "Cancel", 1, numFiles, this, Qt::Dialog) ;
progress->setAutoClose( false );
progress->setMinimumDuration(0);
progress->setWindowModality(Qt::WindowModal);
progress->setModal( true );
progress->setAutoReset( false );@ -
@
progress->resize(progress->size() + QSize(20. 20));
@ -
-
Hi,
What error did you got ?
-
The problem is the point in the QSize constructor.
Try using comma instead:
@progress->resize(progress->size() + QSize(20, 20));@ -
[quote author="euchkatzl" date="1424342793"]The problem is the point in the QSize constructor.[/quote]
Oops, indeed, a typo. My bad.