[Android-development] QMessageBox::addButton seems broken on Android/qt5.2.1
maitai at virtual-winds.org
maitai at virtual-winds.org
Mon Mar 17 11:27:06 CET 2014
Le 17-03-2014 10:57, Rutledge Shawn a écrit :
> 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
Ok, I'll will build a specific UI for that then, while waiting for a
fix.
Thanks for your reply
More information about the Android-development
mailing list