Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    How to display specific part from website?

    Qt WebKit
    7
    13
    6690
    Loading More Posts
    • 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
      kholis last edited by

      How to display only "web search" part from yahoo website (for instance)? marked as red square in following picture !http://picasaweb.google.com/nur.kholis.majid/Misc#5561555468659016274()!

      thanks.

      1 Reply Last reply Reply Quote 0
      • M
        mario last edited by

        A simple "naive" solution is to iterate the page's QWebElements and set the "display" style to "none" on all element but the search box

        1 Reply Last reply Reply Quote 0
        • A
          andre last edited by

          Couldn't you insert a style sheet for that instead?

          1 Reply Last reply Reply Quote 0
          • M
            mario last edited by

            Sure, that should be possible I think.

            1 Reply Last reply Reply Quote 0
            • M
              mohsen last edited by

              i think you should analyze the Html code inside using DOM and then take the piece you need to view. it's not so simple.

              http://doc.qt.nokia.com/latest/qdomdocument.html

              1 Reply Last reply Reply Quote 0
              • B
                benjamin.poulain last edited by

                You could probably create a widget wrapper over QWebPage that show only the geometry of the element.

                For such a simple page, the idea of mario is way simpler and could work.

                1 Reply Last reply Reply Quote 0
                • G
                  goetz last edited by

                  What about just loading http://search.yahoo.com/?

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

                  1 Reply Last reply Reply Quote 0
                  • M
                    mario last edited by

                    [quote author="Volker" date="1294921927"]What about just loading http://search.yahoo.com/?[/quote]

                    That would be to easy Volker :)

                    1 Reply Last reply Reply Quote 0
                    • M
                      mohsen last edited by

                      mario solution is interesting

                      1 Reply Last reply Reply Quote 0
                      • M
                        mario last edited by

                        Actually, I've done an app with filtering capabilities by settting the display style to none and it works great.

                        The app shows a web page containing a table with sport matches. I added filtering buttons to support filtering the table. I also remove some links from the page by settings the display style.

                        1 Reply Last reply Reply Quote 0
                        • M
                          mohsen last edited by

                          nice job dude! :)

                          1 Reply Last reply Reply Quote 0
                          • K
                            kholis last edited by

                            [quote author="Volker" date="1294921927"]What about just loading http://search.yahoo.com/?[/quote]
                            @Volker: yahoo.com is just an example. I will use it to other website of course :) thanks anyway

                            @all: thanks all for the clues. I'll try what mario & mohsen suggested.

                            1 Reply Last reply Reply Quote 0
                            • R
                              rich last edited by

                              I posted some examples of a few ways of doing this kind of webslicing a while back in my blog: http://www.kdedevelopers.org/node/4086

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post