I am trying to create a popup message that accepts a string
Can someone show me some code to do it ?
The code is based on this:
#include "gotocelldialog.h"
GoToCellDialog
::GoToCellDialog(QWidget *parent
){
setupUi(this);
QRegExp regExp
("[A-Za-z][1-9][0-9]{0,2}");
connect(okButton, SIGNAL(clicked()), this, SLOT(accept()));
connect(cancelButton, SIGNAL(clicked()), this, SLOT(reject()));
}
void GoToCellDialog::on_lline_textedit()
{
//* When ok button is clicked messagebox pops up stating your key is "key"//
msgBox.exec();
}
#include "gotocelldialog.h"
GoToCellDialog::GoToCellDialog(QWidget *parent)
: QDialog(parent)
{
setupUi(this);
QRegExp regExp("[A-Za-z][1-9][0-9]{0,2}");
lineEdit->setValidator(new QRegExpValidator(regExp, this));
connect(okButton, SIGNAL(clicked()), this, SLOT(accept()));
connect(cancelButton, SIGNAL(clicked()), this, SLOT(reject()));
}
void GoToCellDialog::on_lline_textedit()
{
QMessageBox msgBox;
//* When ok button is clicked messagebox pops up stating your key is "key"//
msgBox.exec();
}
To copy to clipboard, switch view to plain text mode
which comes from Qt Gui prgramming version 1
Bookmarks