In Qt 4.8 MS Excel ActiveX control in QWidget has no Ribbon for data formatting

391 Views Asked by At

I am trying to open a MS Excel workbook in my qt widget. With the following code I can successfully open the workbook in my qt application. I am using QAxWidget embedded in a QWidget.

     QAxWidget *excel=new QAxWidget;
     QWidget *mainWidget=new QWidget;
     QHBoxLayout *hbox=new QHBoxLayout;
     hbox->addWidget(excel);
     mainWidget->setLayout(hbox);
     excel->setProperty("Visible", true);
     mainWidget->show();
     excel->setControl("C:\\active\\excel.xlsx");

Here is my output:- enter image description here

My Question:

As it is clear from the above output excel workbook is open to view and edit cells but I want to show office Ribbon and Tabs for formatting the workbook. How to show Ribbon/Formatting UI Controls so I can do formatting on the workbook?

0

There are 0 best solutions below