Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    Unsolved Qt System trayicon deployment issues on Linux Distros - Fedora 25,28,30 & CentOs 8.1.1

    Installation and Deployment
    qsystemtrayicon linux linux fedora op plugins deployment
    2
    2
    305
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rashida last edited by

      Hi, I am working on developing a qt application which displays a system tray icon on Linux. My target is to deploy the application on various linux distributions: Ubuntu, RHEL, Fedora, CentOS, OpenSuse etc.

      I have created the application in qt4.8.7 on Ubuntu 10 & 12 (For older OS support). The deployment of qt is a difficult task. After solving all dependencies issue, I was able to get trayicon by deploying my qt application compiled on Ubuntu 12 to deploy on Ubuntu 18 with no pre-installed qt. For tray icon, qt4 looks for Plugin "systemtrayicon/libsni-qt.so".

      This did not work on Fedora and other RHEL based linux systems.

      I tried switching to Qt5 and compile it on Ubuntu14 so that I could use an open source deployment tool "linuxdeployqt" , as it would help in resolving dependencies issues.
      There is a bug on Ubuntu 14 which displays tray icon on left.
      After some research I found out fedora does not support tray icon, it needs some extensions like libappindicator and topicons.

      Please help out if there is a list of Linux Os distros which supports QSystemTrayIcon with or without plugins and extension.

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi and welcome to devnet,

        AFAIK, there's no such list. Distributions may provide tray icon through different means and some patches Qt to support their custom system.

        Did you try on these distribution with their own versions of Qt to see how it's working ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • First post
          Last post