I'm sure that the problem is in the code but i'm really newbie in Qt and can't find it.As you can see at the code I'm trying to create a connection between a buton and the webview object but it doesnt work when i test it.I keep pushing the buton but there's no change in the page.So here's the code:

Qt Code:
  1. #include <QApplication>
  2. #include <QMainWindow>
  3. #include "ui_test.h"
  4. int main(int argc, char *argv[])
  5. {
  6. QApplication app(argc, argv);
  7. Ui::MainWindow ui;
  8. QMainWindow *main = new QMainWindow;
  9. ui.setupUi(main);
  10. ui.webView->load(QUrl("http://www.trolltech.com/"));
  11. ui.webView->show();
  12. QObject::connect(ui.cmdBtn,SIGNAL(clicked()),ui.webView,SLOT(load(QUrl("http://www.google.com/"))));
  13. main->show();
  14. return app.exec();
  15. }
To copy to clipboard, switch view to plain text mode 

Please help me, if you can!