QTableView in PPTX(Power Point) ..
-
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?
@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? -
@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? -
@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.
-
@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.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.
-
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.
@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 -
@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 -
@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.
-
@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. -
@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.
@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.htmlNote 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. -
@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.htmlNote 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. -
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.
@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.