Home > Back-end >  1. Qt custom class defined in the function, the error is used outside, how do I solve? 2. How to use
1. Qt custom class defined in the function, the error is used outside, how do I solve? 2. How to use

Time:09-25

1.
Custom class function declaration:

Custom class function:

To implement an error:

And
Can you tell me how to solve?

2.

Is still an error, check the document but will not use...

CodePudding user response:

Defined as a static function, can, but will not be able to use a class member variables, unless a class member is the static

CodePudding user response:

1, a less parameter
2, the need to introduce ObjLoader header files
  • Related