PDA

View Full Version : [SOLVED] getting data from mainwindow



xeroblast
11th December 2010, 05:21
hi,

i have this problem that dont know how to implement it.

i have this mainwindow that have a qtablewidget that you select an item in the qtablewidget and click the button to view its details.

the problem is i dont know how to pass the data from qtablewidget to the newly opened qdialog. i know how to get the data in the qtablewidget but i dont know how to pass it to qdialog.

this is how i open a qdialog..


MainWindow::MainWindow()
{
NewDialog dialog(this);
dialog.exec();
}

xeroblast
11th December 2010, 07:51
answer : http://developer.qt.nokia.com/forums/viewthread/2333/