I have read abowt QMap and it is exactly what i want)
But here is a problem:
void MainWindow
::textChanged(QString textch
) {
//At first we are finding index of our element
int lineidx = tabWidget->currentIndex();
//Then adding item in QMap using lineidx varieble as key and textch as value (maybe i do something wrong because after qDebug()<< linemap.value(index); it returns nothing!
linemap[lineidx]= textch;
}
void MainWindow::textChanged(QString textch)
{
//At first we are finding index of our element
int lineidx = tabWidget->currentIndex();
//Then adding item in QMap using lineidx varieble as key and textch as value (maybe i do something wrong because after qDebug()<< linemap.value(index); it returns nothing!
linemap[lineidx]= textch;
}
To copy to clipboard, switch view to plain text mode
What wrong??
Bookmarks