It seems to work when m_locale is a global variable:
namespace {
QLocale m_locale;
}
But I don't know why. Does anyone has an idea what the problem could be?
Thanks in advance
namespace {
QLocale m_locale;
}
But I don't know why. Does anyone has an idea what the problem could be?
Thanks in advance
Am 12. Jun 2012 um 19:12 schrieb NoRulez <noru...@me.com>:
Hi,
in the debug version I get the following message when creating a QLocale::system():
ASSERT: "index <= locale_data_size" in file tools/qlocale.cpp, line 601
In the release version the application crashes with a runtime error.
The only thing I do was to set a member variable:
QLocale m_locale;
Here is the implementation:
MyClass::MyClass() : m_locale(QLocale::system()) {}
void MyClass::setLocale(const QLocale &locale) { m_locale = locale; }
const MyClass::QLocale& locale() const { return m_locale; }
Any hints?
Best Regards
NoRulez_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest