Page 12 of 106
Re: Welcome to the Project Developers' Table
Posted: Wed Aug 25, 2010 5:24 am
by mol
Ricci wrote:mol wrote:I've completed IMAGE class, too.
I only need to clean up code
Marek
Marek, will TIF be included this time?
Regards ... Ricci
I'm afraid it is not possible now, because QT QPixmap class which is used to build hmg.4 Image class, does not support TIFF images.
But, it's possible via plugins. In free time, I'll search for some solutions.
Re: Welcome to the Project Developers' Table
Posted: Wed Aug 25, 2010 11:56 am
by Roberto Lopez
rathinagiri wrote:Thanks Roberto.
What do I do next?

I'm taking care about all containers (tab,mainmenu,toolbar,splitbox), so, excepting that, you can pick any other thing.
Re: Welcome to the Project Developers' Table
Posted: Wed Aug 25, 2010 11:58 am
by Roberto Lopez
mol wrote:Ricci wrote:mol wrote:I've completed IMAGE class, too.
I only need to clean up code
Marek
Marek, will TIF be included this time?
Regards ... Ricci
I'm afraid it is not possible now, because QT QPixmap class which is used to build hmg.4 Image class, does not support TIFF images.
But, it's possible via plugins. In free time, I'll search for some solutions.
I've included qtiff4.dll in the plugins package, perhaps it will work in the same way as other formats, please, try it.
Re: Welcome to the Project Developers' Table
Posted: Wed Aug 25, 2010 1:24 pm
by sudip
Numeric and Date DataType basic handling added to TextBox control.
modified samples/textbox/demo_1.prg
modified source/textbox.prg
I shall change demo_2 and demo_3 of textbox sample after thorough testing.
Regarding changing alignment to TXT_RIGHT for Numeric DataType, I have some doubt whether line no 471 in Control.prg (Alignment method) may have numeric nValue and nAlignment. Please correct me if I am wrong.
Re: Welcome to the Project Developers' Table
Posted: Wed Aug 25, 2010 2:30 pm
by Rathinagiri
I think to get proper HMG compatible textbox we should use QT QValidators combined with or without inputmask.
Re: Welcome to the Project Developers' Table
Posted: Wed Aug 25, 2010 2:53 pm
by sudip
rathinagiri wrote:I think to get proper HMG compatible textbox we should use QT QValidators combined with or without inputmask.
Thanks a lot Rathi. I shall check QValidators.
About the implementation of "Slots" and "Events"
Posted: Thu Aug 26, 2010 8:39 pm
by jparada
Re: About the implementation of "Slots" and "Events"
Posted: Thu Aug 26, 2010 10:56 pm
by Roberto Lopez
This is very important.
Thanks!
Re: Welcome to the Project Developers' Table
Posted: Fri Aug 27, 2010 1:02 am
by Roberto Lopez
mol wrote:I have a little problem.
One of QT functions returns me a pointer. But I need to operate on object.
How to get the object from pointer?
Code: Select all
PointerToImage := ::oQTObject:Pixmap()
Image := <<<< what to do to get object???
Image := Image:ScaledToWidth(::oQTObject:width)
::oQTObject:setPixmap(Image)
I'm facing the same problem with QMenu:AddAction.
I've posted two messages about this in the Harbour users forums and I've not obtained a response yet.
This is a transcription of the messages. Maybe someone here be able to give us some clue:
Hi All,
I've created a simple test menu according demoqt.prg like this:
//
oMenu1 := QMenu():new()
oMenu1:setTitle( "&File" )
QT_SLOTS_CONNECT( s_slots, oMenu1:addAction_1( "new.png" , "&New" ), QT_EVE_TRIGGERED_B, {|w,l| FileDialog( "New" , w, l ) } )
oMenuBar:addMenu( oMenu1 )
oWnd:setMenuBar( oMenuBar )
//
It works fine. The question is how to access to the 'new' menuitem to change its image, check status or disable it after creation.
Thanks in advance.
Roberto Lopez wrote:
> oMenu1:setTitle( "&File" )
> QT_SLOTS_CONNECT( s_slots, oMenu1:addAction_1( "new.png" , "&New" ), QT_EVE_TRIGGERED_B, {|w,l| FileDialog( "New" , w, l ) } )
>It works fine. The question is how to access to the 'new' menuitem to
>change its image, check status or disable it after creation.
I've noted that :addaction is returning a pointer and according QT reference (if I've understood it correctly) it should be a pointer to a QAction object.
The QAction object will allow to me to change menu item properties after creation (my original question).
So, if my assumptions are correct, my problem is how to access to the QAction object from a pointer to it (returned by :addaction).
So, the question is: how to do that.
Thanks in advance.
Regards,
Roberto.
Re: Welcome to the Project Developers' Table
Posted: Fri Aug 27, 2010 1:22 am
by Rathinagiri
Now, can't we have like this?
oAction := QAction():New(oMenu1:addAction_1( "new.png" , "&New" ))