Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QDesktop openUrl problem in symbian
Forum Updated to NodeBB v4.3 + New Features

QDesktop openUrl problem in symbian

Scheduled Pinned Locked Moved Mobile and Embedded
11 Posts 3 Posters 6.7k Views 1 Watching
  • 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.
  • J Offline
    J Offline
    jbarron
    wrote on last edited by
    #2

    Sounds like this should be submitted as a bug:

    http://bugreports.qt.nokia.com

    Please attach a small reproducible example to the report as well.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      smotiwala
      wrote on last edited by
      #3

      Thanks for the reply. Ok, I'll submitted as a bug.

      I have one solution for that, i.e detect the browser process, if it is running then kill the browser and execute the command "QDesktopServices::openUrl()".

      But I am trying to find the sample for detecting the running browser with the QProcess, so that i'll kill browser process.
      If you know how to that then kindly let me know.

      Thanks

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jbarron
        wrote on last edited by
        #4

        QProcess will not allow you to find running processes that were not started by you. If you really want to find the Browser process you will have to use native Symbian APIs, most likely something from the APPARC frameworks (eg: TApaTaskList). Note that if you plan on actually killing another process, this will require the "PowerMgmt" capability which probably isn't worth getting just to work around this bug.

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

          Could you please provide a link to the bug you posted (and tag this post with the bug id)? Thanks.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            smotiwala
            wrote on last edited by
            #6

            Hi jbarron,

            Ok, but it is important to our application that it opens the webpage.

            I also try to use QWebview control but in this control it can't handle the javascript and application crashes. if you were trying QWebview to open the facebook then you will see the javascript problem.

            Due to javascript problem I am using default browser. But it also buggy.

            Tell me what should i do its client requirement and its urgent.

            Thanks

            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
              #7

              [quote author="smotiwala" date="1291020589"]Hi jbarron,

              I also try to use QWebview control but in this control it can't handle the javascript and application crashes. if you were trying QWebview to open the facebook then you will see the javascript problem.

              Due to javascript problem I am using default browser. But it also buggy.
              [/quote]

              is javascript enabled? also check what other websetting you are trying to use
              @
              QWebSettings::globalSettings()->setAttribute(QWebSettings::JavascriptEnabled, true);
              @

              1 Reply Last reply
              0
              • S Offline
                S Offline
                smotiwala
                wrote on last edited by
                #8

                Following settings i have used for QWebview

                QWebSettings::globalSettings()->setAttribute(QWebSettings::JavascriptEnabled, true);
                ui->webView->settings()->setAttribute(QWebSettings::JavascriptEnabled, true);
                ui->webView->settings()->setAttribute(QWebSettings::PluginsEnabled, true);
                

                try the following Url in QWebview for facebook sharing. you will notice the problem.

                http://www.facebook.com/sharer.php?u=http://www.google.com&t=SearchEngine

                Thanks

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  smotiwala
                  wrote on last edited by
                  #9

                  Bug is posted in Qt Bug Tracker
                  Bug id: QTBUG-15725
                  Tag: "QDesktop openUrl() does not reload the given URL if browser is already open in symbian"

                  http://bugreports.qt.nokia.com/browse/QTBUG-15725

                  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
                    #10

                    this works fine for me on desktop

                    and it doesn't crash on my device, but no webpage opens too. I had already logged a bug for web page not opening on my device, not able to trace it now ...

                    +1 vote for your reported bug

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      smotiwala
                      wrote on last edited by
                      #11

                      It opens web page well on my device Nokia 5230 5th edition, but when the facebook render on QWebView javascript probelm arises.

                      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