I wanted to dump some QStrings to the console. I am using the following code:

Qt Code:
  1. std::cout<<"#"<<Item_Parent->child(i)->data(DB_SERIES__PATH,Qt::DisplayRole).toString().constData()<<"\n";
To copy to clipboard, switch view to plain text mode 

It seems fine but I get the following at the console:
Qt Code:
  1. #0x815b8aa
  2. #0x816ee42
  3. #0x8175eb2
To copy to clipboard, switch view to plain text mode 

I want to see the string. I thought constData() would work, but it seems like cout is not processing it right. Suggestions?