Go to a Webpage in Qt WebKit
I have a question about Qt WebKit. I am trying to make a web browser in Qt. I have got the Back and Foward Buttons working, but not the URL bar working. Once the user is done typing in the URL they want to go to, and they have pressed Return, the web browser would go to the webpage that the User wanted the web browser to go. But there is no go() function in Qt. What do I do now?
If you are using the QQuickWebView (QML) then simply setting the url property of the WebView should load the requested page.
If you are using QWebView (Widgets) then QWebView::load(const QUrl & url) would do the trick.
Sorry for the late response, but, how do I implement QWebView::load in the text box and the QWebView?
In particular line 43 and 315.
Well, I get that, but, what do I need to do for it to work(like steps do I need to acomplish.)
By that, I mean what do I do with the code, and/or how I implement it.
May be you could be slightly more specific asking your question.
What exactly does not work?
Paste your code somewhere, so other people can have a look etc.
I don't have a problem, I just want to know how to use the code.
.pro file: http://pastebin.com/ePvRYVfs
Well, I guess my problem is, that, I want to go to a webpage. I tried that link, and pasted those lines in to a file(I don't remember) and nothing happened.