[Android-development] Android: crash in qmessagebox
maitai at virtual-winds.org
Tue Aug 16 12:22:13 CEST 2016
So I subclassed QMessageBox and if this type of device is detected I
remove title and icon (i.e. I put them in the box body instead), plus
force Qt::FramelessWindowHint. It works.
Note that the tablet is not exactly the same as yours, it's a "YOGA
Tablet 2-1050F", so to be one the safe side I apply this for all "YOGA
Le 16-08-2016 00:20, maitai a écrit :
> Wow... thanks so much for that link, I don't know how I didn't find it after googling for hours for that.
> To be honest I had no hope someone would have an idea...
> qt-android-maillist rules, thanks again Tomas
> Le 15-08-2016 22:27, Tomas Løvbukten a écrit :
>> Hi Philippe,
>> I guess you ran into this bug I filed last year:
>> * QTBUG-49321 
>> Title on Dialog crashes application on Lenovo Yoga Tablet 2-1050L (Android 5.0.1)
>> The workaround we do in our apps is to check for this specific device, and remove title on dialogs if we're on the Yoga tablet, using code similar to this:
>> const QString &model = QAndroidJniObject::getStaticObjectField<jstring>("android/os/Build", "MODEL").toString();
>> const bool noTitle = model == QLatin1String("YOGA Tablet 2-1050L");
>> Hope this helps a bit.
>> Tomas Løvbukten
> Android-development mailing list
> Android-development at qt-project.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Android-development