• Hi
    Myself a newbie in Qt.I have a code which is defined in a namespace called criket.now i am trying to develop an application which uses a function in criket.How can i call the function in Qt.do i need to write something in .pro file regarding this namespace?How the application get known about this specific namespace criket???

  • Lifetime Qt Champion


    I would recommend that you get some good book about c++. This is a basic c++ question that's not related to Qt

    #include "myheaderwithnamespace.h"

    // somewhere in your code
    bool result = cricket::mycricketfunction(inputvariable);

Log in to reply

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