Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. When a Qlabel is mouse clicked is a signal generated?
Qt 6.11 is out! See what's new in the release blog

When a Qlabel is mouse clicked is a signal generated?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 5.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DrGreg
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lyuts
      wrote on last edited by
      #2

      Maybe you need this signal

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

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

      1 Reply Last reply
      0
      • T Offline
        T Offline
        TobbY
        wrote on last edited by
        #3

        you can use mouse press event.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          TobbY
          wrote on last edited by
          #4

          "Your text to link here...":http://popdevelop.com/2010/05/an-example-on-how-to-make-qlabel-clickable/

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved