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. QTextEdit list marker style affected by block style
Qt 6.11 is out! See what's new in the release blog

QTextEdit list marker style affected by block style

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

    When I create a list, e.g.

    1. foo
    2. bar

    and I change the block style of foo, the "1." also changes to match that style.

    Is there a way to prevent that?

    ? 1 Reply Last reply
    0
    • ? A Former User

      When I create a list, e.g.

      1. foo
      2. bar

      and I change the block style of foo, the "1." also changes to match that style.

      Is there a way to prevent that?

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

      @clarify Does anyone know how to work around this bug?

      JonBJ 1 Reply Last reply
      0
      • ? A Former User

        @clarify Does anyone know how to work around this bug?

        JonBJ Online
        JonBJ Online
        JonB
        wrote on last edited by
        #3

        @clarify
        Probably not, but how about showing the HTML it generates?

        ? 1 Reply Last reply
        0
        • JonBJ JonB

          @clarify
          Probably not, but how about showing the HTML it generates?

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

          @JonB
          It's bad HTML. The 2nd and 3rd list items are supposed to be indented.

          <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
          <html><head><meta name="qrichtext" content="1" /><style type="text/css">
          p, li { white-space: pre-wrap; }
          </style></head><body style=" font-family:'PibotoLt'; font-size:12pt; font-weight:400; font-style:normal;">
          <ol type="A" style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Bitstream Charter'; color:#ff0000;">testing</span></li></ol>
          <ol style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 2;"><li style=" color:#00ffff;" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">fubar</li>
          <li style=" color:#00ffff;" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">snafu</li></ol></body></html>
          
          JonBJ 1 Reply Last reply
          0
          • ? A Former User

            @JonB
            It's bad HTML. The 2nd and 3rd list items are supposed to be indented.

            <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
            <html><head><meta name="qrichtext" content="1" /><style type="text/css">
            p, li { white-space: pre-wrap; }
            </style></head><body style=" font-family:'PibotoLt'; font-size:12pt; font-weight:400; font-style:normal;">
            <ol type="A" style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Bitstream Charter'; color:#ff0000;">testing</span></li></ol>
            <ol style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 2;"><li style=" color:#00ffff;" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">fubar</li>
            <li style=" color:#00ffff;" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">snafu</li></ol></body></html>
            
            JonBJ Online
            JonBJ Online
            JonB
            wrote on last edited by
            #5

            @clarify
            Well, originally you said the 1. took on whatever style of the text following it, now you talk about it failing to indent correctly. I was just trying to confirm that whatever style you say it takes --- and you don't say what that is or show the output so it's hard for someone else to judge --- was not somehow around the 1..

            If I am not mistaken, this show two ordered lists, the first being alphabetical with just one item and the second being default (numerical?) with two items.

            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