qt-interest@trolltech.com
[Top] [All Lists]

Re: Help with cout

Subject: Re: Help with cout
From: Keith Sabine
Date: Fri, 24 Nov 2006 15:06:22 +0000
Brian G wrote:
This code:

#include <iostream>

int main(int argc, char *argv[])
{
   using std::cout;

   QDateTime epoch;
   epoch.setTime_t(0);

   cout << "Epoch: " << epoch.toString().latin1() << std::endl;
   return 0;
}

Generates this nmake compile error:

 error C2039: 'latin1' : is not a member of 'QString'

Don't know which version you're using, but in Qt 4.x it became toLatin1()

- Keith

--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with 
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/

<Prev in Thread] Current Thread [Next in Thread>