QLineEdit problem in Qt for Symbian
-
Maybe is useful if you post the code.
-
Why are you using two QMainWIndow?
-
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.
-
Why not QDialog?
-
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]
-
Thanks. do you have exampleto make custom QDialog in which I add QListWidget?
-
[quote author="smotiwala" date="1292589598"]Thanks. do you have exampleto make custom QDialog in which I add QListWidget?[/quote]
It's basically the same as with a QMainWindow.
-
If it is same as QMainWindow then I guess it will also do the same as QMainWindow and QLineEdit problem persist
-
Don't guess - try :-)
Never heard of a closed QDialog that does not transfer keyboard focus back to its calling form. -
Ok i'll try it. Thanks:)