Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved What is DECLARATIVE_EXAMPLE_MAIN(demos/calqlatr/calqlatr) about?

    QML and Qt Quick
    2
    2
    189
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Stan Huang
      Stan Huang last edited by

      When I studied Qt sample programs, I usually found

      #include "../shared/shared.h"
      DECLARATIVE_EXAMPLE_MAIN(demos/calqlatr/calqlatr)

      What is DECLARATIVE_EXAMPLE_MAIN()? I can't even find it at google or files of Qt installation.

      1 Reply Last reply Reply Quote 0
      • Shrinidhi Upadhyaya
        Shrinidhi Upadhyaya last edited by

        Hi @Stan-Huang , its just a macro which is defined in shared.h, if you open shared.h you can find it.

        Shrinidhi Upadhyaya.
        Upvote the answer(s) that helped you to solve the issue.

        1 Reply Last reply Reply Quote 4
        • First post
          Last post