PDA

View Full Version : how to load image from one ui to another



trupti
3rd January 2011, 05:43
Hello,
I have opened an image from phone memory. Now i want to use that image in other ui.
Actually what i want is when i click on that image then next ui should be open with that image only.

My application is for symbian device N98.

Can any one help me???

Thank you in advance....

high_flyer
3rd January 2011, 10:24
From I understand you have already your image in an object, such as a QLabel, or QPixmap.
You can overrider the mousePressEvent() of that object and send a signal from there with your image.
In the other ui form you implement a slot that receives that image.
This case can be used if the ui forms do know about each other.
If at least one of the forms is aware of the other, you can just use an empty signal and get the image over a normal method call.

trupti
3rd January 2011, 11:12
Thanks for reply...
Can you give me sample code or class information to do that.
Actually i m new with it.
So not getting the right way..

And my image is in QPixmap..

high_flyer
3rd January 2011, 11:19
This is a very broad and general question - so I would not know an example to what exactly.
But if you narrow your question down to more specific issues, then we can tackle each issue with code bits.

trupti
3rd January 2011, 12:03
Hello,
I have opened an image from device . Now i want to use that image in other ui.
Actually what i want is when i click on that image then next ui should be open with that image only.
my images are in qpixmap object.

[I moved this from another thread here. please don't cross post]

Added after 16 minutes:

Please help me for my problem.. sorry ..
i m new with it...