Skip to content

cvv compile err #2001

Closed
Closed
@dbyoung720

Description

@dbyoung720
System information (version)
  • OpenCV => New
  • Operating System / Platform => WIN7X64
  • Compiler => VS2017
Detailed description

cvv\src\stfl,function shortenString is compile error:

QString shortenString(QString &str, int maxLength, bool cutEnd, bool fill)
{
if (str.size() > maxLength)
{
if (cutEnd)
{
str = str.mid(0, maxLength - 1) + u8"…"; // Error
}
else
{
str = u8"…" + // Error
str.mid(str.size() + 1 - maxLength, str.size());
}
}
else if (fill)
{
str = str + QString(maxLength - str.size(), ' ');
}
return str;
}

Do not know why?

Steps to reproduce

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions