Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MainWindow::MainWindow(QWidget *parent) :
- QMainWindow(parent),
- ui(new Ui::MainWindow)
- {
- ui->setupUi(this);
- QWidget *qw = new QWidget();
- qw->setFocusPolicy(Qt::NoFocus);
- qw->setAttribute(Qt::WA_ShowWithoutActivating);
- QPushButton *but = new QPushButton("hello",qw);
- qw->show();
- but->show();
- connect(but,SIGNAL(clicked()),this,SLOT(ev()));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement