[Interest] Does Qt have a cross platform + mobile "QSystemTrayIcon"?

Joseph Crowell joseph.w.crowell at gmail.com
Wed Oct 2 16:40:47 CEST 2013


On 02/10/2013 10:33 PM, Mark wrote:
> On Wed, Oct 2, 2013 at 7:52 AM, Rutledge Shawn 
> <Shawn.Rutledge at digia.com <mailto:Shawn.Rutledge at digia.com>> wrote:
>
>
>     On 2 Oct 2013, at 12:07 AM, Mark wrote:
>
>     > Hi,
>     >
>     > First of, the QSystemTrayIcon doc [1] seems extremely outdated
>     so i don't know if this question is valid with that specific class
>     name.
>
>     What is outdated about the docs?  Just the XP screenshot or
>     something else?
>
>
> First off, i big note that i didn't try this out now nor in any of the 
> Qt 5 releases thus far! That class was showing a popup in the Windows 
> XP style on at least Vista perhaps even Windows 7. That looked totally 
> out of place. In other terms, it didn't use the native system popup 
> back then. I don't know it's current state but considering that is has 
> a QPlatform* version leads me to think that the Qt5 version might be 
> better.
>
> Other then that the documentation - yes, the screenshot - might 
> benefit from updating it :)
>
>
>     > So what i'm searching for is this, a class that just sends a
>     system(tray) notification that pops up in the place where all
>     notifications pop up. And then really cross platform!
>     >
>     > In KDE that would be the lower right corner
>     > In Gnome that would be the upper right corner
>     > In Mac also the upper right corner
>     > In Windows (XP, Vista, 7) in the lower right corner
>     > In Windows 8.. don't know how it's done there, i try to stay
>     away from it.
>     > In Android in the notification area
>     > In iOS in the notification area
>     > In Windows Mobile in the notification area
>     > In <YOUR_OTHER_MOBILE_OS> in the notification area
>
>     Ensuring that it works on the mobile platforms too sounds like a
>     good idea, to the extent that it's possible.  But the lifecycle
>     issues might be different, e.g. usually a "background application"
>     can be killed at any time, so should the icon go away when that
>     happens?
>
>
> I think it should work exactly as you just described it. If one wants 
> to make the icon "persistent" then that would probably have to be done 
> by the developer. This class should not care about that.

As far as mobile compatibility goes, isn't QSystemTrayIcon QtWidgets 
based? I believe current advice is to stay away from QtWidgets on mobile 
platforms.

>
>     > On all platforms it should naturally show the notification in
>     their native OS theme so for that QSystemTrayIcon is a bit
>     obsolete since it even shows the Windows XP style popup on Windows
>     Vista (that's the last time i tried it a couple years ago).
>     >
>     > Does the above exist? If so, where can i find it?
>     >
>     > [1]
>     http://qt-project.org/doc/qt-5.1/qtwidgets/qsystemtrayicon.html#details
>     > _______________________________________________
>     > Interest mailing list
>     > Interest at qt-project.org <mailto:Interest at qt-project.org>
>     > http://lists.qt-project.org/mailman/listinfo/interest
>
>     _______________________________________________
>     Interest mailing list
>     Interest at qt-project.org <mailto:Interest at qt-project.org>
>     http://lists.qt-project.org/mailman/listinfo/interest
>
>
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20131003/a0c8fd8e/attachment.html>


More information about the Interest mailing list