Discussion:
How can I get the signal when user changes the proxy setting in Internet Options..
(too old to reply)
Charles Liu
2010-03-18 13:58:10 UTC
Permalink
Hi, everyone:

I'm trying to write a browser by QT, and I found the
QNetworkProxyFactory::setUseSystemConfiguration()

could use the proxy server that is set in "Internet Options".

But it just reads this information once. When user changes a proxy
server manually, it still use the old one.

So, I want to know how can I get some event message emitted by system,
and I will reset the proxy settings

when I receive the event.

Does any event can be emitted when user changes the proxy information
in Internet Options?

Best Regards!!
Sheng Jiang [MVP]
2010-03-19 18:09:42 UTC
Permalink
IE probably broadcast a WM_SETTINGCHANGE to all top level window with the
registry key in lparam.
Note when the user press OK in IE option window and multiple settings are
changed, you may get a bunch of WM_SETTINGCHANGE messages.
Post by Charles Liu
I'm trying to write a browser by QT, and I found the
QNetworkProxyFactory::setUseSystemConfiguration()
could use the proxy server that is set in "Internet Options".
But it just reads this information once. When user changes a proxy
server manually, it still use the old one.
So, I want to know how can I get some event message emitted by system,
and I will reset the proxy settings
when I receive the event.
Does any event can be emitted when user changes the proxy information
in Internet Options?
Best Regards!!
Charles Liu
2010-03-23 14:58:44 UTC
Permalink
On 3月20日, 上午2時09分, "Sheng Jiang [MVP]"
Post by Sheng Jiang [MVP]
IE probably broadcast a WM_SETTINGCHANGE to all top level window with the
registry key in lparam.
Note when the user press OK in IE option window and multiple settings are
changed, you may get a bunch of WM_SETTINGCHANGE messages.
Post by Charles Liu
I'm trying to write a browser by QT, and I found the
QNetworkProxyFactory::setUseSystemConfiguration()
could use the proxy server that is set in "Internet Options".
But it just reads this information once. When user changes a proxy
server manually, it still use the old one.
So, I want to know how can I get some event message emitted by system,
and I will reset the proxy settings
when I receive the event.
Does any event can be emitted when user changes the proxy information
in Internet Options?
Best Regards!!
I have finished my program by your suggestion.

Thanks very much......^_^

Loading...