This commit is contained in:
Your Name
2024-05-10 01:44:24 -05:00
parent 5081464890
commit 9d227d1c74

View File

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