Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
WaldeMar1321 opened this issue Jun 25, 2024 · 0 comments
Open

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

WaldeMar1321 opened this issue Jun 25, 2024 · 0 comments

Comments

@WaldeMar1321
Copy link

WaldeMar1321 commented Jun 25, 2024

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.
}

@WaldeMar1321 WaldeMar1321 changed the title Is there a easy possibility to make a copy constructor? Is there an easy possibility to make a copy constructor? Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant