Sorry sir that didn't helped me too much
I have did this
//My dialog
Logindialog
::Logindialog(QWidget *parent
) : ui(new Ui::Logindialog)
{
ui->setupUi(this);
connect(ui->configurePushButton,SIGNAL(clicked()), this, SLOT(accept ()));
}
//My dialog
Logindialog::Logindialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::Logindialog)
{
ui->setupUi(this);
connect(ui->configurePushButton,SIGNAL(clicked()), this, SLOT(accept ()));
}
To copy to clipboard, switch view to plain text mode
I have an action on the button that closes the dialog if clicked
void Logindialog::on_configurePushButton_clicked()
{
close();
}
void Logindialog::on_configurePushButton_clicked()
{
close();
}
To copy to clipboard, switch view to plain text mode
and this is the creation of the Dialog
Logindialog nLD;
nLD.setModal(true);
nLD.setWindowFlags( Qt::Dialog | Qt::Desktop
|Qt::CustomizeWindowHint |Qt::CustomizeWindowHint
| Qt::WindowTitleHint| Qt::WindowMinMaxButtonsHint |
Qt::WindowMinimizeButtonHint );
nLD.exec();
if( nLD.exec() ){
ui->stackedWidget->setCurrentIndex(0);
}
Logindialog nLD;
nLD.setModal(true);
nLD.setWindowFlags( Qt::Dialog | Qt::Desktop
|Qt::CustomizeWindowHint |Qt::CustomizeWindowHint
| Qt::WindowTitleHint| Qt::WindowMinMaxButtonsHint |
Qt::WindowMinimizeButtonHint );
nLD.exec();
if( nLD.exec() ){
ui->stackedWidget->setCurrentIndex(0);
}
To copy to clipboard, switch view to plain text mode
Bookmarks