December 17, 2010

Prajnaranjan Das Prajnaranjan Das
Lab Rat
73 posts

How to view Images

 

I have placed images in QLabel and want to view it larger when I clicks it ……

 Signature 

Prajnaranjan Das

e mail: .(JavaScript must be enabled to view this email address)

9 replies

December 17, 2010

Alexander Kuchumov Alexander Kuchumov
Lab Rat
380 posts

In a new window or resize QLabel?

December 17, 2010

Gerolf Gerolf
Hobby Entomologist
3287 posts

If you want to achieve such things, you have to react on the click, either by sub classing QLabel or by an eventFilter.
If you want to enlarge the label, you can set minimum size etc, otherwise you can create a dialog / top level window or whatever you need there.

 Signature 

Nokia Certified Qt Specialist.
Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

December 17, 2010

Prajnaranjan Das Prajnaranjan Das
Lab Rat
73 posts

thanks for your reply….Can you please give me a link related to keyPress and mousePressEvent or any example for this….

 Signature 

Prajnaranjan Das

e mail: .(JavaScript must be enabled to view this email address)

December 17, 2010

peppe peppe
Ant Farmer
1029 posts

Subclass and override the event handlers. See the QWidget docs for it.

 Signature 

Software Engineer
KDAB (UK) Ltd., a KDAB Group company

December 17, 2010

Prajnaranjan Das Prajnaranjan Das
Lab Rat
73 posts

can you please give me the link…….

 Signature 

Prajnaranjan Das

e mail: .(JavaScript must be enabled to view this email address)

December 17, 2010

VCsala VCsala
Lab Rat
339 posts

QWidget keyPressEvent [doc.qt.nokia.com]

December 17, 2010

VCsala VCsala
Lab Rat
339 posts

Anyway it is always a good starting point to search the documentation

December 17, 2010

VCsala VCsala
Lab Rat
339 posts

Regarding examples: you can download the examples for the book C++ GUI Programming with Qt4, 2nd Edition here [informit.com]. This also can be helpful to learn from practical examples.

December 17, 2010

Deleted Member # 4a2 Deleted Member # 4a2
Ant Farmer
1481 posts
Prajnaranjan Das wrote:
thanks for your reply….Can you please give me a link related to keyPress and mousePressEvent or any example for this….

you can check the scribble example that ships with Qt SDK

also see this [doc.qt.nokia.com]

 
  ‹‹ Packaging extra folder and files in Qt for symbian?      Experimental packages for Symbian development on Linux ››

You must log in to post a reply. Not a member yet? Register here!