David Arturo Macias Corona wrote:
> 
> Compiling hbqtgui fail with QWidget.cpp, as expected, with:
> ----------------------
> gcc   -I. -I../../../../../../include -Zomf -Wall -W -O3
> -DHB_LEGACY_TYPES_OFF  -IE:\qt4\include -IE:\qt4\include/QtCore
> -IE:\qt4\include/QtGui -DHB_FM_STATISTICS_OFF -oQWidget.o -c
> ../../../QWidget.cpp
> ../../../QWidget.cpp: In function 'void
> HB_FUN_QT_QWIDGET_ACCESSIBLEDESCRIPTION()':
> ../../../QWidget.cpp:196: error: 'class QWidget' has no member named
> 'accessibleDescription'
> ../../../QWidget.cpp: In function 'void
> HB_FUN_QT_QWIDGET_ACCESSIBLENAME()':
> ../../../QWidget.cpp:204: error: 'class QWidget' has no member named
> 'accessibleName'
> ../../../QWidget.cpp: In function 'void
> HB_FUN_QT_QWIDGET_SETACCESSIBLEDESCRIPTION()':
> ../../../QWidget.cpp:968: error: 'class QWidget' has no member named
> 'setAccessibleDescription'
> ../../../QWidget.cpp: In function 'void
> HB_FUN_QT_QWIDGET_SETACCESSIBLENAME()':
> ../../../QWidget.cpp:976: error: 'class QWidget' has no member named
> 'setAccessibleName'
> make[1]: *** [QWidget.o] Error 1
> ----------------------
> 

It means all plugin features are disabled in OS2 build.
I will comment them out with next commit.





> and hbqtgui.lib build entirely
> 

Yep, this is what I was expecting.



> So you can:
> - drop QInputContext alltogether.
> - Guard *Accessible* methods for OS/2 and
>     #ifndef QT_NO_ACCESSIBILITY / #endif
>   while "dummy QAccessible implementation in 4.6.1" can be completed
> 

Scheduled for next commit, already.



> Trying to use hbqt* libs with samples/projects:
> ( All tests with Harbour 13976 )
> 
> demoqt.prg
> ==========
> - It build fine
> - Running it, create a small window with a three colors icon on it and
> crash with (output is mixed 1,2):
> Called from QT_QWIDGET_RESIZE(0)
> Called from QMAINWINDOW:RESIZE(0) in ../../../TQWidget.prg
> Called from MAIN(141) in demoqt.prg
> 

Strange. Why :resize() is failing here as this call is made for 
all other demos as well. Investigating...



> demoxbp.prg
> ==========
> - It build fine
> - Running it, create a big window with a three colors icon on it and
> crash with (output is mixed 1,2):
> ----------------------
> Called from QPIXMAP:SCALED(0) in ../../../TQPixmap.prg
> Called from XBPSTATUSBAR:SETPOINTER(0) in ../../../xbpwindow.prg
> Called from BUILD_STATUSBAR(531) in demoxbp.prg
> Called from BUILDADIALOG(168) in demoxbp.prg
> Called from _BUILDADIALOG(107) in demoxbp.prg
> Called from MAIN(98) in demoxbp.prg
> 

So it means QPixmap class is also broken in OS builds.
Report these to netlabs, maybe they already know it.



> demoqt.prg
> ==========
> - Build fine
> - Open a window with content
> - Maximize beyond of desktop size
> - Fx keys seem to work
> - Output from 1,2 are:
> ----------------------
> QPainter::begin: Paint device returned engine == 0, type: 1
> QPainter::begin: Paint device returned engine == 0, type: 1
> QPainter::begin: Paint device returned engine == 0, type: 1
> QFont::setPointSize: Point size <= 0 (0), must be greater than 0
> QPainter::begin: Paint device returned engine == 0, type: 1
> QFont::setPointSize: Point size <= 0 (0), must be greater than 0
> QPainter::begin: Paint device returned engine == 0, type: 1
> QFont::setPointSize: Point size <= 0 (0), must be greater than 0
> QPainter::begin: Paint device returned engine == 0, type: 1
> QFont::setPointSize: Point size <= 0 (0), must be greater than 0
> ----------------------
> 

You referred demoqt.prg above also.
Did you run twice the same test ?




> hbide project ( the BIG one ! )
> ===============================
> - Build fine
> - Open a window with content, with a lot of icons, menus, ...
> - Windows resize, max, min, move, ... work fine
> - Many checkboxs, actions work fine
> - Many actions fails, for example "Open"
>   Log file is around 800 lines, here are the bottom (1,2 mixed):
> ----------------------
> THbQtUI.prg:0:HBQ_DBG(): HB_TR_ALWAYS DialogFind           {|o,v|
> o[v]:setWindowTitle(q__tr("DialogFind", "Find and Replace", 0, "UTF8"))}
> THbQtUI.prg:0:HBQ_DBG(): HB_TR_ALWAYS groupBox_2           {|o,v|
> o[v]:setTitle("")}
> THbQtUI.prg:0:HBQ_DBG(): HB_TR_ALWAYS groupBox_3           {|o,v|
> o[v]:setTitle("")}
> idemisc.prg:897:HBIDE_DBG(): HB_TR_ALWAYS C:\dev_sources\vouch\abc.prg
> idemisc.prg:897:HBIDE_DBG(): HB_TR_ALWAYS
> C:\harbour\contrib\hbide\projects\vouch\abc.prg
> 

To supress HBIDE_DBG() message, commentout 
the body of HBIDE_DBG() function in idemisc.prg.
The logs will be bare minimum.



> Called from QT_QDIALOG_EXEC(0)
> Called from QFILEDIALOG:EXEC(0) in ../../../TQDialog.prg
> Called from XBPFILEDIALOG:OPEN(0) in ../../../xbpfiledialog.prg
> Called from IDESOURCESMANAGER:SELECTSOURCE(442) in idesources.prg
> 

It appears QDialog() class is also broken in OS2 builds.
It is also a very important class like QWidget and MUST behave 
properly. I cannot figure out what is the issue. Please 
experiment as

   qMsgBox := QMessageBox():new( qMainWindow )

do it shows up the dialog? If yes, then probably I am 
making sth wrong in XbpFileDialog() class in hbXBP.



> So we have our firsts Harbour+os2gcc442+hbqt+qt461 applications running,
> but with failures still
> 
> We are advancing :-)
> 

Yep, but appears, a little more to go.

Thanks for your inputs.


-----
                 enjoy hbIDEing...
                    Pritpal Bedi 
_a_student_of_software_analysis_&_design_
-- 
View this message in context: 
http://n2.nabble.com/OS-2-Harbour-13976-tp4632138p4645797.html
Sent from the harbour-devel mailing list archive at Nabble.com.
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to