Context sensitive help on Qt

What I want to do is, when I place mouse pointer over any GUI component (like push button, radio buttons, etc.) and press the F1 key, the relevant help should be shown. I was able to get mouse coords, but couldn't get the GUI element underneath it dynamically. I am using Qt 4.7.4 and Qt Creator 2.4.

How can I achieve this?

Answers


There is a method in QApplication, that may be useful to you :

QWidget * QApplication::widgetAt ( const QPoint & point ) [static]

Then you should name every widget accordingly to your needs.


Need Your Help

pick a random records from a datatable

c# random datatable

I'm trying to create an application which import an excel file and read the data from it and it returns n records randomly as winners according to how many winners the user want from that list. so ...

Regex to check Illegal Search Pattern

javascript regex pattern-matching

I am trying to convert below function to a simple regex check to find illegal pattern in my search app.