Hi,
I want to create a feature similar to the system tray icon, but in a status bar of my window MainWindow, is this possible?
How can I do this? I need a north.
Thanks,
Marcelo E. Geyer
Hi,
I want to create a feature similar to the system tray icon, but in a status bar of my window MainWindow, is this possible?
How can I do this? I need a north.
Thanks,
Marcelo E. Geyer
where widget is a QToolButton with a properly defined menu:Qt Code:
To copy to clipboard, switch view to plain text mode
Qt Code:
To copy to clipboard, switch view to plain text mode
Yes, the menu is no problem. The problem is the message balloon.
Hi, maybe you can use QHoverEvent? Or use mouseEnterEvent and show balloon if a timer fires before mouseLeaveEvent?
Ginsengelf
Hi,
The central problem is how to make a balloon message. An example of how I want is when there is a connection to a server in the system tray automatically appears a message that no network available, without the need to position the mouse over.
That's what I want to do, but not using the system tray, but using a QToolButton I have in the status bar of my mainwindow. With QSystemTray is simple, but how to adapt this in the status bar?
Thanks,
Marcelo E. Geyer
Suggests? It's a very hard code?
Thanks,
Marcelo E. Geyer
No solution for a balloon. But you could place a QWhatsThis message at the right position until you find a better replacement.
QWhatsThis::showText ..
QTimer::singleShot => QWhatsThis::hideText ..
Joh
What's wrong with QSystemTrayIcon::showMessage()?
He is not using a systemtrayicon. He wants something similiar inside his application.
Bookmarks