Pritpal Bedi escreveu:
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.

Hi Pritpal,

I can do more tests tomorrow or more later (i have a reunion in few hours).

My tests are with Visual C++ 9.0 and 10.0. See my message for Massimo.

My next step is a clean compilation of the Harbour sources with both compilers (9.0 and 10.0) and Qt 4.6.0-rc1. After, i will try the change related with the function qFindChild.


Regards,
Marcos Gambeta

_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to