Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Why Can't Qt Creator Open Large Files?

Why Can't Qt Creator Open Large Files?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
4 Posts 3 Posters 1.3k 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.
  • I Offline
    I Offline
    Ibrahim
    wrote on last edited by
    #1

    Hi; I'm using Qt Creator and Sublime Text 3. I got a large cpp file of 1.571.851 lines. If I'm trying open this file with Sublime Text 3, it's opening: Gif Link. If I'm trying open this file with Qt Creator, I get this message:
    alt text
    When I click 'Yes' button, Qt Creator is slowing and it's freezing.
    Why can't Qt Creator open large files? Thanks.

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

      Hi,

      What version of Qt Creator are you using ?

      One main difference between Sublime Text and Qt Creator, Qt Creator create a code model for your file which means it parses all the files and tries to get all information about what if finds between variables, methods, includes etc. which Sublime doesn't.

      On a side note, such a big .cpp is pretty uncommon, what do you have in there that requires that much code ?

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

      I 1 Reply Last reply
      2
      • I Ibrahim

        Hi; I'm using Qt Creator and Sublime Text 3. I got a large cpp file of 1.571.851 lines. If I'm trying open this file with Sublime Text 3, it's opening: Gif Link. If I'm trying open this file with Qt Creator, I get this message:
        alt text
        When I click 'Yes' button, Qt Creator is slowing and it's freezing.
        Why can't Qt Creator open large files? Thanks.

        aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi @Ibrahim, Creator does not just open and display the file, it runs a code parser over it. And indeed, for a 45 MB CPP file this may be slow.

        Why do you need to open it anyway? I guess this file is generated and should not be edited by hand.

        Qt has to stay free or it will die.

        1 Reply Last reply
        1
        • SGaistS SGaist

          Hi,

          What version of Qt Creator are you using ?

          One main difference between Sublime Text and Qt Creator, Qt Creator create a code model for your file which means it parses all the files and tries to get all information about what if finds between variables, methods, includes etc. which Sublime doesn't.

          On a side note, such a big .cpp is pretty uncommon, what do you have in there that requires that much code ?

          I Offline
          I Offline
          Ibrahim
          wrote on last edited by
          #4

          @SGaist and @aha_1980 thanks.

          What version of Qt Creator are you using ?

          Qt Creator 4.4.1

          what do you have in there that requires that much code ?

          This is just a test.

          Why do you need to open it anyway?

          Just a test.

          Note: Qt Creator is opening files of 50.000 lines quickly.

          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