Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Function font & colors issue



  • Hello everyone,

    I am experiencing a very annoying issue related to function-name colour.

    I have set a new color for function in Font & Colors tab, but when I use a struct defined by me as input, Qt doesn't recognize it as a function, thus leaving the function name color as simple text.
    Here is a brief example:
    Let's say you define a new type:
    typedef struct{
    float x;
    float y;
    } Coordinates;
    If I want to declare a function in my header like:
    float multiply(Coordinates coord);
    this will appear as simple text, and not coloured as functions should be.
    This doesn't happen if I use as iput function standard variable type!

    Suggestions on how to fix this?
    Thanks to everyone!


Log in to reply