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. QtWebKit without GUI???
Forum Updated to NodeBB v4.3 + New Features

QtWebKit without GUI???

Scheduled Pinned Locked Moved Qt WebKit
5 Posts 2 Posters 5.5k 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.
  • A Offline
    A Offline
    AcerExtensa
    wrote on 15 Feb 2011, 08:44 last edited by
    #1

    Hello everybody!
    Is the Subject possible?
    I'm trying to create simple console app & lib to take snapshots from websites and save them as jpg. And it should work on server without X's.
    Any suggestion? Maybe where is some Flags/Preprocessor Definitions to compile QtWebKit without GUI elements?

    God is Real unless explicitly declared as Integer.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      AcerExtensa
      wrote on 15 Feb 2011, 08:49 last edited by
      #2

      Oh yeh, sorry, have forgot to tell about version. I'm using 4.7.1 Opensource on Linux platform.

      God is Real unless explicitly declared as Integer.

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goetz
        wrote on 15 Feb 2011, 10:47 last edited by
        #3

        That is not possible. There is a dependency on QtGui libs, that you simply cannot cut off. See the Wiki article "Qt library cross dependencies":http://developer.qt.nokia.com/wiki/Qt_library_cross_dependencies for the rest of the dependencies.

        Also, some internals of WebKit depend on the graphics system being setup correctly which in turn forces you to have a valid X11 environment running. "This forum thread":http://developer.qt.nokia.com/forums/viewthread/3005 has some details.

        So, the short story is: WebKit needs QtGui and X11.

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

        1 Reply Last reply
        0
        • A Offline
          A Offline
          AcerExtensa
          wrote on 15 Feb 2011, 11:39 last edited by
          #4

          Thanks for your reply!
          It's a sad :(

          I will try it with fake X-Server... Xvfb for example... maybe it will work :)

          God is Real unless explicitly declared as Integer.

          1 Reply Last reply
          0
          • A Offline
            A Offline
            AcerExtensa
            wrote on 15 Feb 2011, 11:43 last edited by
            #5

            Nice! It works with Xvfb!

            God is Real unless explicitly declared as Integer.

            1 Reply Last reply
            0

            1/5

            15 Feb 2011, 08:44

            • Login

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