wip
This commit is contained in:
@@ -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 ¶m = "");
|
||||
// void closeSettings();
|
||||
// private:
|
||||
// // bool eventFilter(QObject *obj, QEvent *event) override;
|
||||
// // void openSettings(int index = 0, const QString ¶m = "");
|
||||
// // 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;
|
||||
|
||||
Reference in New Issue
Block a user