[mythtv-users] A question on how to convert QStrings to Strings
on C++
Joseph A. Caputo
jcaputo1 at comcast.net
Mon Jun 14 11:13:41 EDT 2004
On Monday 14 June 2004 09:59, jitendra recd wrote:
> hello every one!!!
> im jitendra.....studyin Computer Science.
> ive got a problem . please give me suggestion.
>
> How do you convert QStrings to Strings in C++?
>
> do answer this question.....
> thanking everyone.....
> jitendra
Did you bother to read the documentation for the QString class?
From the docs:
QString::operator std::string () const
Returns ascii().
Just cast it.
std::string foo;
QString bar;
foo = (std::string)bar;
In the future, you'd probably be better off asking these types of
questions on the Qt list at http://lists.trolltech.com/, as this is a
users list not really meant for discussing programming issues.
-JAC
More information about the mythtv-users
mailing list