Solved Constructor error
-
Hello. I want to create a QTime object inside a function and I've got this error:
constexpr QTime::QTime(int) is private
within this context
Do you know how to solve this problem? -
@michalt38 QTime provides two public constructors:
QTime::QTime() QTime::QTime(int h, int m, int s = 0, int ms = 0)
There is no public constructor with one int parameter.
-
@michalt38 QTime provides two public constructors:
QTime::QTime() QTime::QTime(int h, int m, int s = 0, int ms = 0)
There is no public constructor with one int parameter.
-
Thanks for help :)