Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-135324

Clean up qt_add_ui() section in "Getting started with CMake"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.8.2
    • None

    Description

      https://doc.qt.io/qt-6/cmake-get-started.html#building-a-c-gui-application contains a section about qt_add_ui

      In specific cases, such as the example below where the include directive uses a relative path, qt_add_ui can be used to generate the ui_calculatorform.h file instead of relying on AUTOUIC. [...]

      Problem is that, for beginners, this is completely information overload.

      The paragraphs before and after go through the example CMakeLists.txt file one by one. This section is supposed to be a 'footnote/sidenode', but is not marked as such. Furthermore, concepts like 'AUTOUIC' where not even mentioned before, so new users will probably be utterly confused.

      I would actually consider removing the whole paragraph from this page. It's enough that the section about qt_add_ui() is mentioned somewhere in 'further reading' .

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtbuildsystem Qt Build System Team
            kkohne Kai Köhne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes