Qt creator with Nokia Qt SDK does not have option to set proxy
-
Qt Creator released with Nokia Qt SDK does not have option to set proxy when debugging using simulator.
Is that true that they missed such an important feature?
-
I think I am missing something here: Why do you need a proxy to connect to your simulator for debugging?
-
My application needs to access some external webpages in the internet. On my workstation I can access the net only through the proxy. However, I could not find any settings to set the proxy, as I have with other Symbian SDK's.
-
[quote author="Alexandra Leisse" date="1277881995"]What if you set a system-wide proxy on your workstation?
I'll move the thread to the tools forum.[/quote]
I think I have it in place as most other applications take the proxy automatically from my system (probably IE) settings. Others like Symbian SDK's or Java SDK's have option to set it. I could not find any such option for Nokia Qt SDK Simulator.
-
Why should Qt Simulator have build in proxy support if Qt does not have it?
The simulator is trying to simulate your application. If that does not have proxy support, then no proxy support is available to it. I do not consider this to be a surprise.
You can of course always add this support to your program using the Proxy classes in Qt.
-
[quote author="Tobias Hunger" date="1277886418"]Why should Qt Simulator have build in proxy support if Qt does not have it?
The simulator is trying to simulate your application. If that does not have proxy support, then no proxy support is available to it. I do not consider this to be a surprise.
You can of course always add this support to your program using the Proxy classes in Qt.[/quote]
It seems you are not getting my point. Simulator should simulate my application thats right.
What I am saying is that if I am developing an application which open's say google homepage inside it. Then this application will work on device or any simulator installed in a workstation which has direct access to internet. But in most corporate office's this is not the case. You don't have a direct internet connection. You are always routed through a proxy. So this information is not something to be built in to the application instead user should be provided an option to enter the proxy for the emulator.
Probably anyone using other Nokia SDK's might understand this. Also you have proxy settings in tools like carbide eclipse.
-
You might want to report this as a feature request at <a href="http://bugreports.qt.nokia.com/">http://bugreports.qt.nokia.com/</a>.
I do think it makes sense to just add proxy support to your application directly: The proxy might become necessary when accessing the internet via a WLAN link (or later when porting your application to a desktop/netbook/whatever:-).
-
[quote author="Tobias Hunger" date="1277896344"]You might want to report this as a feature request at <a href="http://bugreports.qt.nokia.com/">http://bugreports.qt.nokia.com/</a>.
I do think it makes sense to just add proxy support to your application directly: The proxy might become necessary when accessing the internet via a WLAN link (or later when porting your application to a desktop/netbook/whatever:-).[/quote]
I don't have to add proxy settings to the application because on mobile device when we configure WLAN or GPRS access point we have settings to set the proxy on the access point. And developer need to tweak it in the application. And that seems to be right way, because proxies can always change.
-
Developing symbian apps (non qt), you DO have to tell the RConnection to use the proxy and get the proxy details from the APN config. It seems to me, that you also should do this for qt apps, using for example:
QNetworkProxy proxy(QNetworkProxy::HttpProxy, "proxy_server", int_proxy_port); QNetworkProxy::setApplicationProxy(proxy);
You SHOULD probably do it this way to make portability easier, thus you would need to get the proxy details from APN config on symbian devices, you would need to use environment variables etc on a linux app ($http_proxy)
Just my thoughts on it, I did notice that the NokiaQtSDK maintenance tool doesn't handle proxies btw, at least not my squid proxy on linux or windows (which technically means I can't uninstall it on windows !!!)
-
[quote author="kbateman" date="1279534546"]Developing symbian apps (non qt), you DO have to tell the RConnection to use the proxy and get the proxy details from the APN config. It seems to me, that you also should do this for qt apps, using for example:
QNetworkProxy proxy(QNetworkProxy::HttpProxy, "proxy_server", int_proxy_port); QNetworkProxy::setApplicationProxy(proxy);
You SHOULD probably do it this way to make portability easier, thus you would need to get the proxy details from APN config on symbian devices, you would need to use environment variables etc on a linux app ($http_proxy)
Just my thoughts on it, I did notice that the NokiaQtSDK maintenance tool doesn't handle proxies btw, at least not my squid proxy on linux or windows (which technically means I can't uninstall it on windows !!!)[/quote]
For non Qt Symbian apps you have an option in the emulator to set proxy. I dont want to set this proxy via code as on real device this proxy is not required. I require this proxy on when debugging on my desktop emulator.
Also you are right about NokiaQtSDK maintenance tool, the same issue was there when uninstalling NokiaQtSDK Beta and RC versions.
-
QtK,
I understand what you are saying, however on a REAL device, there IS a possibility that you would need the proxy setup, specifically I mean if the network requires it, I don't think the proxy settings in the APN configuration are AUTOMATICALLY used by any comms code, so what I'm saying is on the network you are currently using then you may not need any proxy handling code, but if you changed network (or if the network changed its config), you MIGHT need the proxy handling.
Cheers
-
[quote author="kbateman" date="1279536204"]QtK,
I understand what you are saying, however on a REAL device, there IS a possibility that you would need the proxy setup, specifically I mean if the network requires it, I don't think the proxy settings in the APN configuration are AUTOMATICALLY used by any comms code, so what I'm saying is on the network you are currently using then you may not need any proxy handling code, but if you changed network (or if the network changed its config), you MIGHT need the proxy handling.
Cheers
[/quote]
But if your APN is configured properly on device then there should be no issue right (I dont know about this as I have not tried it on device). In Symbian when you try to make a connection it automatically pops up for APN selection. And if APN settings are correct then it connects. When we change network the operator most of the time pushes the write settings on to the device.
-
-
[quote author="kbateman" date="1279627599"]QtK,
Just a quick note about the SDK proxy issues, you can solve it by running the SDKMaintenanceTool.exe with --proxy from the command line, which seems to take environment proxy details into account (works with my squid proxy anyway).
Cheers[/quote]
Thank you, I will try it
-
Showing external pages still doesn't work for me .. related thread here: http://developer.symbian.org/forum/showthread.php?t=6340