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. When import the stl file very lager such as more than 2GB ,the QMesh will cant load
Qt 6.11 is out! See what's new in the release blog

When import the stl file very lager such as more than 2GB ,the QMesh will cant load

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 2 Posters 1.5k 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.
  • J Offline
    J Offline
    jimfar
    wrote on last edited by A Former User
    #1

    cos the qbytearry size is int and the max size is less than 2.4GB ,when import the file is very lager ,what can i handle it ?

    jsulmJ 1 Reply Last reply
    0
    • J jimfar

      cos the qbytearry size is int and the max size is less than 2.4GB ,when import the file is very lager ,what can i handle it ?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @jimfar Are you using 32bit Qt?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jimfar
        wrote on last edited by
        #3

        no 64bit

        1 Reply Last reply
        0
        • J Offline
          J Offline
          jimfar
          wrote on last edited by
          #4

          btw the resize of qbytearry is int,

          jsulmJ 1 Reply Last reply
          0
          • J jimfar

            btw the resize of qbytearry is int,

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @jimfar I don't think you can handle more than 2GB with QByteArray. You will need to do it differently. Use char* or maybe memory mapped IO (http://doc.qt.io/qt-5/qfiledevice.html#map).

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            1
            • J Offline
              J Offline
              jimfar
              wrote on last edited by
              #6

              the problem is the QBuffer need QByteArray,and i will put the QBuffer into QAttribute ,so i can constuct the QGeometry

              1 Reply Last reply
              0
              • J Offline
                J Offline
                jimfar
                wrote on last edited by
                #7

                i use these api to load my customized mesh parsed from a stl file

                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