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. Which gives better performance for rich text editor
Forum Updated to NodeBB v4.3 + New Features

Which gives better performance for rich text editor

Scheduled Pinned Locked Moved Solved General and Desktop
qtextdocumentqtexteditqplaintextediteditortext
3 Posts 2 Posters 1.5k 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.
  • R Offline
    R Offline
    remizero
    wrote on last edited by
    #1

    Hi everybody, I've been quite out of these places hehe

    I have been researching to make a custom text editor to group some projects I have developed separately, rather than all code generation.

    But I've got some details that have me a little confused.

    I've gotten to do my homework, there are basically classes
    QTextDocument
    QTextEdit
    QPlainTextEdit

    perhaps there are others that have not seen, but some idea I've reviewed, these three classes are the most repeated.

    Could someone advise me which of these three classes work to develop a rich text editor

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome
      Well this person used QTextEdit
      http://www.hobrasoft.cz/en/blog/bravenec/qt-rich-text-editor

      You could give it a spin and see how fast it is.

      Im not sure u can say which is fastest as the engine for rich text is the same.

      1 Reply Last reply
      0
      • R Offline
        R Offline
        remizero
        wrote on last edited by
        #3

        I have elucidated the dilemma regarding the doubt raised.

        First and foremost, I was confusing two concepts, TextEdit and TextDocument for the first contains the second, although they can be used interchangeably on any widget.

        On the other hand, I prefer QTextEdit, it has more features and is more versatile than QPlainTextEdit for creating a text editor and so investigated have equal performance in terms of resources used.

        I leave this reflection or as a solution in case someone is presented with any questions regarding this topic.

        1 Reply Last reply
        1

        • Login

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