Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Qt Xlsx problem in compile the project
Forum Updated to NodeBB v4.3 + New Features

Qt Xlsx problem in compile the project

Scheduled Pinned Locked Moved Unsolved 3rd Party Software
14 Posts 2 Posters 6.5k 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.
  • AmrCoderA Offline
    AmrCoderA Offline
    AmrCoder
    wrote on last edited by AmrCoder
    #1

    I try to use Qt Xlsx this library in Qt to extract data from an excel file i follow the steps here to use the library in section of Usage (2)
    I copy the project file src and add it ro Qt .pro file as

    include($$PWD/src/xlsx/qtxlsx.pri)
    

    and use the example code to extract data but i got this 2 error and they point to erro in code of the library !!!

    D:\WorkPlace\c++ Projects\TestExtarctFromXLS\src\xlsx\xlsxzipreader.cpp:51: error: invalid use of incomplete type 'class QVector<QZipReader::FileInfo>'
      QList<QZipReader::FileInfo> allFiles = m_reader->fileInfoList();
      ^
    

    second is

    C:\Qt\Qt5.6.1\5.6\mingw49_32\include\QtCore\qtypeinfo.h:182: error: declaration of 'class QVector<QZipReader::FileInfo>'
     Q_DECLARE_MOVABLE_CONTAINER(QVector);
      ^
    

    so what the problem with my linkage i think the library should works fine with no problem as there are many developer use it before !
    please any one use this library before or have any idea to solve this help me
    iam using Qt 5.6.1 Mingw
    windows 10
    Thanks

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

      Hi,

      Where did you get the code of that module ?

      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
      1
      • AmrCoderA Offline
        AmrCoderA Offline
        AmrCoder
        wrote on last edited by AmrCoder
        #3

        the link I get from is on the page that I follow to use the library I put it in my post from the GitHub, if this, not the right way to get this lib please post the link of the to get the lib

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

          Note that it's not an official Qt module.

          There are several forks of that module, which one are you using ?

          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
          1
          • AmrCoderA Offline
            AmrCoderA Offline
            AmrCoder
            wrote on last edited by
            #5

            I use the one I download it from the link in the post I don't know others

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

              You should rather use a more recent version. Take a look at the fork list.

              Note that it's also written at the top that you need the private headers of the qtbase module for QZipReader and QZipWriter. Do you have them available ?

              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
              2
              • AmrCoderA Offline
                AmrCoderA Offline
                AmrCoder
                wrote on last edited by
                #7

                it compiles ok now when I use it with MSVC not MinGW i don't know why is that ?

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

                  Check the include paths

                  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
                  1
                  • AmrCoderA Offline
                    AmrCoderA Offline
                    AmrCoder
                    wrote on last edited by
                    #9

                    ok, what I try is to find another one on Github I found a one I can use it with shared lib, not module when I compile it with MSVC without start to use it just on link it and it compiles but when I try to run the example I get many undefine references !
                    when I try to use the module with MSVC I get the same error as Mingw mention above

                    1 Reply Last reply
                    0
                    • AmrCoderA Offline
                      AmrCoderA Offline
                      AmrCoder
                      wrote on last edited by
                      #10

                      yes i don't have QZipReader and QZipWriter ok i will try them now Thank you

                      1 Reply Last reply
                      0
                      • AmrCoderA Offline
                        AmrCoderA Offline
                        AmrCoder
                        wrote on last edited by
                        #11

                        ok please can you tell me how to make QZipReader and QZipWriter available

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

                          Did you found the qzipreader_p.h and qzipwriter_p.h ?

                          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
                          0
                          • AmrCoderA Offline
                            AmrCoderA Offline
                            AmrCoder
                            wrote on last edited by
                            #13

                            no what i have is xlsxzipreader_p.h and xlsxzipwriter_p.h
                            I search for Qzip library and i compile it to work alone
                            should I add it to my project to make example work ?
                            if that rigth how to do that please ?

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

                              I meant in your Qt installation.

                              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
                              0

                              • Login

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