QtExcel / QXlsx

Excel file(*.xlsx) reader/writer library using Qt 5 or 6. Descendant of QtXlsxWriter.
https://qtexcel.github.io/QXlsx/
MIT License
1.12k stars 352 forks source link

Is there an easy possibility to make a copy constructor? #336

Open WaldeMar1321 opened 3 months ago

WaldeMar1321 commented 3 months ago

Greatings, I realy like your project as a now and then C++ programmer. I have an issue I listed in a "pseudo code" below: A.h class A { private: Document sheet; public: A(); ~A(); } A.cpp .... A::A() : sheet() { //do stuff }; void click_button_and_open_file() { //we open some exsel file here //and here I want to setup my sheet (Document instance with an open file) like: QXls::Document temp(fileName); sheet = temp; //or something like that. }