Main window positioned near Tray Icon
-
Hi, I made a software that runs continuously and use a QTrayIcon, and I made it so clicking it or using the proper context menu it loads the main window.
Now, I would like this new window to open closer to the icon tray, similar to how JetBrains Toolbox works. Is there a way to do this? The tray may be positioned in different places depending of the taskbar position or on Linux even DE. Is there a way to handle this?
-
Maybe instead convert your QMainWindow to a QMenu and using setContextMenu()
-
@mchinand I need to show a tabbed pane, a toolbar, and a list of things, it's not trivial to repaint a context menu to include those things I think.
I would prefer to have some way to position the window near it, even if I need to manually query something to pickup this position properly.