[Android-development] QMessageBox::addButton seems broken on Android/qt5.2.1
Rutledge Shawn
Shawn.Rutledge at digia.com
Mon Mar 17 10:57:50 CET 2014
On 17 Mar 2014, at 9:49 AM, <maitai at virtual-winds.org>
wrote:
> Hello,
>
> All is in the title. The following code runs ok on linux/mac/windows but
> not "Optimize" button is shown on Android.
>
> QMessageBox mb(0);
> mb.setText(result);
> mb.setWindowTitle(QObject::tr("Simplification result"));
> mb.setIcon(QMessageBox::Information);
> QPushButton *optim =
> mb.addButton(tr("Optimize"),QMessageBox::YesRole);
> mb.addButton(QMessageBox::Close);
> mb.exec();
>
> I have other cases with similar code in my app, none of them is working
> on Android.
>
> Is it a known issue and is there something I can do about it?
Yes that functionality is not implemented yet.
https://bugreports.qt-project.org/browse/QTBUG-35545
More information about the Android-development
mailing list