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. QTableView in PPTX(Power Point) ..
Forum Updated to NodeBB v4.3 + New Features

QTableView in PPTX(Power Point) ..

Scheduled Pinned Locked Moved Unsolved General and Desktop
12 Posts 3 Posters 2.0k 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.
  • P Offline
    P Offline
    Pada_
    wrote on last edited by
    #1

    Anyone to help?
    I want to see the file by including the XML file I have in PPTX (Power Point).

    My XML file contains the coordinates and the size of the QTableView.

    How do I put it in PPTX and display it with the image?

    jsulmJ 1 Reply Last reply
    0
    • P Pada_

      Anyone to help?
      I want to see the file by including the XML file I have in PPTX (Power Point).

      My XML file contains the coordinates and the size of the QTableView.

      How do I put it in PPTX and display it with the image?

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

      @Pada_ said in QTableView in PPTX(Power Point) ..:

      I want to see the file by including the XML file I have in PPTX (Power Point).

      what file?
      "How do I put it in PPTX and display it with the image?" - what does that mean? Where do you want to put it? What do you want to do with that pptx file?
      Can you explain better what you mean?

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

      P 1 Reply Last reply
      2
      • jsulmJ jsulm

        @Pada_ said in QTableView in PPTX(Power Point) ..:

        I want to see the file by including the XML file I have in PPTX (Power Point).

        what file?
        "How do I put it in PPTX and display it with the image?" - what does that mean? Where do you want to put it? What do you want to do with that pptx file?
        Can you explain better what you mean?

        P Offline
        P Offline
        Pada_
        wrote on last edited by
        #3

        @jsulm
        I would like to be able to add QTableView or QWidget to ppt (Power Point).

        When I call QtableView or Qwidget as an Item, I want to put these Items on each page of PPT.

        The PPT (Power Point) will be saved and stored as a file.

        jsulmJ 1 Reply Last reply
        0
        • P Pada_

          @jsulm
          I would like to be able to add QTableView or QWidget to ppt (Power Point).

          When I call QtableView or Qwidget as an Item, I want to put these Items on each page of PPT.

          The PPT (Power Point) will be saved and stored as a file.

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

          @Pada_ "The PPT (Power Point) will be saved and stored as a file" - as ppt?
          Qt does not support Power Point format, if you want to use it you will need to use some library.

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

          P 1 Reply Last reply
          1
          • jsulmJ jsulm

            @Pada_ "The PPT (Power Point) will be saved and stored as a file" - as ppt?
            Qt does not support Power Point format, if you want to use it you will need to use some library.

            P Offline
            P Offline
            Pada_
            wrote on last edited by Pada_
            #5

            @jsulm

            Yes, I would like to save it as a power point.
            The goal of QGraphicsView is to save the items that you play in Power Point and have it as a file.

            Qt does not support Power Point?

            Then you can not even save it, right?

            Can you tell which library to use?

            Oh .. the comment is only one in 10 minutes.

            jsulmJ 1 Reply Last reply
            0
            • P Pada_

              @jsulm

              Yes, I would like to save it as a power point.
              The goal of QGraphicsView is to save the items that you play in Power Point and have it as a file.

              Qt does not support Power Point?

              Then you can not even save it, right?

              Can you tell which library to use?

              Oh .. the comment is only one in 10 minutes.

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

              @Pada_ No, Qt does not support Power Point file format. There are many file formats, Qt can't support everything and Power Point is quite complex.
              Also, I'm not sure why you want to store in this format?
              You should search on the internet for a library which supports Power Point file format.
              Alternative: if Power Point is installed on the same machine you can use ActiveX in your Qt application to access its functionality (I never did it). See http://doc.qt.io/qt-5/activeqt-container.html

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

              P 1 Reply Last reply
              3
              • jsulmJ jsulm

                @Pada_ No, Qt does not support Power Point file format. There are many file formats, Qt can't support everything and Power Point is quite complex.
                Also, I'm not sure why you want to store in this format?
                You should search on the internet for a library which supports Power Point file format.
                Alternative: if Power Point is installed on the same machine you can use ActiveX in your Qt application to access its functionality (I never did it). See http://doc.qt.io/qt-5/activeqt-container.html

                P Offline
                P Offline
                Pada_
                wrote on last edited by
                #7

                @jsulm
                Is it possible to save it in plain XML format and convert it back to the PPTX file format to display the contents in PPTX?

                The end result is that your work with the items is displayed in the PPT file.

                jsulmJ 1 Reply Last reply
                0
                • P Pada_

                  @jsulm
                  Is it possible to save it in plain XML format and convert it back to the PPTX file format to display the contents in PPTX?

                  The end result is that your work with the items is displayed in the PPT file.

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

                  @Pada_ A power Point file can contain things like pictures - how would you convert them to XML?
                  PPTX itself is just a ZIP archiv containing XML files and other stuff like pictures.

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

                  P 1 Reply Last reply
                  2
                  • jsulmJ jsulm

                    @Pada_ A power Point file can contain things like pictures - how would you convert them to XML?
                    PPTX itself is just a ZIP archiv containing XML files and other stuff like pictures.

                    P Offline
                    P Offline
                    Pada_
                    wrote on last edited by
                    #9

                    @jsulm
                    I want to display the text using PPT's table or text, and I want to use the path of the picture as Jpg or png.

                    First of all, I want to test what the text shows in PPT.

                    mrjjM 1 Reply Last reply
                    0
                    • P Pada_

                      @jsulm
                      I want to display the text using PPT's table or text, and I want to use the path of the picture as Jpg or png.

                      First of all, I want to test what the text shows in PPT.

                      mrjjM Offline
                      mrjjM Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on last edited by mrjj
                      #10

                      @Pada_
                      Hi
                      You could try with python
                      https://pypi.org/project/python-pptx/
                      Seems quite nice
                      https://python-pptx.readthedocs.io/en/latest/user/quickstart.html

                      Note im suggesting a python module as the c++ i tried were either commercial
                      like https://products.aspose.com/slides/cpp
                      or for the old (binary) ppt format or simply overwhelming complex to work with being
                      com based.

                      P 1 Reply Last reply
                      2
                      • mrjjM mrjj

                        @Pada_
                        Hi
                        You could try with python
                        https://pypi.org/project/python-pptx/
                        Seems quite nice
                        https://python-pptx.readthedocs.io/en/latest/user/quickstart.html

                        Note im suggesting a python module as the c++ i tried were either commercial
                        like https://products.aspose.com/slides/cpp
                        or for the old (binary) ppt format or simply overwhelming complex to work with being
                        com based.

                        P Offline
                        P Offline
                        Pada_
                        wrote on last edited by
                        #11

                        @mrjj

                        Thanks for the good answer. However, I have to go with C ++ and Qt.

                        As a result, I do not think there is a C ++ PPTX related library.

                        mrjjM 1 Reply Last reply
                        0
                        • P Pada_

                          @mrjj

                          Thanks for the good answer. However, I have to go with C ++ and Qt.

                          As a result, I do not think there is a C ++ PPTX related library.

                          mrjjM Offline
                          mrjjM Offline
                          mrjj
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          @Pada_ said in QTableView in PPTX(Power Point) ..:

                          As a result, I do not think there is a C ++ PPTX related library.

                          Well not outside using com to remote control the PowerPoint app.
                          At least i didnt see any.

                          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