Vorrei aggiungere commenti Doxygen ai miei Q_PROPERTY.Come commentare l'ossigeno Proprietà Qt?
Ad esempio:
song.h
class Song : public QObject
{
Q_OBJECT
private:
Q_PROPERTY(QString title READ title WRITE setTitle);
QString _title;
public:
QString title() const;
void setTitle(const QString& value);
};
song.cpp
#include "song.h"
Song::Song(QObject *parent) :
QObject(parent)
{
}
QString Song::title() const { return _title; }
void Song::setTitle(const QString &value) { _title = value; }
Come posso dire a Doxygen quel titolo è una struttura nel sistema Qt Meta-Object e titolo() e setTitle() sono le funzioni di accesso? Mi piacerebbe ottenere un output simile a this.
Qt non usa doxygen ma qdoc per generare la sua documentazione, ma doxygen cerca di rimanere ragionevolmente compatibile con qdoc. –