[Qt-interest] Opening web page from a dialog when the user hits F1
Alessandro Portale
Alessandro.Portale at trolltech.com
Fri Jul 17 15:50:33 CEST 2009
You could create a Dialog/window wide shortcut with QShortcut
http://doc.qtsoftware.com/latest/qshortcut.html
Alessandro
Marian Ciobanu schrieb:
> Hi,
>
> I need to open a web page when the user presses F1 in a dialog. It's the same page regardless of which widget has the focus.
> All I could think of was to use eventFilter() and call QDesktopServices::openUrl() from it. I also need to call installEventFilter() for all edit widgets, because while buttons let F1 key presses propagate to the dialog, edit widgets don't do such a thing.
>
> Is there a better way to achieve what I want?
>
> Thanks
More information about the Qt-interest-old
mailing list