[SOLVED] shortcut to mainwindow methods
-
question 1:
this->isMinimized(); is not minimizing the window.question 2:
I would like to use a shortcut for the mainwindow method calling but i don't know how to do that.
@MainWindow *w = new MainWindow();@
or
@Mainwindow w@
in the mainwindow.cpp file, when i run the above 2 code, the exe is not created but i do not get an error. is there a shortcut to call MainWindow.Show(); I would like to use w.show{}; instead.Mainwindow.cpp
@#include "mainwindow.h"
#include "ui_mainwindow.h"MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
}MainWindow::~MainWindow()
{
delete ui;
}@ -
just below the following code is where i would like the short cut to the mainwindow method
@ui->setupUi(this);@so it would look like this...
@ui->setupUi(this);
MainWindow *w = new MainWindow();@
or
@ui->setupUi(this);
MainWindow w;@instead of typing MainWindow. all i type is w but when i type w in the mainwindow.cpp i don't get a list of methods to choose from. the exe is created but does not load up and i get no errors.