Discussion:
[Development] How to set icon of showMessage function using at SystemTray QML type?
sazu
2018-12-07 08:05:31 UTC
Permalink
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
sazu
2018-12-07 10:38:33 UTC
Permalink
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
Post by sazu
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
Loading...