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. How do hyperlinks change color and remove underline? It didn't work with setStyleSheet
Forum Updated to NodeBB v4.3 + New Features

How do hyperlinks change color and remove underline? It didn't work with setStyleSheet

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 213 Views
  • 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
    duncan98
    wrote on last edited by
    #1

    hi,How do hyperlinks change color and remove underline? It didn't work with QLabel::setStyleSheet

    ui->label->setStyleSheet("text-decoration:none;color:#FFFFFF");
    
    1 Reply Last reply
    0
    • SamurayHS Offline
      SamurayHS Offline
      SamurayH
      wrote on last edited by
      #2

      The style sheets are overwritten by the HTML attributes. Switch to source mode and use them instead:

      alt text

      And here's your result:

      alt text

      "قال رسول الله صلى الله عليه وسلم : " أحب الناس إلى الله أنفعهم للناس

      1 Reply Last reply
      1

      • Login

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