Hi Marcos
Marcos Gambeta wrote: > > I am testing this: > > http://qt.nokia.com/developer/qt-4.6-preview#download-the-qt-4-1 > http://get.qt.nokia.com/qt/source/qt-win-opensource-4.6.0-rc1-vs2008.exe > > And i have problems with hbide+msvc too. > I had added this function in hbqt_destruct.c HB_FUNC( QT_FINDCHILD ) { hb_retptr( ( QObject * ) hbqt_par_QObject( 1 )->findChild< QObject * >( hbqt_par_QString( 2 ) ) ); } and Qt documentation explains that T QObject::findChild ( const QString & name = QString() ) const QListWidget *list = parentWidget->findChild<QListWidget *>(); Warning: This function is not available with MSVC 6. Use qFindChild() instead if you need to support that version of the compiler. and, I tried function qFindChild() but could not succeed. Can you write wrapper to use qFindChild() as such: T qFindChild ( const QObject * obj, const QString & name ) This function is equivalent to obj->findChild<T>(name). It is provided as a work-around for MSVC 6, which doesn't support member template functions. Regards Pritpal Bedi -- View this message in context: http://old.nabble.com/Compile-error-hbide-in-vc9-tp26562623p26562937.html Sent from the Harbour - Dev mailing list archive at Nabble.com. _______________________________________________ Harbour mailing list (attachment size limit: 40KB) [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
