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. So, how to display BIG text file like running log files by Qt ?
Forum Updated to NodeBB v4.3 + New Features

So, how to display BIG text file like running log files by Qt ?

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 731 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.
  • cyberpunkerC Offline
    cyberpunkerC Offline
    cyberpunker
    wrote on last edited by aha_1980
    #1

    Re: Qt's QTextEdit has big memory leak problem

    Both QTextEdit and QPlainTextEdit assumpt large memory and do not release , that can't be acceptable .

    JonBJ 1 Reply Last reply
    0
    • cyberpunkerC cyberpunker

      Re: Qt's QTextEdit has big memory leak problem

      Both QTextEdit and QPlainTextEdit assumpt large memory and do not release , that can't be acceptable .

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

      @cyberpunker
      If I were you I would stick to talking about/resolving your memory issues in the original thread, not re-start that here.

      For your question here: if you have a big file then you might like to implement a "paging" mechanism. Only read a certain amount from the file to display in a QTextEdit. React to "scroll down" event to read more in only when necessary. That's what lots of apps would do. You could also dispose of the earlier stuff too, react to "scroll up" by rereading too, though that's a touch harder.

      cyberpunkerC 1 Reply Last reply
      3
      • JonBJ JonB

        @cyberpunker
        If I were you I would stick to talking about/resolving your memory issues in the original thread, not re-start that here.

        For your question here: if you have a big file then you might like to implement a "paging" mechanism. Only read a certain amount from the file to display in a QTextEdit. React to "scroll down" event to read more in only when necessary. That's what lots of apps would do. You could also dispose of the earlier stuff too, react to "scroll up" by rereading too, though that's a touch harder.

        cyberpunkerC Offline
        cyberpunkerC Offline
        cyberpunker
        wrote on last edited by
        #3

        @JonB

        thanks

        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