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. QtWebPage and QCoreApplication
Forum Updated to NodeBB v4.3 + New Features

QtWebPage and QCoreApplication

Scheduled Pinned Locked Moved Qt WebKit
2 Posts 2 Posters 1.6k 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.
  • S Offline
    S Offline
    sunil.subscribe
    wrote on last edited by
    #1

    Hi,

    I am new to QT. I am trying to put together a simple headless browser that runs on server and loads webpages.

    How do I run create a console application to load web pages? Is there a way to fake GUI environment?

    Thanks

    1 Reply Last reply
    0
    • A Offline
      A Offline
      AcerExtensa
      wrote on last edited by
      #2

      It's been discussed many times. You can't use QCoreApplication and GUI together. And WebKit needs GUI. no go without it.

      I know 2 ways to do this:

      1. like it done in wkhtmltopdf project: use X libraries directly + patch Qt & WebKit... to much time expensive, and you still need X libraries installed on system, what means - installed X server on system...
      2. easy way: use FB! No, FB is not Facebook, it is and always was - Frame Buffer :) If so or so need to install X, just install it virtual frame buffer called xvfb... it is very easy to start and has futures like deph, resolution, etc... so you can even start it from you program directly with exact resolution you need for your widget(no memory waste)....

      God is Real unless explicitly declared as Integer.

      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