Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Is the documentation of qtcreator out of date?
Qt 6.11 is out! See what's new in the release blog

Is the documentation of qtcreator out of date?

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
13 Posts 6 Posters 1.8k Views 2 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.
  • MozzieM Mozzie

    I am using Qt5.12.6 , but I installed Qt5.13 before, so my qtcreator shows below
    捕获1.PNG

    Today, I was read the source code of simple browser example. I found that I can use QLayout::setMargin but I could not find this function in the documentation.

    捕获.PNG

    what should i do to update my documentation to the same Qt version?

    KroMignonK Offline
    KroMignonK Offline
    KroMignon
    wrote on last edited by
    #3

    @Mozzie What are you comparing?

    Qt Creator is an IDE, you not have to use Qt Creator to build a Qt application.
    On your screenshot, you can see that you are using Qt Creator 4.10.2 which has been build with Qt 5.13.2.

    Please do not mix up:

    • Qt Creator version
    • Qt Version used to build Qt Creator
    • Qt Kit you are using to build your application

    It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

    1 Reply Last reply
    6
    • sierdzioS sierdzio

      "About Qt Creator" tells you about ... Qt Creator. Qt version listed there has no relation to Qt you have installed. It is simply telling you which Qt version was used to compile Qt Creator.

      To find out which Qt versions you have, go to Kits section in QtC options, or look it up in the Qt Maintenance Tool.

      MozzieM Offline
      MozzieM Offline
      Mozzie
      wrote on last edited by
      #4

      @sierdzio @KroMignon
      I just want to show you my qt version from my qt creator.
      And I wanna to know why my documentation does not correspond my qt version

      JKSHJ jsulmJ 2 Replies Last reply
      0
      • MozzieM Mozzie

        @sierdzio @KroMignon
        I just want to show you my qt version from my qt creator.
        And I wanna to know why my documentation does not correspond my qt version

        JKSHJ Offline
        JKSHJ Offline
        JKSH
        Moderators
        wrote on last edited by JKSH
        #5

        @Mozzie said in Is the documentation of qtcreator out of date?:

        I just want to show you my qt version from my qt creator.

        1 instance of Qt Creator can manage many different versions of Qt at the same time.

        Example: I can load the source code for 1 project and ask Qt Creator to build it for Qt 5.12.7 LTS and then build it for Qt 5.14.1.

        I found that I can use QLayout::setMargin but I could not find this function in the documentation.

        QLayout::setMargin() is obsolete: https://doc.qt.io/qt-5/qlayout-obsolete.html

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        MozzieM 1 Reply Last reply
        1
        • MozzieM Mozzie

          @sierdzio @KroMignon
          I just want to show you my qt version from my qt creator.
          And I wanna to know why my documentation does not correspond my qt version

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #6

          @Mozzie said in Is the documentation of qtcreator out of date?:

          I just want to show you my qt version from my qt creator

          That version is completely irrelevant. It just tells you which version was used to build QtCreator. You need to understand that QtCreator is a Qt application and "About QtCreator" dialog only tells you the version of QtCreator and Qt which was used to build that QtCreator version. It does not mean that you're using same version of Qt for your apps! You can use many different Qt versions in Qt creator.
          To check which Qt version you're really using go to "Tools/Options.../Kits" and select the Kit you're using, then you will see the Qt version.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          MozzieM 1 Reply Last reply
          1
          • jsulmJ jsulm

            @Mozzie said in Is the documentation of qtcreator out of date?:

            I just want to show you my qt version from my qt creator

            That version is completely irrelevant. It just tells you which version was used to build QtCreator. You need to understand that QtCreator is a Qt application and "About QtCreator" dialog only tells you the version of QtCreator and Qt which was used to build that QtCreator version. It does not mean that you're using same version of Qt for your apps! You can use many different Qt versions in Qt creator.
            To check which Qt version you're really using go to "Tools/Options.../Kits" and select the Kit you're using, then you will see the Qt version.

            MozzieM Offline
            MozzieM Offline
            Mozzie
            wrote on last edited by
            #7

            @jsulm
            Yes, please don't bother my qt creator version
            I said I am using Qt5.12.6 but my documentation can not show all function of Qt5.12.6

            1 Reply Last reply
            0
            • JKSHJ JKSH

              @Mozzie said in Is the documentation of qtcreator out of date?:

              I just want to show you my qt version from my qt creator.

              1 instance of Qt Creator can manage many different versions of Qt at the same time.

              Example: I can load the source code for 1 project and ask Qt Creator to build it for Qt 5.12.7 LTS and then build it for Qt 5.14.1.

              I found that I can use QLayout::setMargin but I could not find this function in the documentation.

              QLayout::setMargin() is obsolete: https://doc.qt.io/qt-5/qlayout-obsolete.html

              MozzieM Offline
              MozzieM Offline
              Mozzie
              wrote on last edited by
              #8

              @JKSH
              I know 1 instance of Qt Creator can manage many different versions of Qt at the same time.
              but, I just have one version which is Qt5.12.6, 5.13 already have been removed,

              But my the qt creator's documentation can not show all function of Qt5.12.6

              jsulmJ JKSHJ 2 Replies Last reply
              0
              • MozzieM Mozzie

                @JKSH
                I know 1 instance of Qt Creator can manage many different versions of Qt at the same time.
                but, I just have one version which is Qt5.12.6, 5.13 already have been removed,

                But my the qt creator's documentation can not show all function of Qt5.12.6

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #9

                @Mozzie https://doc.qt.io/qt-5/qlayout.html#setContentsMargins

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • MozzieM Mozzie

                  @JKSH
                  I know 1 instance of Qt Creator can manage many different versions of Qt at the same time.
                  but, I just have one version which is Qt5.12.6, 5.13 already have been removed,

                  But my the qt creator's documentation can not show all function of Qt5.12.6

                  JKSHJ Offline
                  JKSHJ Offline
                  JKSH
                  Moderators
                  wrote on last edited by
                  #10

                  @Mozzie said in Is the documentation of qtcreator out of date?:

                  But my the qt creator's documentation can not show all function of Qt5.12.6

                  Why do you say that it cannot show all functions of Qt 5.12.6?

                  If it's because QLayout::setMargins() is missing, then you should scroll to the top of the QLayout page and click "obsolete members".

                  QLayout documentation screenshot

                  Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                  MozzieM 1 Reply Last reply
                  4
                  • JKSHJ JKSH

                    @Mozzie said in Is the documentation of qtcreator out of date?:

                    But my the qt creator's documentation can not show all function of Qt5.12.6

                    Why do you say that it cannot show all functions of Qt 5.12.6?

                    If it's because QLayout::setMargins() is missing, then you should scroll to the top of the QLayout page and click "obsolete members".

                    QLayout documentation screenshot

                    MozzieM Offline
                    MozzieM Offline
                    Mozzie
                    wrote on last edited by
                    #11

                    @JKSH
                    Thank you very much,
                    I did not found It, because this function is in the page of QLayout ,
                    but when i followed the symbol to the header of QLayout, this function is not marked as deprecated.

                    1 Reply Last reply
                    0
                    • Christian EhrlicherC Offline
                      Christian EhrlicherC Offline
                      Christian Ehrlicher
                      Lifetime Qt Champion
                      wrote on last edited by
                      #12

                      @Mozzie said in Is the documentation of qtcreator out of date?:

                      but when i followed the symbol to the header of QLayout, this function is not marked as deprecated.

                      Because it's deprecated since 5.13 and you're using 5.12

                      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                      Visit the Qt Academy at https://academy.qt.io/catalog

                      JKSHJ 1 Reply Last reply
                      1
                      • Christian EhrlicherC Christian Ehrlicher

                        @Mozzie said in Is the documentation of qtcreator out of date?:

                        but when i followed the symbol to the header of QLayout, this function is not marked as deprecated.

                        Because it's deprecated since 5.13 and you're using 5.12

                        JKSHJ Offline
                        JKSHJ Offline
                        JKSH
                        Moderators
                        wrote on last edited by
                        #13

                        @Mozzie said in Is the documentation of qtcreator out of date?:

                        but when i followed the symbol to the header of QLayout, this function is not marked as deprecated.

                        That's understandable. As @Christian-Ehrlicher said, QLayout::setMargin() was deprecated in the header in Qt 5.13. (This was done by Christian, by the way -- thanks for helping to maintain Qt!: https://codereview.qt-project.org/c/qt/qtbase/+/251052 )

                        However, it was marked "obsolete" in the documentation since the very start of Qt 5.0: https://code.qt.io/cgit/qt/qtbase.git/tree/src/widgets/kernel/qlayout.cpp?h=v5.0.0#n348 (probably even earlier) In this case, the header and the documentation were out-of-sync for a long time.

                        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                        1 Reply Last reply
                        2

                        • Login

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