Segementation fault while assigning qfont
I have the following structure:
QString text; //ICON, WIN, BG, BET, GRID..like this
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?
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.