Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Forum Updated on Feb 6th

    Solved URL Link don't open in QLabel

    General and Desktop
    2
    2
    1162
    Loading More Posts
    • 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.
    • A
      ARASHz4 last edited by

      Hi
      I create a URL link in QLabel with HTML

      <a href="http://address.com">URL text</a>
      

      But URL don't open with browser

      1 Reply Last reply Reply Quote 0
      • M
        mostefa last edited by mostefa

        Hi @ARASHz4

        You have just to set OpenExtraLink property to true

        yourLabel->setOpenExternalLinks(true);
        

        http://doc.qt.io/qt-5/qlabel.html#openExternalLinks-prop

        1 Reply Last reply Reply Quote 2
        • First post
          Last post