Re: Qt Yellow alert message
For Qt4.5 and Qt4.6 (has it by default) without any extra lib:
Code:
QDBusMessage msg = QDBusMessage::createMethodCall("org.freedesktop.Notifications",
"/org/freedesktop/Notifications",
"org.freedesktop.Notifications",
"SystemNoteDialog");
QString text = "Yellow alert message";
QList<QVariant> args;
args.append(text);
args.append(static_cast<quint32>(0));
args.append("ok");
msg.setArguments(args);
QDBusConnection::systemBus().call(msg);
Code from Qt-extra-libs.
EDIT: This is Maemo specific code, doesn't work in other platforms.
|