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. Why QDoc don't work, it's really confusing.
Forum Updated to NodeBB v4.3 + New Features

Why QDoc don't work, it's really confusing.

Scheduled Pinned Locked Moved Unsolved General and Desktop
qdoc
26 Posts 7 Posters 6.3k Views 5 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.
  • Stephen INFS Stephen INF

    @mrjj
    Yes,I changed that.

    mrjjM Offline
    mrjjM Offline
    mrjj
    Lifetime Qt Champion
    wrote on last edited by
    #16

    @Stephen-INF
    hmm odd. then
    it seems clang have issue parsing the header
    ( QDoc uses clang from Qt 5.11)

    You did follow step to install it ?
    https://doc.qt.io/qt-5/qdoc-guide-clang.html

    Stephen INFS 1 Reply Last reply
    1
    • mrjjM mrjj

      @Stephen-INF
      hmm odd. then
      it seems clang have issue parsing the header
      ( QDoc uses clang from Qt 5.11)

      You did follow step to install it ?
      https://doc.qt.io/qt-5/qdoc-guide-clang.html

      Stephen INFS Offline
      Stephen INFS Offline
      Stephen INF
      wrote on last edited by
      #17

      @mrjj
      Yes,I did it
      installed LLVM6.0.1 and specify Clang location by "set LLVM_INSTALL_DIR=C:\Program Files\LLVM"

      mrjjM 1 Reply Last reply
      0
      • Stephen INFS Stephen INF

        @mrjj
        Yes,I did it
        installed LLVM6.0.1 and specify Clang location by "set LLVM_INSTALL_DIR=C:\Program Files\LLVM"

        mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #18

        @Stephen-INF
        That seems pretty ok.
        However, since the other part of generation seems to work, then
        it must be something with clang and /fn
        But I cant guess what not right.

        Stephen INFS 1 Reply Last reply
        0
        • mrjjM mrjj

          @Stephen-INF
          That seems pretty ok.
          However, since the other part of generation seems to work, then
          it must be something with clang and /fn
          But I cant guess what not right.

          Stephen INFS Offline
          Stephen INFS Offline
          Stephen INF
          wrote on last edited by
          #19

          @mrjj
          Well,can you try to generate C++ documentation with QDoc if you are free?

          mrjjM 1 Reply Last reply
          0
          • Stephen INFS Stephen INF

            @mrjj
            Well,can you try to generate C++ documentation with QDoc if you are free?

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #20

            @Stephen-INF
            I might :)

            1 Reply Last reply
            0
            • F Offline
              F Offline
              FrancoF
              wrote on last edited by
              #21

              @mrjj
              Hi, I have a very simila problem.

              mrjjM 1 Reply Last reply
              0
              • F FrancoF

                @mrjj
                Hi, I have a very simila problem.

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #22

                @FrancoF
                Hi
                I did try the QDoc but could not get any /fn to work either.

                What version of Qt are you using ?

                DevMachinesD F 2 Replies Last reply
                0
                • mrjjM mrjj

                  @FrancoF
                  Hi
                  I did try the QDoc but could not get any /fn to work either.

                  What version of Qt are you using ?

                  DevMachinesD Offline
                  DevMachinesD Offline
                  DevMachines
                  wrote on last edited by DevMachines
                  #23

                  Re: [Why QDoc don't work](it's really confusing.)
                  I have the same issue with Qt5.12.0 on Windows. Does anyone have the solution for this?
                  Some notes - the enumerator was processed without problems:

                  class MyClass
                  {
                  public:
                  enum Type
                  {
                  }
                  void foo();
                  }

                  /*!
                  \enum MyClass::Type - parsed without errors
                  \value …
                  */

                  /*!
                  \fn void MyClass::foo() - error: use of undeclared identifier 'MyClass' why???
                  */

                  1 Reply Last reply
                  0
                  • DevMachinesD Offline
                    DevMachinesD Offline
                    DevMachines
                    wrote on last edited by
                    #24

                    To fix the error, you need to switch to VS2015 Build Tool. For VS2017 I could not get the compiler to work. But for 2015 everything works as expected.

                    1 Reply Last reply
                    4
                    • M Offline
                      M Offline
                      Michael Scopchanov
                      wrote on last edited by
                      #25

                      Check out this: https://stackoverflow.com/questions/52739030/why-does-q-object-break-qdoc

                      1 Reply Last reply
                      1
                      • mrjjM mrjj

                        @FrancoF
                        Hi
                        I did try the QDoc but could not get any /fn to work either.

                        What version of Qt are you using ?

                        F Offline
                        F Offline
                        FrancoF
                        wrote on last edited by
                        #26

                        @mrjj
                        Qt 5.12.4 (GCC 9.1.0, 64 bit) installed on MSYS.

                        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