Hi,
with this code I can open PowerPoint files (.ppt or .pptx)

Qt Code:
  1. FullScreen::FullScreen(QWidget *parent) :
  2. QMainWindow(parent),
  3. ui(new Ui::FullScreen)
  4. {
  5. ui->setupUi(this);
  6.  
  7. QString file_ppt = "C:\\aaa.pptx";
  8.  
  9. // Open parameter
  10. QList<QVariant> param_list;
  11. param_list.append(file_ppt);
  12. param_list.append(1);
  13. param_list.append(0);
  14. param_list.append(0);
  15.  
  16. // Make a object PPT
  17. QAxWidget *obj_ppt = new QAxWidget("Powerpoint.Application", this->ui->slides);
  18. obj_ppt->setGeometry(QRect(0,0,800,600));
  19.  
  20. if(!obj_ppt->setControl("{91493441-5A91-11CF-8700-00AA0060263B}"))
  21. {
  22. QMessageBox::critical(this, trUtf8("Error PPT"), "Install Microsoft Power Point (R) for the support PPT!");
  23. }
  24.  
  25. // Open a template file
  26. QAxObject *presentations = obj_ppt->querySubObject("Presentations");
  27. QAxObject *presentation = presentations->querySubObject("Open(const QString&,int,int,int)", param_list);
  28.  
  29. // Start the slides
  30. QAxObject *slideshow = presentation->querySubObject("SlideShowSettings");
  31. slideshow->setProperty("RangeType", "ppShowAll");
  32. slideshow->dynamicCall("run()");
  33. }
To copy to clipboard, switch view to plain text mode 

What I want to obtain, is to show the slide into object QAxWidget called ui->slides centered in my form.
Instead I get to open the my form with a black rectangle of 800x600 pixels and a full screen slide out of the my form.
Someone can help me understand where I'm wrong?
Thanks.
blackout69