I have trayicon on Qdialog, also I have a webview on Qmainwindow. I want to do that a web page run like tray. The codes run perfectly but i have a problem with the window size. when I maximize the page on tray, the web page is smaller than qwidget.

Qt Code:
  1. //main.cpp
  2. #include "window.h" //the object inherited by Qdialog
  3. #include "mainwindow.h" //the object inherited by Qmainwindow
  4.  
  5. int main(int argc, char *argv[])
  6. {
  7. QApplication app(argc, argv);
  8. Window box;
  9. MainWindow window;
  10. window.setParent(&box);
  11.  
  12. return app.exec();
  13. }
  14.  
  15. //window.cpp
  16. Window::Window()
  17. {
  18. createActions();
  19. createTrayIcon();
  20. setIcon();
  21. /*..*/
  22.  
  23. trayIcon->show();
  24. setWindowTitle(tr("Blog Search"));
  25. resize(600, 600);
  26. }
  27. MainWindow::MainWindow()
  28. {
  29. QTime time = QTime::currentTime();
  30. qsrand((uint)time.msec());
  31. int randomValue = qrand() % 999;
  32. view = new QWebView(this);
  33.  
  34. QUrl url = QUrl::fromEncoded("http://blogsearch.google.com/blogsearch?hl=tr&ie=UTF-8&q=C%2B%2B&&output=rss");
  35. url.addQueryItem("num", "1");
  36. url.addQueryItem("start" ,QString::number(randomValue));
  37. view->load(url);
  38.  
  39. /* ...... */
  40.  
  41. setCentralWidget(view);
  42. }
  43. /*
  44. all the functions here
  45. */
To copy to clipboard, switch view to plain text mode 

some of the codes above.
Can you help me about what can I do for resize the mainwindow ?