Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. How to display specific part from website?
QtWS25 Last Chance

How to display specific part from website?

Scheduled Pinned Locked Moved Qt WebKit
13 Posts 7 Posters 7.3k 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
    kholis
    wrote on last edited by
    #1

    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
    0
    • M Offline
      M Offline
      mario
      wrote on last edited by
      #2

      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
      0
      • A Offline
        A Offline
        andre
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mario
          wrote on last edited by
          #4

          Sure, that should be possible I think.

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

            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
            0
            • B Offline
              B Offline
              benjamin.poulain
              wrote on last edited by
              #6

              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
              0
              • G Offline
                G Offline
                goetz
                wrote on last edited by
                #7

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

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

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  mario
                  wrote on last edited by
                  #8

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

                  That would be to easy Volker :)

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    mohsen
                    wrote on last edited by
                    #9

                    mario solution is interesting

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      mario
                      wrote on last edited by
                      #10

                      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
                      0
                      • M Offline
                        M Offline
                        mohsen
                        wrote on last edited by
                        #11

                        nice job dude! :)

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

                          [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
                          0
                          • R Offline
                            R Offline
                            rich
                            wrote on last edited by
                            #13

                            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
                            0

                            • Login

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