[Development] How to set icon of showMessage function using at SystemTray QML type?

sazu sazuzas at gmail.com
Fri Dec 7 11:38:33 CET 2018


Dear all,

Sorry, My post was not appropriate....
I posted it o the forum again,

If you'd like, please answer my question
https://forum.qt.io/topic/97405/how-to-set-icon-of-showmessage-function-using-at-systemtray-qml-type


sazus

On fri ,Dec 7, 2018  sazu wote::

> Hi all,
>
>
> showMessage() method of SystemTray QML type prepared as follows.
>
> void showMessage(string title, string message, *MessageIcon icon*, int
> msecs)
> (http://doc.qt.io/qt-5/qml-qt-labs-platform-systemtrayicon.html)
>
> What kind of setting value about MessageIcon?
> I tried looking for MessageIcon Type, but I couldn't understand.
> Please let me know if there is a good reference code.
>
> In adddition, in case of Qt Widget QSystemTrayIcon class,
> two methods are prepared as following.
>
> void QSystemTrayIcon::showMessage(const QString &title, const QString
> &message, QSystemTrayIcon::MessageIcon icon, int millisecondsTimeoutHint);
> void QSystemTrayIcon::showMessage(const QString &title, const QString
> &message, const QIcon &icon, int millisecondsTimeoutHint)
> (http://doc.qt.io/qt-5/qsystemtrayicon.html)
>
> How can I configure as QIcon at QML in the same way?
>
>
> Cheers,
> sazus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20181207/38eabeea/attachment.html>


More information about the Development mailing list