Q
Q
Quiab2020-06-24 09:38:44
Python
Quiab, 2020-06-24 09:38:44

How to make a popup window when hovering over a Label in PyQT?

Hello inhabitants! Thank you for paying attention to my question, which is as follows:
I want to add a feature to the project that is not needed at all for its correct functioning
. When you hover over the Label, a small window with information should appear next to the cursor, disappearing when the cursor leaves the label. I can intercept mouse events, the question is which widget to open and how to open it at the cursor so that it does not create a new window (in the usual sense)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Q
Quiab, 2020-06-24
@Quiab

Found a solution to the problem. Must use QtWidget.setToolTip('text')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question