July 28, 2010

DrGreg DrGreg
Lab Rat
9 posts

When a Qlabel is mouse clicked is a signal generated?

 

I have a qlabel which is underlined to look like a weblink and I would like to catch/tell when the user clicks on it. Is there a signal generated when this happens – I read through the documentation and I don’t see one. If no signal is generated, how do I detect the user clicking the label?

thanks – greg

3 replies

July 28, 2010

lyuts lyuts
Lab Rat
164 posts

Maybe you need this signal

  1. void QLabel::linkActivated ( const QString & link )   [signal]

 Signature 

I’m a rebel in the S.D.G.

June 25, 2011

TobbY TobbY
Lab Rat
178 posts

you can use mouse press event.

 Signature 

Code Code Code

June 25, 2011

TobbY TobbY
Lab Rat
178 posts

Your text to link here… [popdevelop.com]

 Signature 

Code Code Code

 
  ‹‹ some problems of using opengl es in qt      [Moved] QtOpenGL/Qt3D without shaders do not work (intel i915) / partial fix ››

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