From anonymous, 1 Month ago, written in C++.
Embed
  1. #include <QApplication>
  2. #include <QWebEngineView>
  3. #include <QTabWidget>
  4. #include <QUrl>
  5.  
  6.  
  7. int main(int argc, char *argv[])
  8. {
  9.     QApplication app(argc, argv);
  10.  
  11.     QTabWidget tw;
  12.     QWebEngineView view;
  13.  
  14.     tw.show();
  15.     tw.addTab(&view, "test");
  16.     // tw.show();
  17.  
  18.     view.load(QUrl("https://qt.io"));
  19.     return app.exec();
  20. }