prophet0
30th December 2011, 16:57
how can i access a QString ill show my code on how im trying to do this
bottom.h
extern QString *buttonFV;
then in bottom.cpp
while(iconmodel->query().next())
{
buttonFV = iconmodel->query().value(0).toString(); // String I'm Tring to get the value from in a slot
emit next_DoStyle();
}
SLOT in bottom.cpp
void ttmbottom::do_Style()
{
QString bttnPath;// = QApplication::applicationDirPath();
bttnPath = "/home/dev/ttm/directory/icon/";
bttnPath += buttonFV; // trying to use it here !!!!!
}
if anyone can help me solve this issue i always have problems trying to use the data i have stored
bottom.h
extern QString *buttonFV;
then in bottom.cpp
while(iconmodel->query().next())
{
buttonFV = iconmodel->query().value(0).toString(); // String I'm Tring to get the value from in a slot
emit next_DoStyle();
}
SLOT in bottom.cpp
void ttmbottom::do_Style()
{
QString bttnPath;// = QApplication::applicationDirPath();
bttnPath = "/home/dev/ttm/directory/icon/";
bttnPath += buttonFV; // trying to use it here !!!!!
}
if anyone can help me solve this issue i always have problems trying to use the data i have stored