Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
qt: Add workaround for QProgressDialog bug on macOS #15040
As a workaround this seems to work for the specific case, tried with extra long wallet names.
Thanks for the links btw, out of curiosity I have also tried to apply the same to a different project where Qt's dialog margins are overruled by style sheets - no effect there (this just for info).
@jonasschnelli Thank you for your review.
Yes, it is possible to do something like this:
QLabel* label = new QLabel(title); progressDialog->setLabel(label); QProgressBar* bar = new QProgressBar; progressDialog->setBar(bar); QPushButton* cancel_button = new QPushButton(tr("Cancel")); progressDialog->setCancelButton(cancel_button); QHBoxLayout* h_layout = new QHBoxLayout; h_layout->addStretch(); h_layout->addWidget(cancel_button); QVBoxLayout* v_layout = new QVBoxLayout; v_layout->addWidget(label); v_layout->addWidget(bar); v_layout->addLayout(h_layout); progressDialog->setLayout(v_layout);
But such implementation introduces new issues: e.g., content margins of