wip
This commit is contained in:
@@ -73,37 +73,37 @@
|
|||||||
// main_layout->addLayout(center_layout, 1);
|
// main_layout->addLayout(center_layout, 1);
|
||||||
// }
|
// }
|
||||||
|
|
||||||
class MainWindow : public QWidget {
|
// class MainWindow : public QWidget {
|
||||||
Q_OBJECT
|
// Q_OBJECT
|
||||||
|
|
||||||
public:
|
// public:
|
||||||
explicit MainWindow(QWidget *parent = 0);
|
// explicit MainWindow(QWidget *parent = 0);
|
||||||
|
|
||||||
private:
|
// private:
|
||||||
// bool eventFilter(QObject *obj, QEvent *event) override;
|
// // bool eventFilter(QObject *obj, QEvent *event) override;
|
||||||
// void openSettings(int index = 0, const QString ¶m = "");
|
// // void openSettings(int index = 0, const QString ¶m = "");
|
||||||
// void closeSettings();
|
// // void closeSettings();
|
||||||
|
|
||||||
QStackedLayout *main_layout;
|
// QStackedLayout *main_layout;
|
||||||
// OffroadHome *offroadhome;
|
// // OffroadHome *offroadhome;
|
||||||
|
|
||||||
// FrogPilot variables
|
// // FrogPilot variables
|
||||||
// Params params;
|
// // Params params;
|
||||||
};
|
// };
|
||||||
|
|
||||||
MainWindow::MainWindow(QWidget *parent) : QWidget(parent) {
|
// MainWindow::MainWindow(QWidget *parent) : QWidget(parent) {
|
||||||
main_layout = new QStackedLayout(this);
|
// main_layout = new QStackedLayout(this);
|
||||||
main_layout->setMargin(0);
|
// main_layout->setMargin(0);
|
||||||
|
|
||||||
// Create a QWebEngineView
|
// // Create a QWebEngineView
|
||||||
QWebEngineView *web_view = new QWebEngineView();
|
// QWebEngineView *web_view = new QWebEngineView();
|
||||||
web_view->load(QUrl("http://fark.com"));
|
// web_view->load(QUrl("http://fark.com"));
|
||||||
|
|
||||||
// Add the QWebEngineView to the layout
|
// // Add the QWebEngineView to the layout
|
||||||
main_layout->addWidget(web_view);
|
// main_layout->addWidget(web_view);
|
||||||
|
|
||||||
setAttribute(Qt::WA_NoSystemBackground);
|
// setAttribute(Qt::WA_NoSystemBackground);
|
||||||
}
|
// }
|
||||||
|
|
||||||
// bool MainWindow::eventFilter(QObject *obj, QEvent *event) {
|
// bool MainWindow::eventFilter(QObject *obj, QEvent *event) {
|
||||||
// bool ignore = false;
|
// bool ignore = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user