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. Diplay big text file content in qplaintext
Qt 6.11 is out! See what's new in the release blog

Diplay big text file content in qplaintext

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 634 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.
  • M Offline
    M Offline
    mastaray
    wrote on last edited by
    #1

    How can i display big textfiles(200MB+ (logfiles)) in a qplaintextedit without big loading delays .
    Is there a lazy loading option or any other approach. I have to use this big file no matter what.

    JonBJ 1 Reply Last reply
    0
    • M mastaray

      How can i display big textfiles(200MB+ (logfiles)) in a qplaintextedit without big loading delays .
      Is there a lazy loading option or any other approach. I have to use this big file no matter what.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @mastaray
      QPlainTextEdit does not supply lazy loading. You have to add it yourself. See https://forum.qt.io/topic/4519/how-do-i-open-large-file-on-qtextedit. Maybe look up QScintilla?

      QPlainTextEdit claims to handle large text files well. Make sure you are not populating it badly per https://stackoverflow.com/questions/32825643/how-to-use-qt-to-read-a-file-and-display-it-quickly.

      1 Reply Last reply
      2

      • Login

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