Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. What is DECLARATIVE_EXAMPLE_MAIN(demos/calqlatr/calqlatr) about?
Forum Update on Monday, May 27th 2025

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

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 2 Posters 347 Views
  • 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 HuangS Offline
    Stan HuangS Offline
    Stan Huang
    wrote on last edited by
    #1

    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
    0
    • Shrinidhi UpadhyayaS Offline
      Shrinidhi UpadhyayaS Offline
      Shrinidhi Upadhyaya
      wrote on last edited by
      #2

      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
      4

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved