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?
8 replies
Take a look at this: http://qt.gitorious.org/qt/qtwebkit/blobs/stable/Tools/MiniBrowser/qt/qml/BrowserWindow.qml
In particular line 43 and 315.
I don’t have a problem, I just want to know how to use the code.
Mainwindow.ui: http://pastebin.com/7JvJJQ63
Mainwindow.cpp: http://pastebin.com/buqpmapj
Main.cpp: http://pastebin.com/vMp8RspL
Mainwindow.h: http://pastebin.com/TWkq5CKP
.pro file: http://pastebin.com/ePvRYVfs
You must log in to post a reply. Not a member yet? Register here!


