Welcome to the Project Developers' Table

Moderator: Rathinagiri

User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

Re: Welcome to the Project Developers' Table

Post 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.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Rathinagiri
Posts: 5482
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Welcome to the Project Developers' Table

Post 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.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

Re: Welcome to the Project Developers' Table

Post 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.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Rathinagiri
Posts: 5482
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Welcome to the Project Developers' Table

Post by Rathinagiri »

Thanks Roberto.

I will proceed and implement some of the properties one by one.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
dhaine_adp
Posts: 457
Joined: Wed Aug 06, 2008 12:22 pm
Location: Manila, Philippines

Re: Welcome to the Project Developers' Table

Post 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
Attachments
Grid-08272010.zip
(14.12 KiB) Downloaded 154 times
Regards,

Danny
Manila, Philippines
User avatar
dhaine_adp
Posts: 457
Joined: Wed Aug 06, 2008 12:22 pm
Location: Manila, Philippines

Re: Welcome to the Project Developers' Table

Post 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. :cry:

The good thing is that we all learned QT first hand from our great professor Mr. Lopez. :D

Regards,

Danny
Regards,

Danny
Manila, Philippines
User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

Re: Welcome to the Project Developers' Table

Post 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. :cry:

The good thing is that we all learned QT first hand from our great professor Mr. Lopez. :D

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 )
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

Re: Welcome to the Project Developers' Table

Post 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.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
sudip
Posts: 1456
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: Welcome to the Project Developers' Table

Post by sudip »

Thanks a lot. :)
With best regards,
Sudip
User avatar
Rathinagiri
Posts: 5482
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Welcome to the Project Developers' Table

Post by Rathinagiri »

So, now, no event installers required. Only calling connect method is enough. That is nice. :)
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Post Reply