johnny_sparx
7th April 2006, 18:44
I wanted to dump some QStrings to the console. I am using the following code:
std::cout<<"#"<<Item_Parent->child(i)->data(DB_SERIES__PATH,Qt::DisplayRole).toString().c onstData()<<"\n";
It seems fine but I get the following at the console:
#0x815b8aa
#0x816ee42
#0x8175eb2
I want to see the string. I thought constData() would work, but it seems like cout is not processing it right. Suggestions?
std::cout<<"#"<<Item_Parent->child(i)->data(DB_SERIES__PATH,Qt::DisplayRole).toString().c onstData()<<"\n";
It seems fine but I get the following at the console:
#0x815b8aa
#0x816ee42
#0x8175eb2
I want to see the string. I thought constData() would work, but it seems like cout is not processing it right. Suggestions?