1 wrapInFunction()2 void wrapInFunction() 3 { 4 5 //! [0] 6 // ... 7 QWebPage *page = new QWebPage; 8 // ... 9 10 QWebInspector *inspector = new QWebInspector; 11 inspector->setPage(page); 12 //! [0] 13 14 } 15 16