how can i access a QString ill show my code on how im trying to do this
bottom.h
extern QString *buttonFV;
To copy to clipboard, switch view to plain text mode
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();
}
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();
}
To copy to clipboard, switch view to plain text mode
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 !!!!!
}
void ttmbottom::do_Style()
{
QString bttnPath;// = QApplication::applicationDirPath();
bttnPath = "/home/dev/ttm/directory/icon/";
bttnPath += buttonFV; // trying to use it here !!!!!
}
To copy to clipboard, switch view to plain text mode
if anyone can help me solve this issue i always have problems trying to use the data i have stored
Bookmarks