QLineEdit problem in Qt for Symbian
-
I'm working on Qt 4.6.3 for symbian. I have a problem with QLineEdit.
The scenario is, I have two QMainWindow, one QMainwindow have two QlineEdit and a QPushButton controls and other QMainWindow have QListWidget control.After opening and closing second QmMainWindow from first QMainWindow, the QLineEdit controls of first QMainWindow are uneditable. I want it editable.
Why it is uneditable after closing second QMainWindow. What should I do for making editable?
Thanks.
-
code is simple
on QMainWindow1 QPushButton clicked
@
void QMainWindow1::onPushbuttonclick() {
QMainWindow2 *w2 = new QMainWindow2();
w2.showMaximised();
}@
and adding "this->close() on QMainWindow2
@
void QMainWindow2::onExitclick() {
this->close()
}
@ -
I have used the second QmainWindow for user selection like popup dialog for selection of data. After selection user closes the second QMainWindow and that data will be transmit it to the first QMainWindow.
Kindly let me know if any other approach I use for popup selection.
Thanks in advance.
-
You can also use a "QDialog":http://doc.trolltech.com/latest/qdialog.html for this, if is only a forms that is close after the function.
[quote author="smotiwala" date="1292588751"]I have used the second QmainWindow for user selection like popup dialog for selection of data. After selection user closes the second QMainWindow and that data will be transmit it to the first QMainWindow.
Kindly let me know if any other approach I use for popup selection.
Thanks in advance.[/quote]