Results 1 to 3 of 3

Thread: QSystemTrayIcon tooltip does not show

  1. #1
    Join Date
    Aug 2019
    Beans
    2

    QSystemTrayIcon tooltip does not show

    I have setup a QSystemTrayIcon with a tool tip but it doesn't show up on mouse hover. I'm running Qt 5.8 on Ubuntu 17.04


    Here is the setup code:

    trayIconMenu = new QMenu(this);
    trayIconMenu->addAction(quitAction);
    pTrayIcon = new QSystemTrayIcon(this);
    pTrayIcon->setIcon(QIcon(":/Images/TrayIcon.ico"));
    pTrayIcon->setVisible(true);
    pTrayIcon->showMessage("balloon title","balloon message");
    pTrayIcon->setToolTip("this is the tooltip");
    pTrayIcon->setContextMenu(trayIconMenu);
    pTrayIcon->show();

    I do not see the tool tip show on mouse hover over the system tray icon. This works on Windows but when I try on Ubuntu I don't see the tooltip. Is there a known limitation in Ubuntu regarding QSystemTrayIcon tooltips?

  2. #2
    Join Date
    Jun 2016
    Beans
    1,840
    Distro
    Xubuntu 18.04 Bionic Beaver

    Re: QSystemTrayIcon tooltip does not show

    Quote Originally Posted by anshah View Post
    I'm running Qt 5.8 on Ubuntu 17.04
    Ubuntu 17.04 died in January 2018, more than a year ago. Do you have a specific reason to need this particular version of Ubuntu?

  3. #3
    Join Date
    Aug 2019
    Beans
    2

    Re: QSystemTrayIcon tooltip does not show

    As per requirements we need to support everything from Ubuntu 14.04+ for customers.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •