Public feed
#599796
<ahigerd> firedrops: The QSystemTrayIcon object has to keep living; if it gets destroyed (i.e. if you put it on the stack and the function ends, or if you parented it to a window that you destroyed) it goes away
<babali> Do you know how we can catch the right click in an QAbstractTreeView ?
<firedrops> how do i keep it living then? new to all this
<firedrops> :>
<ahigerd> firedrops: Create it on the heap, that is, with operator new, just like you do any other widget
Code que usei po tray:
def apptray(self):
tray = QtGui.QSystemTrayIcon()
tray.isSystemTrayAvailable()
tray.setIcon(QtGui.QIcon("pixmaps/green.png"))
tray.show()