Standard notifications or warning styles in Symbian (Qt / S60)?

I am building an application using Qt on the Symbian / S60 platform, and I was wondering if there is a standard notification window that I could use to send messages to users. Using other platforms as examples, I am looking for something that is equivalent to the Javascript alert () method or Cocoa NSRunAlert *.

If there is no native equivalent of Symbian / S60, is there anything in the Qt space that I have to look at? The QMessageBox does not seem to work as I might expect.

+3
source share
2 answers

RNotifier Symbian ( Qt ). , Symbian. :

    RNotifier notifier;
    User::LeaveIfError(notifier.Connect());
    TInt buttonVal;
    TRequestStatus lStatus;
    notifier.Notify(_L("First line of notification"), _L("Second line of notification"), _L("Left button text"), _L("Right button text"), buttonVal, lStatus);
    User::WaitForRequest(lStatus);
    notifier.Close();

:: WaitForRequest (lStatus) buttonVal, , . : 0, ; 1, .

, .

+4

-, Qt. :

//Create warning message box
QMessageBox::warning(0,"Warning", "Warning message text");
//Create information message box
QMessageBox::information(0, "Information", "Information message text");
//Create critical message box
QMessageBox::critical(0, "Critical", "Critical message text");

, , .

: Nokia

+5

Source: https://habr.com/ru/post/1721301/


All Articles