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. Subproject "Qt Unit Test" missing
Forum Updated to NodeBB v4.3 + New Features

Subproject "Qt Unit Test" missing

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 4 Posters 2.0k Views 1 Watching
  • 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.
  • K Offline
    K Offline
    KingLeoric
    wrote on last edited by
    #1

    Hello, I just started learning Qt and got me a beginners book but now I am already stuck in the 2nd chapter. the first chapters "hello wolrd" I managed.

    now the book shows how to create a Project out of subprojects, one of them is a Qt Unit Test. It reads:

    1. In the Projects pane, right-click on the top-level folder and select New
      Subproject….
    2. Projects > Other Project > Qt Unit Test.

    But when I do so, there is no Qt Unit Test in Other Projects, only an "Auto Test Project", but that does not work.

    The Author uses Qt 5.10 and I use Qt 5.11.
    Maybe I my Installation has issues? How can I add Qt Unit Test to my installation? I run the maintenance tool, but could not find anything.

    I made this Picture, if I did not make myself clear: the above picture is from the internet, the one below is my screenshot.
    0_1537457086550_no-unit-test.png

    Any help would be greatly appreciated!

    Max

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      What version of Qt Creator are you using ?

      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
      • K Offline
        K Offline
        KingLeoric
        wrote on last edited by KingLeoric
        #3

        Hello SGaist and thank you for your reply!

        I have Qt 5.11.1 and Qt Creator 4.7.0 (Community) on Windows 10.

        I found a template folder, maybe the "Qt Unit Test" template is not installed?

        0_1537508251148_qt-creator.png

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          From the looks of it, it has become the Auto Test Project.

          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
          2
          • K Offline
            K Offline
            KingLeoric
            wrote on last edited by
            #5

            Hello SGaist and thank you for your time!

            I think you are right, I now installed it on Linux
            and it is missing there as well.

            I got round my problem by copying the sample files
            from the book.

            1 Reply Last reply
            0
            • A Offline
              A Offline
              anonymous1234
              wrote on last edited by
              #6

              same problem with me . I am using Qt 5.12 and Qt creator 4.8 0_1552721246246_Capture.PNG

              aha_1980A 1 Reply Last reply
              0
              • A anonymous1234

                same problem with me . I am using Qt 5.12 and Qt creator 4.8 0_1552721246246_Capture.PNG

                aha_1980A Offline
                aha_1980A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on last edited by aha_1980
                #7

                @anonymous1234 just use the "Auto Test Project" wizard.

                Qt has to stay free or it will die.

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  anonymous1234
                  wrote on last edited by anonymous1234
                  #8

                  Both are same? guide me please!! . I am trying to learn from same book.

                  aha_1980A 1 Reply Last reply
                  0
                  • A anonymous1234

                    Both are same? guide me please!! . I am trying to learn from same book.

                    aha_1980A Offline
                    aha_1980A Offline
                    aha_1980
                    Lifetime Qt Champion
                    wrote on last edited by aha_1980
                    #9

                    @anonymous1234 "Qt Unit Test" is integrated in the "Auto Test Project" now.

                    If you follow the wizard, you can choose between different types, one of them is "Qt Test":

                    0_1552748784939_eaa47986-efa8-4903-beef-cc5b871fc5c7-grafik.png

                    I hope that helps.

                    Regards

                    Qt has to stay free or it will die.

                    1 Reply Last reply
                    1

                    • Login

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