I have a previous code written in QT. The output generated is very slow.
I have a very basic knowledge of QT.
I wish to know the of QByteArray
object and QChar
to normal c++ equivalent.
The Datapackage
class in Qt.
class Datapackage
{
public:
Datapackage(QByteArray datas,int start);
QVector<double> getX() const;
QVector<double> getY() const;
private:
QVector<QChar> intensity;
QVector<double>x;
QVector<double>y;
qint8 header[288];
};
My tried normal c++ Datapackage
class
class Datapackage
{
public:
Datapackage( std::vector<char> datas , int start );
std::vector<double> getX() const;
std::vector<double> getY() const;
private:
std::vector<char> intensity;
std::vector<double> x;
std::vector<double> y;
int8_t header[288];
};
My results are absurd. I am doing the wrong conversion. Could you suggest a good way. The above class is not a complete code. I removed some data not to make the code too long.