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 inherit from Qt Quick Control 2 Slider
QtWS25 Last Chance

QDoc inherit from Qt Quick Control 2 Slider

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

    We have a custom item that is based on Qt Quick Controls 2 Slider. However we do not manage to correctly get the documentation for it to work. It is missing the inherits link to get all properties.

    It looks something like this:

    import QtQuick.Controls 2.0 as Quick2
    
    /*!
      \qmltype AppSlider
      \inqmlmodule xxx
      \ingroup xxx
      \brief xxx
      \since xxx
    */
    Quick2.Slider {
      //...
    }
    

    One problem that we are facing is that there also exists a Slider item in Qt Quick Controls 1, this is why we used a namespace "Quick2". This maybe causes the automatic inheritance detection to fail completely. However if we add \inherits Slider, nothing happens as well. I am wondering how qdoc would know which Slider (Controls 1 or 2) should be used anyway?

    What would be a workaround for this? As far as I read, the \inherits takes only a single argument, so no way of specifying the module here? If we remove the namespace "Quick2", then qdoc shows the component to be inherited from Controls 1, which is not correct.

    Developer at Felgo - https://felgo.com/qt

    Develop mobile Apps for iOS & Android with Qt
    Develop Games with Qt

    Felgo is an official Qt Technology Partner

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

      Hi,

      Can you provide a minimal sample project that allows to replicate that ?

      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

      • Login

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