Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. tst_testdigitron.moc file not found
QtWS25 Last Chance

tst_testdigitron.moc file not found

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 453 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.
  • s_milena__97S Offline
    s_milena__97S Offline
    s_milena__97
    wrote on last edited by
    #1

    Hi. 👋

    I have a problem with building the test project because it can't detect tst_testdigitron.moc file. Maybe this file isn't generated.

    How can I fix this?

    Screenshot 2023-08-06 at 16.02.45.png

    SGaistS 1 Reply Last reply
    0
    • s_milena__97S s_milena__97

      Hi. 👋

      I have a problem with building the test project because it can't detect tst_testdigitron.moc file. Maybe this file isn't generated.

      How can I fix this?

      Screenshot 2023-08-06 at 16.02.45.png

      SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Are you using qmake or CMake to manage your test project ?

      Do you have the Q_OBJECT macro in your test class ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • C Offline
        C Offline
        clanhuth
        wrote on last edited by
        #3

        Please note, this area of the forum is for the Squish Test Center product. Perhaps this topic can be moved into the Qt specific area?

        1 Reply Last reply
        1
        • Christian EhrlicherC Christian Ehrlicher moved this topic from Test Center on
        • L Offline
          L Offline
          lo4u
          wrote on last edited by
          #4
          This post is deleted!
          1 Reply Last reply
          0
          • L Offline
            L Offline
            lo4u
            wrote on last edited by lo4u
            #5

            Hey, I find a solution.
            Looking at this picture, StringJoin and TestStringJoin are two subprojects. You just need to execute the build command of the entire project( TestDemo here), then you'll get the moc file. Forgive me for my bad english.
            67fd278c-f08c-4ae5-b9eb-1ff2650ec201-image.png

            1 Reply Last reply
            0

            • Login

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