タブコンテンツ
以下のマクロを使用して、同等または代替コンテンツを持つラベル付きHTMLタブのタブグループを作成します。例えば、異なるプログラミング言語のコード・スニペットを表示できます。
タブマクロを使う
\tab {name}{tab-id}{title}{checked} \tabcontent {tab-id} content \endtabcontent
注意: これらのマクロはオンラインテンプレートでのみ動作します。したがって、オフラインヘルプでも良い結果を得るためには、通常、条件付きテキストを使用する必要があります。
例えば、CMakeやqmakeのビルドシステムの説明をタブで表示する場合などです:
\if defined(onlinedocs) \tab {build-qt-app}{tab-cmake}{CMake}{checked} \tab {build-qt-app}{tab-qmake}{qmake}{} \tabcontent {tab-cmake} \else \section1 Using CMake \endif CMake-specific instructions go here \if defined(onlinedocs) \endtabcontent \tabcontent {tab-qmake} \else \section1 Using qmake \endif qmake-specific instructions go here \if defined(onlinedocs) \endtabcontent \endif
\タブ
\tab {name}{tab-id}{title}{checked}
タブグループ内のタブを、名前、ID、タイトル、デフォルトの状態で指定します。
タブ・グループに属するタブを指定するには、一意の名前を使用します。つまり、グループ内のタブはすべて同じ名前になります。タブを互いに区別するために、グループ内で一意のタブ ID を指定します。タブにコンテンツを追加するには、このタブ IDを \tabcontent マクロの値として使用します。
checked引数は、HTMLページがロードされたときにデフォルトでタブを選択します。初期状態では非表示のタブには、空の引数 {} を渡します。
\タブコンテンツ
\tabcontent {tab-id}
指定したタブ IDのタブにコンテンツを追加します。
\タブコンテンツ
指定したタブIDのタブにコンテンツを追加します。
マクロも参照してください 。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.