Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
Qt Creator 4.15.2
-
None
Description
Hello,
I have a problem with generating getters and setters for vectors in a class.
In case of trying for a field in class Bar, it receives segmentation and closure of the whole qtcreator.
#include <iostream> #include <vector> using namespace std; class Foo { double data; }; class Bar { std::vector<double> One; std::vector<Foo> Two; }; int main() { cout << "Hello World!" << endl; return 0; }
In the terminal from which QtCreator was launched, it only receives:
Segmentation fault (core dumped)
I tried to disable all plugins. Did not help.
After commenting the line:
#include <vector>
It is possible to create setters and getters, but for obvious reasons you cannot compile a project.
I had no problems with this in earlier versions of QtCreator.