PDA

View Full Version : In Pyqt4 Mouse movement on Text written in label display details



hassanhabib145
27th May 2015, 15:08
Hallo..
I have developed a Temperature test model in Pyqt4 GUI. Is there any possibility that if i move the cursor of my mouse on text written in label it should show the details related to that text. For example if "Temperature" is written in label and if i move my mouse on Temperature it should display the temperature range.

Will be thankful for help !!

chris.kzn
27th May 2015, 15:19
I succeeded using the "toolTip" property.

11182

hassanhabib145
27th May 2015, 15:22
Hey Chris can you provide me a little bit detail :)

chris.kzn
27th May 2015, 15:28
In the attached screen example, you should see where I added the comments "Are you serious?" in the GUI form under the "Design" option on the background, the panel on the right shows the "toolTip" property and the screen in front shows what the result looks like.

hassanhabib145
27th May 2015, 15:49
BRAVO !!!!
Thanks :) :)