Page 13 of 106
Re: Welcome to the Project Developers' Table
Posted: Fri Aug 27, 2010 2:32 am
by Roberto Lopez
rathinagiri wrote:Now, can't we have like this?
oAction := QAction():New(oMenu1:addAction_1( "new.png" , "&New" ))
I must create new binaries with updated sources with today's changes to HBQT to test it.
Re: Welcome to the Project Developers' Table
Posted: Fri Aug 27, 2010 4:26 am
by Rathinagiri
Hi friends,
I have uploaded some basic functionalities of grid control.
Are there anybody working on this control? or Shall I proceed further?
Roberto, please guide me in this regard.
Re: Welcome to the Project Developers' Table
Posted: Fri Aug 27, 2010 2:05 pm
by Roberto Lopez
rathinagiri wrote:Hi friends,
I have uploaded some basic functionalities of grid control.
Are there anybody working on this control? or Shall I proceed further?
Roberto, please guide me in this regard.
Please, go on...
Since Danny has done some research about grid already, he could help you.
Re: Welcome to the Project Developers' Table
Posted: Fri Aug 27, 2010 2:21 pm
by Rathinagiri
Thanks Roberto.
I will proceed and implement some of the properties one by one.
Re: Welcome to the Project Developers' Table
Posted: Fri Aug 27, 2010 4:35 pm
by dhaine_adp
I will proceed and implement some of the properties one by one.
Hi Rathi,
Please review this grid Test. Also I attached a modified demo_1.prg and modified hmg.ch. The grid source is also attached. If the grid covers the mainmenu please change the col on demo_1.prg to 30. In my early test it seems that the control class needs to be modified or maybe its corrected already. I think on :X() and :Y()
Perhaps it would help...
Regards,
Danny
Re: Welcome to the Project Developers' Table
Posted: Fri Aug 27, 2010 8:35 pm
by dhaine_adp
Hi All,
Has anyone already found a solution about the QTObject that returns a pointer instead of value? It is also my problem in grid, when I tried to get the value it returns a pointer valtype() = "P". You can see that problem with the grid test on my previous post. I was trying to get the value from two cells but it returns a pointer.
The good thing is that we all learned QT first hand from our great professor Mr. Lopez.
Regards,
Danny
Re: Welcome to the Project Developers' Table
Posted: Fri Aug 27, 2010 10:59 pm
by Roberto Lopez
dhaine_adp wrote:Hi All,
Has anyone already found a solution about the QTObject that returns a pointer instead of value? It is also my problem in grid, when I tried to get the value it returns a pointer valtype() = "P". You can see that problem with the grid test on my previous post. I was trying to get the value from two cells but it returns a pointer.
The good thing is that we all learned QT first hand from our great professor Mr. Lopez.
Regards,
Danny
Yes.
The sample was provided by HBQT author (Pritpal).
:addaction QMenu method returns a pointer.
This sample creates an object from it using :from method (available for all widgets):
Code: Select all
oMenu1 := QMenu():new()
oMenu1:setTitle( "&File" )
oAct := QAction():from( oMenu1:addAction_1( "new.png" ,
"&New" ) )
oAct:connect( QT_EVE_TRIGGERED_B, {|w,l| FileDialog( "New" , w,
l ) } )
oMenuBar:addMenu( oMenu1 )
oWnd:setMenuBar( oMenuBar )
Re: Welcome to the Project Developers' Table
Posted: Sat Aug 28, 2010 9:34 pm
by Roberto Lopez
Hi Team,
I've commited changes to almost all sources to change to the new way for events and slots in HBQT.
Please, do a clean checkout prior to commit again to avoid collisions.
Thanks.
Re: Welcome to the Project Developers' Table
Posted: Sun Aug 29, 2010 2:16 am
by sudip
Thanks a lot.

Re: Welcome to the Project Developers' Table
Posted: Sun Aug 29, 2010 6:11 am
by Rathinagiri
So, now, no event installers required. Only calling connect method is enough. That is nice.
