Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Is there a lightweight browser for me to display web contents?
QtWS25 Last Chance

Is there a lightweight browser for me to display web contents?

Scheduled Pinned Locked Moved General and Desktop
7 Posts 4 Posters 3.9k 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.
  • M Offline
    M Offline
    Morris
    wrote on last edited by
    #1

    I want to display a small amount of web contents(Youtube video or some thing like that).
    I know I can use webkit module to do this. But webkit is kinda too large.
    I wonder if there's a cross-platform lightweight browser application which I can interact with through QProcess.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      torsten
      wrote on last edited by
      #2

      Try "Arora":http://code.google.com/p/arora/
      You can compile the latest version (0.11) from git.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Morris
        wrote on last edited by
        #3

        Thanks for the information~ =v=

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

          Arora uses Qt webkit... Morris said webkit is too large for him, so I am not sure it is what he is looking for.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Morris
            wrote on last edited by
            #5

            Because my app rarely has to display the web contents, it is a bit too heavy to include the webkit module into my app.
            My purpose is to start a new process to display the web contents, so that when the user finished viewing it, the process will get killed and the resources will be removed entirely from the memory. (If I include the webkit into my app, it will stay in the memory until my app exits)

            Actually, it doesn't matter how many resources the browser will take during its runtime. But I think the less resources it takes , the user experience is better.

            1 Reply Last reply
            0
            • T Offline
              T Offline
              torsten
              wrote on last edited by
              #6

              Ise it in a subroutine... after the routine ends, the qtwebkit will be removed from memory.

              1 Reply Last reply
              0
              • G Offline
                G Offline
                goetz
                wrote on last edited by
                #7

                You can use "QDesktopServices:: openUrl()":http://doc.qt.nokia.com/4.7/qdesktopservices.html#openUrl to open the web page with the default browser of the system:

                @
                #include <QDesktopServices>

                QUrl url("http://qt.nokia.com");
                QDesktopServices::openUrl(url);
                @

                This opens the system's browser as an external process, it is not a modal dialog, so the flow of control in your program continues. The external browser even stays open when your application quits.

                What's so bad about including Qt webkit libs in your app?

                http://www.catb.org/~esr/faqs/smart-questions.html

                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