Questions tagged [qaxobject]

QAxObject is a class from the Qt Toolkit which provides a QObject that wraps a COM object.

Documentation can be found here (Qt4) and here (Qt5).

30 questions
1
vote
1 answer

QAxObject Excel sheet -- set default font for entire Excel sheet

I am able to set the size & font of a single cell. QAxObject *range = excelSheet->querySubObject("Cells(int,int)", row, col); range = range->querySubObject("Font"); range->setProperty("Size", 10); range->setProperty("Name", "Arial"); How can i…
Katoch
  • 2,709
  • 9
  • 51
  • 84
1
vote
1 answer

ActiveQt: Activate an already open word document

I am trying to write to an open word document using activeQt. I am trying to activate my word document, but i cant get it to work. I can do this in VBA very easily: Documents("my.doc").Activate but not in Qt, this is what i have…
0
votes
1 answer

Inserting and deleting rows in an excel file with QAxObject

I would like to insert a row to an excel file with QT and QAxObject functions like dynamicCall("insertRow(int)", rowindex). I tried to do it using the code I wrote below, but I am getting an error message. I've read the documentation on QAxobject…
edouchi
  • 1
  • 2
0
votes
0 answers

How to insert image in excel using QAxObject in Qt c++

How to insert image in excel using QAxObject in Qt c++? I am not able to add image in excel using QAxObject in Qt please help if any one is aware of it I tried using : Pixmap pixmap(imagePath); sheet->querySubObject("Cells(int, int)", 2,…
0
votes
0 answers

Use QAxObject to save the data of QTableView as local excel sheets

I need a feature to save the data of qtableview as local excel sheet,i can get data from qtableview,i can make sure that values have been token correctly from qtableview when i step into my 'SetCellValue' function,but they are incorrect in my excel…
Erik.L
  • 56
  • 4
0
votes
1 answer

Instantiation of QAxObject from dumpcpp segfault with minGw C++ -o2 or -o3 flag

Qt version: 5.12.10 I wanted to interface with an application using the COM layer, this application was delivered with a .tlb file so I used Qt's dumpcpp to generate header and source file. To use the generated class, I first get an IUnknown from…
f222
  • 352
  • 2
  • 13
0
votes
0 answers

How get a pointer value in QAxObject with python?

I need use QAxObject to read some PLCdata.I Can connect PLC successful but the problem is that I can't read data from it.The reason in below. class Test(QAxWidget): def __init__(self): super().__init__() …
jett chen
  • 1,067
  • 16
  • 33
0
votes
1 answer

"Undefined reference to QAxObject" in Qt Creator 6.1 with CMake

I'm sure it's probably something simple. I've been trying to find a solution for the whole day and I can't. Help me please! Qt Creator 4.15.1, MinGW 8.1.0 64-bit for C++, CMake 3.19.2 (Using Cmake is a prerequisite) Error_screen I think that the…
Qbit
  • 1
  • 3
0
votes
1 answer

Qt QAxObject - Find Documentation for Excell API/SDK on querySubObject and Cell Properties

I need to integrate my Qt Application with MS Excel, I have created a class that can do the job so well but I have limited knowledge of the variables to include when dealing with the worksheet (querySubObject) and Cell Properties such as borders…
Kyef
  • 69
  • 7
0
votes
1 answer

Count rows for merged cells using QAxObject

I need to read an Excel file with many merged cells. Suppose the first column contains the 'Category' value and the second column contains the 'sub_category' value. The problem is that each category cell might be a merged cell with multiple…
ArashV
  • 74
  • 1
  • 10
0
votes
1 answer

Replacing Field values in Word Document QAxObject QT / C++

I'm really new to QT and I was tasked to update some field values in word document programmatically, currently I can replace text from word document fine, but when that field value is inside an object (table or anything) it's not working, my code…
virusivv
  • 337
  • 2
  • 5
  • 17
0
votes
0 answers

Adding a Notify signal to a Qt property at runtime?

I have some Qt properties and signals that are generated at runtime and I want to link them as if it were declared using the Q_PROPERTY macro. Is it possible? Why I'm trying to do this: I made a COM component in C# that I am consuming in Qt using…
Tony Clifton
  • 467
  • 3
  • 10
0
votes
1 answer

Can't read file data twice using QAxObject

I read excel file using QAxBase and QAxObject. I got global variable QAxObject* db_workbook; where I store pointer to some workbook(don't know why it called like that, but whatever) in excel. I need it because of throught it I need to get excel…
DanilGholtsman
  • 2,354
  • 4
  • 38
  • 69
0
votes
2 answers

C++ COM [in, out] safearrays

I need to call a COM function in C++ that returns a reference to a SAFEARRAY(BSTR). According to this document, it should be: QAxObject object = new QAxObject(...); QStringList list; for(int i=0; i
Maxbester
  • 2,435
  • 7
  • 42
  • 70
0
votes
1 answer

Share QAxObject between two threads?

Let's say an object A running in a thread. It has a pointer to a QAxObject instance and to an object B. The object B has the pointer to the QAxObject. Object A creates a thread and moves the object B in it. #ifndef OBJECTA_H #define…
Maxbester
  • 2,435
  • 7
  • 42
  • 70
1
2