Hi there,

I am just implementing a QProgressDialog. Everything works as expected except one strange behavior:

I cannot manage to ensure that the dialog's horizontal size is big enough to show the complete text of the window title I defined. Here's my code:

Qt Code:
  1. QProgressDialog progress(QString("Loading %1 Objects").arg(ids.size()), "Abort", 0, ids.size(), this);
  2. progress.setWindowModality(Qt::WindowModal);
  3. progress.setMinimumDuration(500);
  4. progress.setWindowTitle("My really somewhat long Window Title");
To copy to clipboard, switch view to plain text mode 

I tried to accomplish this using the setSizePolicy() method but without success. But there should be a simple way to accomplish this ...