Questions tagged [qsystemtrayicon]

30 questions
0
votes
0 answers

System tray application would detect hotkey with PyQt5 - QSystemTrayIcon

I want to create an application with a system tray icon. This app should detect the hotkey and react to it, even if the app is not focused (icon tray). Example: I want to show the window, then I press Alt + X. The window is showing. I tried using…
0
votes
0 answers

PyQt, Creating an icon in the system tray for QMessageBox

The program I'm working on uses QMessageBox() to confirm a selection from a user but I wish for it to appear on the taskbar. I've been trying to use QSystemTrayIcon() but that doesn't appear to work and the documentation doesn't appear to mention…
0
votes
1 answer

QSystemTrayIcon context menu doesn't show when subclassed

I'm running python 3.9.7 on windows 10. Please consider the following code (note you will need icon.png to run) from PyQt6.QtGui import QAction, QIcon from PyQt6.QtWidgets import QSystemTrayIcon, QApplication, QMenu app =…
Alex
  • 172
  • 9
0
votes
1 answer

QSystemTrayIcon size not respected when run from system terminal but not vscode

I have the following simple Qt app that creates a system tray icon from a given text. When I run the app via vscode terminal, everything seems to be fine (see the screenshot below): Strangely, when I run the app via system terminal (bash), icon…
Blademaster
  • 324
  • 2
  • 15
0
votes
1 answer

QSystemTrayIcon doesn't work at another computer

I have a problem with QSystemTrayIcon. I've built the application on two different computers. I've built in the first computer and launch the application on the another and vice versa. The problem is that I don't see any icon in the tray menu, but…
Dev
  • 1
  • 1
0
votes
1 answer

PyQT5 qsytemtrayicon

I have problem with qsystemtray. When I run code this code without "while", I can watch the icon. With while I can't watch icon (I checked that the program enters the condition "if (a.inbox.unread_count)> 0"), but region where icon must be not…
SabJ
  • 3
  • 1
0
votes
1 answer

dont understand this xml line j2seproject

im beginer developer and im build some project, this project show error BUILD FAILED D:\ForJob\source-archive(ANT)\apertum-qsystem\nbproject\build-impl.xml:951: The following error occurred while executing this…
0
votes
1 answer

Application name is displayed with its extension when QSystemTrayIcon's showMessage is used in Windows 10

I'm using QSystemTrayIcon to display notification in Windows 10. Along with the notification, the application name is also displayed. The problem here is the app name is displayed along with the extension(.exe). How can the extension(.exe) be…
0
votes
2 answers

why icon of QSystemTrayIcon not hide in my system?

I wrote a program that create a tray. I want to hide it with below code,but it not work(tray icon is visible). how solve this problem? from PyQt5 import QtGui, QtWidgets if __name__ == '__main__': app = QtWidgets.QApplication([]) sysTray…
hpaalm
  • 65
  • 10
0
votes
1 answer

MacOS Pyside2 QSystemTrayIcon, left click/right different functions

I would like to know how to do in python/Pyside2: Create a QSystemTrayIcon with a custom icon, in which: If I click left button on it, I do a custom action (just print “left click pressed”). No menu should be shown... If I click right button on it,…
eddy2k
  • 119
  • 1
  • 12
0
votes
2 answers

In pywinauto, how can I right click my app icon in the system tray to open the context menu?

How can i right click the app's icon in the systemtray and select one of the popup menuitem using pywinauto? I have my app on the Windows Desktop systemtray,which can't be loaded using the .exe file. So i have to right click on the systemtray icon…
ss333iiii
  • 35
  • 1
  • 7
0
votes
2 answers

QSystemTrayIcon not showing

Using Kubuntu 18.04 (qt5 5.9.5), Python 3.6. I can't get this code to show the tray icon; other icons like Dropbox, etc. are shown, but this not: import sys from PyQt5.QtWidgets import QApplication, QMenu, QSystemTrayIcon, qApp, QMessageBox from…
okelet
  • 716
  • 1
  • 8
  • 23
0
votes
0 answers

Garbage pixels in transparent background of QSystemTrayIcon

I'm trying to make a system tray icon using Qt 5.10.0. The icon would be non-rectangular (text actually). My current code works normally on a KDE Plasma panel, but on XFCE4-panel it appears to have garbage in the background, whenever icon's pixel is…
Ruslan
  • 18,162
  • 8
  • 67
  • 136
0
votes
0 answers

QSystemTrayIcon keeps creating new icons

I've created a notification system that makes use of QSystemTrayIcon to alert the user. My issue is that each time a user receives a notification it creates a new icon so the system tray ends up full of these icons. I develop the program on a Linux…
-1
votes
1 answer

Is there a way to execute a function when a QSystemTrayIcon is clicked?

I have a QSystemTrayIcon, and I want to execute a function when left clicking on it and right clicking on it. Is there a way to do so? Thanks. Here is my code, my class Trail (not derived from QSystemTrayIcon, but it's okay) app =…
PØL1
  • 5
  • 1
  • 6
1
2