Qt World Summit: Register Today!

Need help on compiling GUI APP for sonic pi

  • Hello everyone. I know nothing about Qt development but if you would be so kind to help me in these bugs i'm facing...

    When I compile sonic-pi I get these warnings:


    Here is the code:


    I appreciate any help.


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    These error are not Qt related. You main function is not declared correctly


    @int main(int argc, char *argv[])
    QApplication app(argc, argv);
    // your code
    return app.exec();

    The other warnings tell you that the code is fishy. You have functions that should return something but you don't return anything. The warning about "parent" says that you are using a variable named parent that you did not initialize which will lead you to crashes in your case.

Log in to reply