mdskpr778
5th October 2008, 13:21
Whenever I run this bit of code it prints blank characters:
void Photo::apertureChanged()
{
QString x;
x = aperture.itemText(0);
QByteArray i = x.toLatin1();
const char *c_str2 = i.data();
printf(c_str2);
}
when really its supposed to print the aperture number of combobox index 0.
it compiles fine.
Thanks in Advance
void Photo::apertureChanged()
{
QString x;
x = aperture.itemText(0);
QByteArray i = x.toLatin1();
const char *c_str2 = i.data();
printf(c_str2);
}
when really its supposed to print the aperture number of combobox index 0.
it compiles fine.
Thanks in Advance