I am using Qt 5.4 for my android and iOS.
I have a C# code,but I don't know how to convet it to Qt(C++).
In C#
A.cs
namespace WS
{
public enum myTypes
{
T1,
T2,
T3,
};
public abstract class GS
{
protected Color _penColor = Color.White;
protected bool ReadBaseProperty(BinaryReader reader, string readFileVersion)
{...
}
}...
}
B.cs
namespace WS
{
public class sL : GS
{
public virtual int PC
{
get { return PointList.Count; }
}...
}
}
In Qt, I try
A.h
namespace WS{
class GS
{
public:
GS();
}
}
the another file:
A.cpp
#include "GS.h"
WS::GS::GS(){}
the another file:
B.h
namespace WS{
class sL:public GS
{
public:
sL();
}
}
the another file:
B.cpp
#include "B.h"
WS::sL::sL(){}
Is it a correct format for Qt?