I have:
//Node.cpp
#include "Node.h"
}
void Node::setName(string picName) {
}
//Node.cpp
#include "Node.h"
Node::Node(QWidget *parent)
: QLabel (parent) {
}
void Node::setName(string picName) {
nodePicName = new QString(QString::fromStdString(picName));
}
To copy to clipboard, switch view to plain text mode
and then in my "Node.h" file I have:
Q_OBJECT
public:
virtual ~Node();
void setName(string picName);
private:
}:
class Node : public QLabel {
Q_OBJECT
public:
Node(QWidget *parent = 0);
virtual ~Node();
void setName(string picName);
private:
QString *nodeName;
}:
To copy to clipboard, switch view to plain text mode
I am getting a segmentation fault at where I have:
nodePicName = new QString(QString::fromStdString(picName));
To copy to clipboard, switch view to plain text mode
Bookmarks