Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

Segementation fault while assigning qfont

$
0
0
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"));

Viewing all articles
Browse latest Browse all 13965

Trending Articles