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. Indentation guidelines in a QPlainTextEdit
Forum Updated to NodeBB v4.3 + New Features

Indentation guidelines in a QPlainTextEdit

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 658 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.
  • F Offline
    F Offline
    Fuchsiaff
    wrote on last edited by
    #1

    So, I'm in the process of writing my own IDE and I've came across this problem:
    How do I draw indentation guidelines on my QPlainTextEdit like PyCharm does it here: 0_1546606172150_eca8a8ad-4c69-4b22-a20a-30384f70db6b-image.png

    I'm looking for a clue on where to start, any help would be appreciated! (I'm writing this IDE using PyQt5, not Qt5)

    1 Reply Last reply
    0
    • Ni.SumiN Offline
      Ni.SumiN Offline
      Ni.Sumi
      wrote on last edited by
      #2

      May be, you are looking for this !

      setViewPortMargins

      1 Reply Last reply
      0
      • F Offline
        F Offline
        Fuchsiaff
        wrote on last edited by
        #3

        That's just the margins, I need to somehow draw those lines on that editor without making the editor unusable

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          You might want to take a look at KDE's KTextEditor which provides the features you are looking to implement.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          4

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved