[Qt-interest] Opening web page from a dialog when the user hits F1
Marian Ciobanu
ciobi at inbox.com
Fri Jul 17 15:53:06 CEST 2009
> 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?
Oh, it just occured to me that I could use a QAction, with F1 as its shortcut; that's quite OK. Anyway, what would other options be?
____________________________________________________________
Receive Notifications of Incoming Messages
Easily monitor multiple email accounts & access them with a click.
Visit http://www.inbox.com/notifier and check it out!
More information about the Qt-interest-old
mailing list