QAxObject is a class from the Qt Toolkit which provides a QObject that wraps a COM object.
Questions tagged [qaxobject]
30 questions
3
votes
3 answers
Qt ActiveX data types
I am developing a C++/Qt application that communicates with an ActiveX server.
I try to use a function that returns a reference to an array of floats as a parameter. The function prototype is:
Frequencies([in, out] SAFEARRAY(float)*)
My code…

Maxbester
- 2,435
- 7
- 42
- 70
2
votes
2 answers
How to Apply a color to excel cell using Qt?
I am new to Qt . I have written a program to read and write datas from excel file.
void Excel::Color(const QString& Sheet_Name,const QString& cell,const QString& color_Name) {
QAxObject* Worksheet =…

Dev
- 127
- 2
- 8
2
votes
1 answer
How to set value in a cell using QtActive
i am trying to put the values into an excel sheet through QtActive's QAxObject. i succeeded upto getting a work sheet. Now the win32 API to set the value for a cell is
Some_Excel_Object xx=worksheet->Cells();
xx->item[row][column] = 5;
Here i got…

prabhakaran
- 5,126
- 17
- 71
- 107
2
votes
1 answer
Prevent application crash when excel is not installed while writing qt activex excel read/write codes
I'm using Qt activex (QAxObject) in order to read/write excel files.
QAxObject* excel = new QAxObject( "Excel.Application", 0 );
QAxObject* workbooks = excel->querySubObject( "Workbooks" );
QAxObject* workBook = workbooks->querySubObject("Open(const…

Mosi
- 1,178
- 2
- 12
- 30
2
votes
2 answers
Qt ActiveX QAxObject format Excel cell comment
I would like to format an Microsoft Excel 2010 cell comment (e.g. change font, boldness, ..)
using Qt 5.
I can add an comment to a cell using the following code:
QAxObject* cellRange = m_activeWorksheet->querySubObject("Cells(int, int)", row,…

Michael Hilbert
- 246
- 1
- 4
- 11
2
votes
1 answer
QAxObject -- not creating excel in right format
I am working with QAxObject and able to open existing file & read different sheets & cells.
But when i am creating a new excel file using QAxObject. It is creating the test_1.xls file.
But when i open this file it gives me error. I am using…

Katoch
- 2,709
- 9
- 51
- 84
2
votes
1 answer
How get cell hyperlink address from Excel?
To read text from cell I use this:
QAxObject *e = new QAxObject("Excel.Application");
QAxObject *wbooks = e->querySubObject("Workbooks");
QAxObject *wbook = wbooks->querySubObject("Open(const QString&)", "somefile.xls");
QAxObject *s =…

Nineduck
- 23
- 2
2
votes
1 answer
QThread doesn't start
Sorry for the length of this post. But I am stuck for two days now....
I am working on a Qt 4.6 Windows application that communicates with a hardware device through ActiveX.
When I send a command, the device does some stuff and when it's done (can…

Maxbester
- 2,435
- 7
- 42
- 70
1
vote
1 answer
Export PDF file from Excel template with Qt and QAxObject
The project I am currently working on is to export an Excel file to PDF.
The Excel file is a "Template" that allows the generation of graphs. The goal is to fill some cells of the Excel file so that the graphs are generated and then to export the…

falcon
- 51
- 8
1
vote
0 answers
Is it possible to chain nested commands within QAxObject?
I am wondering if is it possible to do some chaining of commands/actions inside the QAxObject.
For example to change the Cell color in Excel, I need to do something like this:
QAxObject* cell =…

lucky62
- 169
- 7
1
vote
1 answer
QT Change color of cell content in excel
How to change color of a cell content in an excel sheet in QT?
I know we can change background of a cell , change font of cell contents, change style of cell content.
For ex :
QAxObject *fontproperty =…

Sapna Kumari
- 33
- 6
1
vote
1 answer
How to read Internet header of and email in outlook
I try to read an email Internet headers that we can view it in email properties in outlook app
I ask if there is an option so I can get this I use this code to read the emails in outlook
Outlook::Application outlook;
if (!outlook.isNull())
{
…

user7179690
- 1,051
- 3
- 17
- 40
1
vote
0 answers
connect Qt and Matlab via ActiveX
I have connected Qt to Matlab via ActiveX. So, now I can execute scripts which is written in Qt GUI. However I have faced to problems. How do I know that user closed Matlab manually by clicking close button? Sometimes I send scripts with…

lnk
- 593
- 2
- 11
- 27
1
vote
2 answers
(Qt) QAxObject: Add Excel worksheet
I have a Qt application working with Excel, and I want to add a worksheet to a document. The simpliest solution is just call
QAxObject *sheets = workbook->querySubObject("Worksheets");
sheets->dynamicCall("Add()");
But this way you'll add a sheet…

Kirill Yurchenko
- 63
- 1
- 5
1
vote
0 answers
How to call function from COM correctly in QT?I
I want to call a function from COM like this:
long func(int count,Variant *buffer);
Programmers should allocate float array and deliver the pointer and length to function func.
What I do is like this:
QAxobject myCom;
float[1024]…

huaxz1986
- 135
- 1
- 1
- 6