Hello, i've a problem with my code design. I've read this manual about QVariant: http://doc.trolltech.com/4.3/qvariant.html
Waht is the diffrent between code1 and code2?
code1:
// do something
return tmp;
}
QString CMainWindow::myFunction( QVariant num ) {
QString tmp;
// do something
return tmp;
}
To copy to clipboard, switch view to plain text mode
code2:
template <class T>
QString CMainWindow
::myFunction( T num
) { // do something
return tmp;
}
template <class T> QString CMainWindow::myFunction( T num ) {
QString tmp;
// do something
return tmp;
}
To copy to clipboard, switch view to plain text mode
Is code1 the same as code2 only in Qt-Style?
so long
jd
Bookmarks