Alternate button text in Android QMessageBox



  • Hi!
    Under desktop (any Mac/Lin/Win) the following code just works:

    auto msg = new QMessageBox(someParent);
    msg->setText(tr("Are you monkey or donkey?"));
    msg->setStandardButtons(QMessageBox::Ok | QMessageBox::Cancel);
    auto donkeyButton = msg->button(QMessageBox::Ok);
    donkeyButton->setText(tr("Donkey"));
    msg->button(QMessageBox::Cancel)->setText(tr("Monkey"));
    

    but under Android the native Message Box is invoked, so those texts are not respected.

    Is there any other way to have control on QMessageBox texts under Android?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.