Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9218601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:54:07+00:00 2026-06-18T02:54:07+00:00

I have never used Qt and WebKit and now have a need to create

  • 0

I have never used Qt and WebKit and now have a need to create a simple single web page browser using the Qt WebKit module. The application that I’m looking to create needs to have a plain window that displays a web page URL passed in via command line. I’ve done this sort of thing using WebKitGTK but I have no idea where to start in Qt.

I’ve done some research to see what is involved and so far I’ve only been able to find snippets of code that pertain to the WebKit QWebView class.

So can anybody provide me with complete sample code that will just display a web page in Qt? Once I get that part down I will be able to continue and extend from there and continue to learn about Qt and WebKit.

I will offer up a great deal of bounty points for some excellent help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T02:54:08+00:00Added an answer on June 18, 2026 at 2:54 am

    Your requirement is still not scoped enough. If you want the simplest possible full application example which displays a web page, here is the code:

    #include <QtGui>
    #include <QtWebKit>
    
    int main(int argc, char** argv) {
        QApplication app(argc, argv);
        QWebView view;
        view.show();
        view.setUrl(QUrl("http://google.com"));
        return app.exec();
    }
    

    If that is example.cpp, you can use the following example.pro:

    QT += webkit
    SOURCES = example.cpp
    

    The easiest way to Qt development is using Qt Creator and you can load that .pro file with Qt Creator, build the app, and launch it. There is only one window (QWebView instance) and it will open Google homepage.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have never used Try-catch in my code before, but now I need to
I have never used a Transaction, Commit and Rollback before and now I need
I have never used variadic templates myself, but think I could need them now.
I have never used Prototype before. But now when I'm using Rails, it seems
G'day, I have never really used excel formulas before but need to convert a
I have never used Watin before today. I need to get a collection of
I just started using PyGI (on Ubuntu Natty), although I have never used pygtk
I have never used XML before. I am trying to send a single XML
I have never used nullable types in my C# code. Now I have decided
I have never used 'add' and 'remove' when creating and using events in .NET.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.