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. QDoc cannot find qml inherit type
Qt 6.11 is out! See what's new in the release blog

QDoc cannot find qml inherit type

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
1 Posts 1 Posters 303 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.
  • Q Offline
    Q Offline
    QKelteseth
    wrote on last edited by QKelteseth
    #1

    So I try to setup documentation of our custom qml controls (tested with Qt 5.15 and Qt 6.2)but it seems that inherits does only work for c++? QQC 1 are written in QML and do not contain this statement: https://code.qt.io/cgit/qt/qtquickcontrols.git/tree/src/controls/Button.qml but still have clickable inherits https://doc.qt.io/qt-5/qml-qtquick-controls-button.html. QQC 2 are written in c++ and contains this statement: https://code.woboq.org/qt5/qtdeclarative/src/quick/items/qquicktextedit.cpp.html

    descripton = AAAAAAAAAAAAA
    language    = Cpp
    
    project = AAAAAAAAAAAAA
    
    depends = *
    generateindex = false
    syntaxhighlighting = true
    
    # where your source,header and inc files are 
    
    headerdirs += ../Apps/AAA/src
    headerdirs += ../Apps/AAA/explorer
    
    
    includepaths += ../Apps/AAA/src
    includepaths += ../Apps/AAA/explorer
    
    
    sourcedirs += ../Apps/AAA/src
    sourcedirs += ../Apps/AAA/qml
    sourcedirs += ../Apps/AAA/explorer
    sourcedirs += ../Docs
    
    # where you store images that are used in your qdoc comments
    imagedirs = ./images
    
    
    # what kind of sources should be processed
    sources.fileextensions += "*.qdoc *.cpp *.qml"
    # what kind of headers should be processed
    headers.fileextensions += "*.h"
    
    syntaxhightlighting = true
    sourceencoding = UTF-8
    outputencoding = UTF-8
    
    # where to put the result
    outputdir = ./html
    # what format to use for generating documentation
    outputformats = HTML
    

    ColorImage.qml

    import QtQuick 2.13
    import QtQuick.Controls.Material 2.3
    import QtGraphicalEffects 1.0
    
    
    /*!
       \qmltype ColorImage
       \inqmlmodule Common
       \inherits Image
       \brief An Image whose color can be specified.
    
       The ColorImage component extends the Image component by the color property.
    */
    Image {
        id: root
    
    
        /*!
            \qmlproperty color ColorImage::color
    
            The color of the image.
        */
        property color color: Material.color(Material.Grey, Material.Shade800)
        layer {
            enabled: true
            effect: ColorOverlay {
                color: root.color
            }
        }
    }
    
    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