Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt creator with Nokia Qt SDK does not have option to set proxy

Qt creator with Nokia Qt SDK does not have option to set proxy

Scheduled Pinned Locked Moved Qt Creator and other tools
16 Posts 4 Posters 12.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kamalakshantv
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      I think I am missing something here: Why do you need a proxy to connect to your simulator for debugging?

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kamalakshantv
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          troubalex
          wrote on last edited by
          #4

          What if you set a system-wide proxy on your workstation?

          I'll move the thread to the tools forum.

          THE CAKE IS A LIE
          Web Community Manager - Qt Development Frameworks

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kamalakshantv
            wrote on last edited by
            #5

            [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.

            1 Reply Last reply
            0
            • T Offline
              T Offline
              tobias.hunger
              wrote on last edited by
              #6

              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.

              1 Reply Last reply
              0
              • K Offline
                K Offline
                kamalakshantv
                wrote on last edited by
                #7

                [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.

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  tobias.hunger
                  wrote on last edited by
                  #8

                  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:-).

                  1 Reply Last reply
                  0
                  • K Offline
                    K Offline
                    kamalakshantv
                    wrote on last edited by
                    #9

                    [quote author="Tobias Hunger" date="1277896344"]You might want to report this as a feature request at &lt;a href="http://bugreports.qt.nokia.com/"&gt;http://bugreports.qt.nokia.com/&lt;/a&gt;.

                    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.

                    1 Reply Last reply
                    0
                    • K Offline
                      K Offline
                      kbateman
                      wrote on last edited by
                      #10

                      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 !!!)

                      1 Reply Last reply
                      0
                      • K Offline
                        K Offline
                        kamalakshantv
                        wrote on last edited by
                        #11

                        [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&#39;t handle proxies btw, at least not my squid proxy on linux or windows (which technically means I can&#39;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.

                        1 Reply Last reply
                        0
                        • K Offline
                          K Offline
                          kbateman
                          wrote on last edited by
                          #12

                          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

                          1 Reply Last reply
                          0
                          • K Offline
                            K Offline
                            kamalakshantv
                            wrote on last edited by
                            #13

                            [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&#39;t think the proxy settings in the APN configuration are AUTOMATICALLY used by any comms code, so what I&#39;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.

                            1 Reply Last reply
                            0
                            • K Offline
                              K Offline
                              kbateman
                              wrote on last edited by
                              #14

                              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

                              1 Reply Last reply
                              0
                              • K Offline
                                K Offline
                                kamalakshantv
                                wrote on last edited by
                                #15

                                [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

                                1 Reply Last reply
                                0
                                • ? This user is from outside of this forum
                                  ? This user is from outside of this forum
                                  Guest
                                  wrote on last edited by
                                  #16

                                  Showing external pages still doesn't work for me .. related thread here: http://developer.symbian.org/forum/showthread.php?t=6340

                                  1 Reply Last reply
                                  0

                                  • Login

                                  • Login or register to search.
                                  • First post
                                    Last post
                                  0
                                  • Categories
                                  • Recent
                                  • Tags
                                  • Popular
                                  • Users
                                  • Groups
                                  • Search
                                  • Get Qt Extensions
                                  • Unsolved