I made it that:
std::vector<std::string> v;
std::string s;
char buff[255];
while (!file.atEnd() )
{
file.readLine(buff, 200);
s=buff;
v.push_back(s);
}
sort( v.begin(), v.end() );
int number=v.size();
for( int i = 0; i < number; i++ )
{
textEdit1->append(v[i]); <------now there is a problem !!!!!!
}
std::vector<std::string> v;
std::string s;
char buff[255];
while (!file.atEnd() )
{
file.readLine(buff, 200);
s=buff;
v.push_back(s);
}
sort( v.begin(), v.end() );
int number=v.size();
for( int i = 0; i < number; i++ )
{
textEdit1->append(v[i]); <------now there is a problem !!!!!!
}
To copy to clipboard, switch view to plain text mode
no matching function for call to `QTextEdit::append(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'
candidates are: void QTextEdit::append(const QString&)
Wrrrrr Qt !!
Bookmarks