Segementation fault while assigning qfont
-
Hi all,
I have the following structure:
@struct TextItem
{
QFont font;
QColor color;
QString text; //ICON, WIN, BG, BET, GRID..like this
QPoint element_size;
QPoint element_start_location;
ShadowData shadowEffects;
};
@In the line below, textforname is an instance of TextItem structure. When I'm setting font attributes like the following line or assigning it to a another QFont results in segementation fault. Can anyone explain why is this happening?
@
my_game_element.textforname.font.setFamily(font.attribute("Family"));
@ -
Hi,
What is this variable: font.attribute("Family")??? attribute is no known function of QFont in Qt5.
So think it has to do with that one.
Greetz