how to dreate dialog with variable message
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:
Code:
#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();
}
which comes from Qt Gui prgramming version 1
Re: how to dreate dialog with variable message
If I understand you correctly.. you need something like this.. :)
Code:
QDir::home().
dirName(),
&ok
);
It comes from a Qt Example: standard dialogs.. see here: http://doc.trolltech.com/4.6/dialogs...ialog-cpp.html
at the function: void Dialog::setText()
maybe it can help you further :)
if I misunderstand your question, maybe another part of the code at the mentioned example can help you out..