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. textBrowser

textBrowser

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 3 Posters 774 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    I must write in textBrowser a string in bold and then append an other string but not bold, how I can do?

    1 Reply Last reply
    0
    • hooanghiepH Offline
      hooanghiepH Offline
      hooanghiep
      wrote on last edited by
      #2

      Text { text: "Hello"; font.weight: Font.Bold }

      ? 1 Reply Last reply
      0
      • hooanghiepH hooanghiep

        Text { text: "Hello"; font.weight: Font.Bold }

        ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        @hooanghiep said in textBrowser:

        font.weight: Font.Bold }
        it doesn't work

        hooanghiepH jsulmJ 2 Replies Last reply
        0
        • ? A Former User

          @hooanghiep said in textBrowser:

          font.weight: Font.Bold }
          it doesn't work

          hooanghiepH Offline
          hooanghiepH Offline
          hooanghiep
          wrote on last edited by
          #4

          @vale88 QTextBrowser extends QTextEdit.
          use this function: https://doc-snapshots.qt.io/qt5-dev/qtextedit.html#setFontWeight

          1 Reply Last reply
          3
          • ? A Former User

            @hooanghiep said in textBrowser:

            font.weight: Font.Bold }
            it doesn't work

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

            @vale88 https://doc.qt.io/qt-5/qtextedit.html#html-prop
            https://doc.qt.io/qt-5/richtext-html-subset.html

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

            ? 1 Reply Last reply
            1
            • jsulmJ jsulm

              @vale88 https://doc.qt.io/qt-5/qtextedit.html#html-prop
              https://doc.qt.io/qt-5/richtext-html-subset.html

              ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #6

              @jsulm Can I have an example to write rich text?

              ? 1 Reply Last reply
              0
              • ? A Former User

                @jsulm Can I have an example to write rich text?

                ? Offline
                ? Offline
                A Former User
                wrote on last edited by
                #7

                @vale88 I solved

                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