kemp
2nd October 2006, 12:30
Hi!
I have trouble porting code from qt3 to qt4.
int i = m_pWorkspace->windowList().find( m_pWorkspace->activeWindow()).indexof;
//error C2440: 'initializing' : cannot convert from 'QList<T>::iterator' to 'int'
QWidget* w = m_pWorkspace->windowList().at( ++i );
if ( w ) w->setFocus();
I don't know how to get an int index.
Please help.
Thank you.
I have trouble porting code from qt3 to qt4.
int i = m_pWorkspace->windowList().find( m_pWorkspace->activeWindow()).indexof;
//error C2440: 'initializing' : cannot convert from 'QList<T>::iterator' to 'int'
QWidget* w = m_pWorkspace->windowList().at( ++i );
if ( w ) w->setFocus();
I don't know how to get an int index.
Please help.
Thank you.