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. [SOLVED] Link underlines the label..

[SOLVED] Link underlines the label..

Scheduled Pinned Locked Moved General and Desktop
6 Posts 4 Posters 4.0k 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.
  • L Offline
    L Offline
    Leon
    wrote on last edited by
    #1

    so this code on a qlabel

    @<html><head/><body><p><a href="“textPassedToLinkActivatedSignal”"><span >hh:mm</span></a></p></body></html>@

    will make the hh:mm underlined even if there is nothing at the stylesheet saying to underline it...
    anyway to remove the underlined line but still make the hh:mm linkable?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      What makes you think that QLabel understands style sheets for formatting rich text? And why do you want to confuse your users by making things that don't look active clickable anyway?

      1 Reply Last reply
      0
      • L Offline
        L Offline
        Leon
        wrote on last edited by
        #3

        [quote author="Andre" date="1360334691"]What makes you think that QLabel understands style sheets for formatting rich text? And why do you want to confuse your users by making things that don't look active clickable anyway?[/quote]

        for example in adroid...
        is the clock underlined? no and its clickable.. ;)

        that meas that there are a lot sircumnstances that u might want a linkable label not underlined..

        so is it something simple, will i be able to do something like this with a custom label ?

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MuldeR
          wrote on last edited by
          #4

          Have you tried:
          @<a href="...">Foobar</a>@

          --

          [EDIT]

          Okay, this board is horribly broken and destroyed my text.

          Please look here:
          http://pastie.org/private/jhnvsem0gnyah5akjx1uq

          My OpenSource software at: http://muldersoft.com/

          Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

          Go visit the coop: http://youtu.be/Jay...

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mlong
            wrote on last edited by
            #5

            bq. is the clock underlined? no and its clickable.. ;)

            Is it really a label you're needing, or is it just a customized QPushButton?

            Software Engineer
            My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

            1 Reply Last reply
            0
            • L Offline
              L Offline
              Leon
              wrote on last edited by
              #6

              [quote author="mlong" date="1360353635"]bq. is the clock underlined? no and its clickable.. ;)

              Is it really a label you're needing, or is it just a customized QPushButton?
              [/quote]

              It is a label....

              [quote author="MuldeR" date="1360351158"]Have you tried:
              @<a href="...">Foobar</a>@

              --

              [EDIT]

              Okay, this board is horribly broken and destroyed my text.

              Please look here:
              http://pastie.org/private/jhnvsem0gnyah5akjx1uq[/quote]

              Works, thank you :)

              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