Hi Pritpal and All,

Can we somehow solve it to not require the use 
of QT_PTROF() when passing HBQT object references 
to other HBQT objects?

IMO this macro makes .prg programming more cryptic 
than necessary, and the whole code looks a little 
bit unusual and difficult to type.

Is it possible that low level code check for 
object type, class and extract this :pPtr 
member automatically?

so instead of this:
---
   oDA    := QWidget():new( QT_PTROF( oWnd ) )
   oWnd:setCentralWidget( QT_PTROF( oDA ) )

   oSBar  := QStatusBar():new( QT_PTROF( oWnd ) )
   oWnd:setStatusBar( QT_PTROF( oSBar ) )
   oSBar:showMessage( "Harbour-QT Statusbar Ready!" )
---

one could write this:
---
   oDA    := QWidget():new( oWnd )
   oWnd:setCentralWidget( oDA )

   oSBar  := QStatusBar():new( oWnd )
   oWnd:setStatusBar( oSBar )
   oSBar:showMessage( "Harbour-QT Statusbar Ready!" )
---

Brgds,
Viktor

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

Reply via email to