Segementation fault while assigning qfont

  • Hi all,
    I have the following structure:
    @struct TextItem
    QFont font;
    QColor color;
    QString text; //ICON, WIN, BG, BET, 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?


  • 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.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.