Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    Unsolved [QXlsx] How can I close opened document?

    3rd Party Software
    2
    2
    940
    Loading More Posts
    • 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.
    • sdsoldi
      sdsoldi last edited by

      I'm using QXlsx library to open and manage a few excel documents. But when I'm going to open the second one, memory usage is duplicating.

      I'm using a pointer because I need to call from different functions. And the excel size is around 100mb. Memory usage with 1 excel document is 600-700mb of ram. If I try to open the second excel, memory crash around 1000mb.

      I try to delete pointer, or call to ~Document() to destroy. But these last command force end my program.

      If I put delete xlsx;, I can't read excel, change sheet or save. But the memory is still the same and I can't open more excel fields.

      I try these metods to pointer:
      QXlsx::Document* xlsx;
      QPointerQXlsx::Document xlsx;

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        This module is not part of Qt. You should try to take contact with the author of it.

        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 Reply Quote 0
        • First post
          Last post