[Interest] [ Android ] QMessageBox does not display added buttons ?

Robert Iakobashvili coroberti at gmail.com
Thu Jul 16 17:44:49 CEST 2015


Hi Ed,
To report this issue as a bug?
Regards,
Robert


On Thu, Jul 16, 2015 at 6:40 PM, Edward Sutton
<edward.sutton at subsite.com> wrote:
> This works fine on OS X but not Android?
>
> On Android no buttons are shown?
>
>     // Example:
>
>     // ---------------------------------------------
>
>     // Software Update
>
>     // Version 12 is ready to install.  Your TKQ
>
>     // will restart when installation is finished
>
>     // [ Later ]    [ Install ]
>
>     // ---------------------------------------------
>
>     QString prompt = tr("Version %1 is ready to install.  Your %2"
>
>                         "will restart when installation is finished")
>
>                      .arg(m_versionLatestTracker)
>
>
> .arg(m_trackerConnection->trackerConfiguration()->trackerModelName());
>
>
>     QMessageBox softwareUpdateDialog(this);
>
>     softwareUpdateDialog.setWindowTitle(tr("Software Update"));
>
>     softwareUpdateDialog.setText(prompt);
>
>     softwareUpdateDialog.addButton(tr("Later"), QMessageBox::RejectRole);
>
>     QPushButton* acceptButton =
> softwareUpdateDialog.addButton(tr("Install"),QMessageBox::AcceptRole);
>
>     softwareUpdateDialog.exec();
>
>     if(acceptButton != softwareUpdateDialog.clickedButton())
>
>     {
>
>         return;
>
>     }
>
>
> Suggestions are appreciated.
>
>
> -Ed
>
>
>
> This email and any files transmitted with it from The Charles Machine Works,
> Inc. are confidential and intended solely for the use of the individual or
> entity to which they are addressed. If you have received this email in error
> please notify the sender. Our company accepts no liability for the contents
> of this email, or for the consequences of any actions taken on the basis of
> the information provided, unless that information is subsequently confirmed
> in writing. Please note that any views or opinions presented in this email
> are solely those of the author and do not necessarily represent those of the
> company. Finally, the recipient should check this email and any attachments
> for the presence of viruses. The company accepts no liability for any damage
> caused by any virus transmitted by this email.
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>



More information about the Interest mailing list