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. Can we mark a text in QTextEdit as hyperlink
Forum Updated to NodeBB v4.3 + New Features

Can we mark a text in QTextEdit as hyperlink

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 3.9k Views 2 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.
  • Q Offline
    Q Offline
    Qt Enthusiast
    wrote on last edited by
    #1

    Can we mark a text in QTextEdit as hyperlink (a word) in QTextEdit as hyperlink and clicking on that hyperlink should invoke some action

    J.HilkJ 1 Reply Last reply
    0
    • Q Qt Enthusiast

      Can we mark a text in QTextEdit as hyperlink (a word) in QTextEdit as hyperlink and clicking on that hyperlink should invoke some action

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      @Qt-Enthusiast
      hi,

      take a look here

      This should help you :-)


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      3
      • Q Offline
        Q Offline
        Qt Enthusiast
        wrote on last edited by
        #3

        there is no slot for connection to the same

        jsulmJ 1 Reply Last reply
        0
        • Q Qt Enthusiast

          there is no slot for connection to the same

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Qt-Enthusiast What do you want to connect to what?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          mrjjM 1 Reply Last reply
          2
          • jsulmJ jsulm

            @Qt-Enthusiast What do you want to connect to what?

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @jsulm
            I think he dreams about something like
            QTextBrowser::anchorClicked()

            One way that might work is mouse events ( for Pos) and
            QTextEdit::anchorAt()
            http://doc.qt.io/qt-5/qtextedit.html#anchorAt

            But im only guessing :)

            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