Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
Quoted
Originally posted by restiz
Hello, i'm new in this community, my ask is the next
I'm have two forms, in one the users introduce a date with the class QDateEdit then, the user's click on a push button and he goes to a second form, when the user do click in the first from, the date store pass to second form how to qstring, i'm know transform the control qdate to qstring, but, i don't know how pass the variable that contain the date (qstring) to the second form, how i did this?
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 |
void fcn(void) {
.....
.....
if (m_formOne->exec()) {
QString strData = m_formOne->getMyData(); /* your own method */
m_formTwo->setMyData(strData); /* your own method */
if (m_formTwo->exec()) {
....
}
}
}
|