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. Line in QTextEdit
Qt 6.11 is out! See what's new in the release blog

Line in QTextEdit

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.4k 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

    Hello,

    I wish to represent a line in a QTextEdit in x position (with a stylesheet ???) to symbolize a page break.

    Have you a idea ?

    Thank you

    1 Reply Last reply
    0
    • BilbonSacquetB Offline
      BilbonSacquetB Offline
      BilbonSacquet
      wrote on last edited by
      #2

      The style sheet approach is not bad, but in this case you have no special tag to 'style'.

      The plugin way is not bad but you have 'just' a character, and of course you haven't like you want a paragraph.

      The only way I see is that you add paragraph containing only a plugin and to take care of the cursor move to avoid the edition of this 'special' text block.

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        You mean create multiple QTextEdit in QScrollArea for example ?

        If that's right, I tried but the management of the number of page when deleting rows, for example is not so easy :)

        Otherwise can you be more specific about your idea?

        In advance thank you

        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