bugfix #205
SCP1715
started this conversation in
Show and tell
bugfix
#205
Replies: 1 comment 1 reply
-
This may be related to #187 that is already fixed. Only platforms using Qt5.15 were affected. Are you still experience the crash using the latest snapshot from the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I noticed a problem with qucs: when you try to drag a component from the components window to the workspace, the application crashes, although when you click everything works
I solved this problem in the following way:
`class iconCompInfoStruct
{
public:
int catIdx; // index of the component Category
int compIdx; // index of the component itself in the Category
iconCompInfoStruct()
{
catIdx = -1;
compIdx = -1;
qRegisterMetaTypeStreamOperators("iconCompInfoStruct");
};
iconCompInfoStruct(int cat, int comp)
{
catIdx = cat;
compIdx = comp;
qRegisterMetaTypeStreamOperators("iconCompInfoStruct");
}
};
QDataStream &operator<<(QDataStream &out, const iconCompInfoStruct &myObj)
{
out << myObj.catIdx;
out << myObj.compIdx;
return out;
}
QDataStream &operator>>(QDataStream &in, iconCompInfoStruct &myObj)
{
in >> myObj.catIdx;
in >> myObj.compIdx;
return in;
}`
Beta Was this translation helpful? Give feedback.
All reactions