No Description

class_q_c_p_item_text.tex 26KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389
  1. \hypertarget{class_q_c_p_item_text}{}\section{Referencia de la Clase Q\+C\+P\+Item\+Text}
  2. \label{class_q_c_p_item_text}\index{Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}}
  3. A text label.
  4. Diagrama de herencias de Q\+C\+P\+Item\+Text\begin{figure}[H]
  5. \begin{center}
  6. \leavevmode
  7. \includegraphics[height=4.000000cm]{class_q_c_p_item_text}
  8. \end{center}
  9. \end{figure}
  10. \subsection*{Métodos públicos}
  11. \begin{DoxyCompactItemize}
  12. \item
  13. \hyperlink{class_q_c_p_item_text_a77ff96a2972a00872ff8f8c67143abbe}{Q\+C\+P\+Item\+Text} (\hyperlink{class_q_custom_plot}{Q\+Custom\+Plot} $\ast$parent\+Plot)
  14. \item
  15. \hypertarget{class_q_c_p_item_text_ac9cb0a8a27f64d1b40855910ea9ebd03}{}Q\+Color {\bfseries color} () const \label{class_q_c_p_item_text_ac9cb0a8a27f64d1b40855910ea9ebd03}
  16. \item
  17. \hypertarget{class_q_c_p_item_text_a44f690ec0ba6a32e518f2e923c002e39}{}Q\+Color {\bfseries selected\+Color} () const \label{class_q_c_p_item_text_a44f690ec0ba6a32e518f2e923c002e39}
  18. \item
  19. \hypertarget{class_q_c_p_item_text_a552bd02f46dbcb4b4812559036893352}{}Q\+Pen {\bfseries pen} () const \label{class_q_c_p_item_text_a552bd02f46dbcb4b4812559036893352}
  20. \item
  21. \hypertarget{class_q_c_p_item_text_a70c86ec95133d3e904d1718023fe3c4e}{}Q\+Pen {\bfseries selected\+Pen} () const \label{class_q_c_p_item_text_a70c86ec95133d3e904d1718023fe3c4e}
  22. \item
  23. \hypertarget{class_q_c_p_item_text_a38b981dfacb703efa8e27346eebcb5a2}{}Q\+Brush {\bfseries brush} () const \label{class_q_c_p_item_text_a38b981dfacb703efa8e27346eebcb5a2}
  24. \item
  25. \hypertarget{class_q_c_p_item_text_ac6802bbceff1ade0053166c64a5a6966}{}Q\+Brush {\bfseries selected\+Brush} () const \label{class_q_c_p_item_text_ac6802bbceff1ade0053166c64a5a6966}
  26. \item
  27. \hypertarget{class_q_c_p_item_text_ad34943fd68a9b1451d3e3234d072e418}{}Q\+Font {\bfseries font} () const \label{class_q_c_p_item_text_ad34943fd68a9b1451d3e3234d072e418}
  28. \item
  29. \hypertarget{class_q_c_p_item_text_af2e7cacb1975132508714a51c5f48c3b}{}Q\+Font {\bfseries selected\+Font} () const \label{class_q_c_p_item_text_af2e7cacb1975132508714a51c5f48c3b}
  30. \item
  31. \hypertarget{class_q_c_p_item_text_a9547f7832010486abed0837e75db5330}{}Q\+String {\bfseries text} () const \label{class_q_c_p_item_text_a9547f7832010486abed0837e75db5330}
  32. \item
  33. \hypertarget{class_q_c_p_item_text_af13c6adc480f268116ae72196eb44b06}{}Qt\+::\+Alignment {\bfseries position\+Alignment} () const \label{class_q_c_p_item_text_af13c6adc480f268116ae72196eb44b06}
  34. \item
  35. \hypertarget{class_q_c_p_item_text_aaa1d84b3f61f9f2a0cce230e66ef7194}{}Qt\+::\+Alignment {\bfseries text\+Alignment} () const \label{class_q_c_p_item_text_aaa1d84b3f61f9f2a0cce230e66ef7194}
  36. \item
  37. \hypertarget{class_q_c_p_item_text_ae8991207fa1697511c1c8af9f3ca0e0a}{}double {\bfseries rotation} () const \label{class_q_c_p_item_text_ae8991207fa1697511c1c8af9f3ca0e0a}
  38. \item
  39. \hypertarget{class_q_c_p_item_text_a00e0fa03822ff384bf4921c1c90322ff}{}Q\+Margins {\bfseries padding} () const \label{class_q_c_p_item_text_a00e0fa03822ff384bf4921c1c90322ff}
  40. \item
  41. void \hyperlink{class_q_c_p_item_text_aa51efc0841fe52da9eaf8aff6fc8a8b2}{set\+Color} (const Q\+Color \&color)
  42. \item
  43. void \hyperlink{class_q_c_p_item_text_ae7ba0bdb75c897b028388e45bfd435fa}{set\+Selected\+Color} (const Q\+Color \&color)
  44. \item
  45. void \hyperlink{class_q_c_p_item_text_a9b9ec6eea0eb0603977ff84d4c78d0a3}{set\+Pen} (const Q\+Pen \&pen)
  46. \item
  47. void \hyperlink{class_q_c_p_item_text_a291febe586f0da3f1c392e77bef4aa20}{set\+Selected\+Pen} (const Q\+Pen \&pen)
  48. \item
  49. void \hyperlink{class_q_c_p_item_text_a1c7e131516df2ed8d941ef31240ded8e}{set\+Brush} (const Q\+Brush \&brush)
  50. \item
  51. void \hyperlink{class_q_c_p_item_text_a6b8377eeb2af75eb9528422671ac16cb}{set\+Selected\+Brush} (const Q\+Brush \&brush)
  52. \item
  53. void \hyperlink{class_q_c_p_item_text_a94ad60ebe04f5c07c35e7c2029e96b1f}{set\+Font} (const Q\+Font \&font)
  54. \item
  55. void \hyperlink{class_q_c_p_item_text_a0be2841772f83663c4db307928b82816}{set\+Selected\+Font} (const Q\+Font \&font)
  56. \item
  57. void \hyperlink{class_q_c_p_item_text_a3dacdda0ac88f99a05b333b977c48747}{set\+Text} (const Q\+String \&text)
  58. \item
  59. void \hyperlink{class_q_c_p_item_text_a781cdf8c640fc6a055dcff1e675c8c7a}{set\+Position\+Alignment} (Qt\+::\+Alignment alignment)
  60. \item
  61. void \hyperlink{class_q_c_p_item_text_ab5bc0684c4d1bed81949a11b34dba478}{set\+Text\+Alignment} (Qt\+::\+Alignment alignment)
  62. \item
  63. void \hyperlink{class_q_c_p_item_text_a4bcc10cd97952c3f749d75824b5077f0}{set\+Rotation} (double degrees)
  64. \item
  65. void \hyperlink{class_q_c_p_item_text_aeea8a3e01f135f9dd0bb08f51db66310}{set\+Padding} (const Q\+Margins \&padding)
  66. \item
  67. virtual double \hyperlink{class_q_c_p_item_text_a285b95bb6634c2e4f7768abb7a8bc69c}{select\+Test} (const Q\+Point\+F \&pos, bool only\+Selectable, Q\+Variant $\ast$details=0) const
  68. \end{DoxyCompactItemize}
  69. \subsection*{Atributos públicos}
  70. \begin{DoxyCompactItemize}
  71. \item
  72. \hypertarget{class_q_c_p_item_text_a0d228a00e819022b5690c65762721129}{}\hyperlink{class_q_c_p_item_position}{Q\+C\+P\+Item\+Position} $\ast$const {\bfseries position}\label{class_q_c_p_item_text_a0d228a00e819022b5690c65762721129}
  73. \item
  74. \hypertarget{class_q_c_p_item_text_a6354d8762182a3502103fabe5fbb8512}{}\hyperlink{class_q_c_p_item_anchor}{Q\+C\+P\+Item\+Anchor} $\ast$const {\bfseries top\+Left}\label{class_q_c_p_item_text_a6354d8762182a3502103fabe5fbb8512}
  75. \item
  76. \hypertarget{class_q_c_p_item_text_a5c87ee162cbbe3d166b97826c8849304}{}\hyperlink{class_q_c_p_item_anchor}{Q\+C\+P\+Item\+Anchor} $\ast$const {\bfseries top}\label{class_q_c_p_item_text_a5c87ee162cbbe3d166b97826c8849304}
  77. \item
  78. \hypertarget{class_q_c_p_item_text_ad18ac45cb4cc135de1eb78f2e86b6504}{}\hyperlink{class_q_c_p_item_anchor}{Q\+C\+P\+Item\+Anchor} $\ast$const {\bfseries top\+Right}\label{class_q_c_p_item_text_ad18ac45cb4cc135de1eb78f2e86b6504}
  79. \item
  80. \hypertarget{class_q_c_p_item_text_aef159622ce6502412e782a21ba6d84f2}{}\hyperlink{class_q_c_p_item_anchor}{Q\+C\+P\+Item\+Anchor} $\ast$const {\bfseries right}\label{class_q_c_p_item_text_aef159622ce6502412e782a21ba6d84f2}
  81. \item
  82. \hypertarget{class_q_c_p_item_text_a8ad47045c29af43b0312f7d93bb74374}{}\hyperlink{class_q_c_p_item_anchor}{Q\+C\+P\+Item\+Anchor} $\ast$const {\bfseries bottom\+Right}\label{class_q_c_p_item_text_a8ad47045c29af43b0312f7d93bb74374}
  83. \item
  84. \hypertarget{class_q_c_p_item_text_a94aeec080f877d3d1d0c3d8ffc10e9e6}{}\hyperlink{class_q_c_p_item_anchor}{Q\+C\+P\+Item\+Anchor} $\ast$const {\bfseries bottom}\label{class_q_c_p_item_text_a94aeec080f877d3d1d0c3d8ffc10e9e6}
  85. \item
  86. \hypertarget{class_q_c_p_item_text_a6a1c872ad3789ecafcaeac2066e218a0}{}\hyperlink{class_q_c_p_item_anchor}{Q\+C\+P\+Item\+Anchor} $\ast$const {\bfseries bottom\+Left}\label{class_q_c_p_item_text_a6a1c872ad3789ecafcaeac2066e218a0}
  87. \item
  88. \hypertarget{class_q_c_p_item_text_ab8c6c6e1df36256986fab1463c0a1d38}{}\hyperlink{class_q_c_p_item_anchor}{Q\+C\+P\+Item\+Anchor} $\ast$const {\bfseries left}\label{class_q_c_p_item_text_ab8c6c6e1df36256986fab1463c0a1d38}
  89. \end{DoxyCompactItemize}
  90. \subsection*{Tipos protegidos}
  91. \begin{DoxyCompactItemize}
  92. \item
  93. \hypertarget{class_q_c_p_item_text_a14a84e58f72519c8ae1d7a4a1dd23f21}{}enum {\bfseries Anchor\+Index} \{ \\*
  94. {\bfseries ai\+Top\+Left},
  95. {\bfseries ai\+Top},
  96. {\bfseries ai\+Top\+Right},
  97. {\bfseries ai\+Right},
  98. \\*
  99. {\bfseries ai\+Bottom\+Right},
  100. {\bfseries ai\+Bottom},
  101. {\bfseries ai\+Bottom\+Left},
  102. {\bfseries ai\+Left}
  103. \}\label{class_q_c_p_item_text_a14a84e58f72519c8ae1d7a4a1dd23f21}
  104. \end{DoxyCompactItemize}
  105. \subsection*{Métodos protegidos}
  106. \begin{DoxyCompactItemize}
  107. \item
  108. \hypertarget{class_q_c_p_item_text_a8793adb271ab79b4cf391dc55e9987f1}{}virtual void {\bfseries draw} (\hyperlink{class_q_c_p_painter}{Q\+C\+P\+Painter} $\ast$painter)\label{class_q_c_p_item_text_a8793adb271ab79b4cf391dc55e9987f1}
  109. \item
  110. \hypertarget{class_q_c_p_item_text_ad248f988534a9d07bc7c220a2457142a}{}virtual Q\+Point\+F {\bfseries anchor\+Pixel\+Point} (int anchor\+Id) const \label{class_q_c_p_item_text_ad248f988534a9d07bc7c220a2457142a}
  111. \item
  112. \hypertarget{class_q_c_p_item_text_aa6e478b1ce198eace89157c4cacc3ddc}{}Q\+Point\+F {\bfseries get\+Text\+Draw\+Point} (const Q\+Point\+F \&pos, const Q\+Rect\+F \&rect, Qt\+::\+Alignment position\+Alignment) const \label{class_q_c_p_item_text_aa6e478b1ce198eace89157c4cacc3ddc}
  113. \item
  114. \hypertarget{class_q_c_p_item_text_a23d391bd6471c45e73f45add67ede902}{}Q\+Font {\bfseries main\+Font} () const \label{class_q_c_p_item_text_a23d391bd6471c45e73f45add67ede902}
  115. \item
  116. \hypertarget{class_q_c_p_item_text_ad7bf17e4945cc86bbf9a36331da059a0}{}Q\+Color {\bfseries main\+Color} () const \label{class_q_c_p_item_text_ad7bf17e4945cc86bbf9a36331da059a0}
  117. \item
  118. \hypertarget{class_q_c_p_item_text_a9ade32d362b22853659201c738269e2a}{}Q\+Pen {\bfseries main\+Pen} () const \label{class_q_c_p_item_text_a9ade32d362b22853659201c738269e2a}
  119. \item
  120. \hypertarget{class_q_c_p_item_text_a10d6585a030633aa79d5ebc5a437f183}{}Q\+Brush {\bfseries main\+Brush} () const \label{class_q_c_p_item_text_a10d6585a030633aa79d5ebc5a437f183}
  121. \end{DoxyCompactItemize}
  122. \subsection*{Atributos protegidos}
  123. \begin{DoxyCompactItemize}
  124. \item
  125. \hypertarget{class_q_c_p_item_text_a8407f284ad867f627878cc26ef433d08}{}Q\+Color {\bfseries m\+Color}\label{class_q_c_p_item_text_a8407f284ad867f627878cc26ef433d08}
  126. \item
  127. \hypertarget{class_q_c_p_item_text_a7eb64e42f5f7998a97d8907ad25933c1}{}Q\+Color {\bfseries m\+Selected\+Color}\label{class_q_c_p_item_text_a7eb64e42f5f7998a97d8907ad25933c1}
  128. \item
  129. \hypertarget{class_q_c_p_item_text_aa02388705dbbff1bf7b8aa872b5f579c}{}Q\+Pen {\bfseries m\+Pen}\label{class_q_c_p_item_text_aa02388705dbbff1bf7b8aa872b5f579c}
  130. \item
  131. \hypertarget{class_q_c_p_item_text_a8eaec649606d6ead2d8d4dcb5691777c}{}Q\+Pen {\bfseries m\+Selected\+Pen}\label{class_q_c_p_item_text_a8eaec649606d6ead2d8d4dcb5691777c}
  132. \item
  133. \hypertarget{class_q_c_p_item_text_a2535911875faa459b8337f2efccb5cb8}{}Q\+Brush {\bfseries m\+Brush}\label{class_q_c_p_item_text_a2535911875faa459b8337f2efccb5cb8}
  134. \item
  135. \hypertarget{class_q_c_p_item_text_a28ccd097b42a216d81db9c6869f54a59}{}Q\+Brush {\bfseries m\+Selected\+Brush}\label{class_q_c_p_item_text_a28ccd097b42a216d81db9c6869f54a59}
  136. \item
  137. \hypertarget{class_q_c_p_item_text_a1dc87fe2a824820d549ffd7e644eef8d}{}Q\+Font {\bfseries m\+Font}\label{class_q_c_p_item_text_a1dc87fe2a824820d549ffd7e644eef8d}
  138. \item
  139. \hypertarget{class_q_c_p_item_text_a6702f141fae590b2f4f1ec02fe9f8bd5}{}Q\+Font {\bfseries m\+Selected\+Font}\label{class_q_c_p_item_text_a6702f141fae590b2f4f1ec02fe9f8bd5}
  140. \item
  141. \hypertarget{class_q_c_p_item_text_a2dec3e08c11f51639629374ecec3bd62}{}Q\+String {\bfseries m\+Text}\label{class_q_c_p_item_text_a2dec3e08c11f51639629374ecec3bd62}
  142. \item
  143. \hypertarget{class_q_c_p_item_text_a6c27f7dc1a962a04b32430cf99f04654}{}Qt\+::\+Alignment {\bfseries m\+Position\+Alignment}\label{class_q_c_p_item_text_a6c27f7dc1a962a04b32430cf99f04654}
  144. \item
  145. \hypertarget{class_q_c_p_item_text_acdb2e50c38e83da00f083771efbd213f}{}Qt\+::\+Alignment {\bfseries m\+Text\+Alignment}\label{class_q_c_p_item_text_acdb2e50c38e83da00f083771efbd213f}
  146. \item
  147. \hypertarget{class_q_c_p_item_text_ac37df0061552225d2277e1ee3b48f2cb}{}double {\bfseries m\+Rotation}\label{class_q_c_p_item_text_ac37df0061552225d2277e1ee3b48f2cb}
  148. \item
  149. \hypertarget{class_q_c_p_item_text_ae7b3ef0ce6046efd4b346d28f2e1fb67}{}Q\+Margins {\bfseries m\+Padding}\label{class_q_c_p_item_text_ae7b3ef0ce6046efd4b346d28f2e1fb67}
  150. \end{DoxyCompactItemize}
  151. \subsection*{Otros miembros heredados}
  152. \subsection{Descripción detallada}
  153. A text label.
  154. Its position is defined by the member {\itshape position} and the setting of \hyperlink{class_q_c_p_item_text_a781cdf8c640fc6a055dcff1e675c8c7a}{set\+Position\+Alignment}. The latter controls which part of the text rect shall be aligned with {\itshape position}.
  155. The text alignment itself (i.\+e. left, center, right) can be controlled with \hyperlink{class_q_c_p_item_text_ab5bc0684c4d1bed81949a11b34dba478}{set\+Text\+Alignment}.
  156. The text may be rotated around the {\itshape position} point with \hyperlink{class_q_c_p_item_text_a4bcc10cd97952c3f749d75824b5077f0}{set\+Rotation}.
  157. \subsection{Documentación del constructor y destructor}
  158. \hypertarget{class_q_c_p_item_text_a77ff96a2972a00872ff8f8c67143abbe}{}\index{Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}!Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}}
  159. \index{Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}!Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}}
  160. \subsubsection[{Q\+C\+P\+Item\+Text}]{\setlength{\rightskip}{0pt plus 5cm}Q\+C\+P\+Item\+Text\+::\+Q\+C\+P\+Item\+Text (
  161. \begin{DoxyParamCaption}
  162. \item[{{\bf Q\+Custom\+Plot} $\ast$}]{parent\+Plot}
  163. \end{DoxyParamCaption}
  164. )}\label{class_q_c_p_item_text_a77ff96a2972a00872ff8f8c67143abbe}
  165. Creates a text item and sets default values.
  166. The constructed item can be added to the plot with \hyperlink{class_q_custom_plot_aa500620379262321685cb7a7674cbd2a}{Q\+Custom\+Plot\+::add\+Item}.
  167. \subsection{Documentación de las funciones miembro}
  168. \hypertarget{class_q_c_p_item_text_a285b95bb6634c2e4f7768abb7a8bc69c}{}\index{Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}!select\+Test@{select\+Test}}
  169. \index{select\+Test@{select\+Test}!Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}}
  170. \subsubsection[{select\+Test}]{\setlength{\rightskip}{0pt plus 5cm}double Q\+C\+P\+Item\+Text\+::select\+Test (
  171. \begin{DoxyParamCaption}
  172. \item[{const Q\+Point\+F \&}]{pos, }
  173. \item[{bool}]{only\+Selectable, }
  174. \item[{Q\+Variant $\ast$}]{details = {\ttfamily 0}}
  175. \end{DoxyParamCaption}
  176. ) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_q_c_p_item_text_a285b95bb6634c2e4f7768abb7a8bc69c}
  177. This function is used to decide whether a click hits a layerable object or not.
  178. {\itshape pos} is a point in pixel coordinates on the \hyperlink{class_q_custom_plot}{Q\+Custom\+Plot} surface. This function returns the shortest pixel distance of this point to the object. If the object is either invisible or the distance couldn\textquotesingle{}t be determined, -\/1.\+0 is returned. Further, if {\itshape only\+Selectable} is true and the object is not selectable, -\/1.\+0 is returned, too.
  179. If the item is represented not by single lines but by an area like \hyperlink{class_q_c_p_item_rect}{Q\+C\+P\+Item\+Rect} or \hyperlink{class_q_c_p_item_text}{Q\+C\+P\+Item\+Text}, a click inside the area returns a constant value greater zero (typically the selection\+Tolerance of the parent \hyperlink{class_q_custom_plot}{Q\+Custom\+Plot} multiplied by 0.\+99). If the click lies outside the area, this function returns -\/1.\+0.
  180. Providing a constant value for area objects allows selecting line objects even when they are obscured by such area objects, by clicking close to the lines (i.\+e. closer than 0.\+99$\ast$selection\+Tolerance).
  181. The actual setting of the selection state is not done by this function. This is handled by the parent \hyperlink{class_q_custom_plot}{Q\+Custom\+Plot} when the mouse\+Release\+Event occurs, and the finally selected object is notified via the select\+Event/deselect\+Event methods.
  182. {\itshape details} is an optional output parameter. Every layerable subclass may place any information in {\itshape details}. This information will be passed to select\+Event when the parent \hyperlink{class_q_custom_plot}{Q\+Custom\+Plot} decides on the basis of this select\+Test call, that the object was successfully selected. The subsequent call to select\+Event will carry the {\itshape details}. This is useful for multi-\/part objects (like \hyperlink{class_q_c_p_axis}{Q\+C\+P\+Axis}). This way, a possibly complex calculation to decide which part was clicked is only done once in \hyperlink{class_q_c_p_item_text_a285b95bb6634c2e4f7768abb7a8bc69c}{select\+Test}. The result (i.\+e. the actually clicked part) can then be placed in {\itshape details}. So in the subsequent select\+Event, the decision which part was selected doesn\textquotesingle{}t have to be done a second time for a single selection operation.
  183. You may pass 0 as {\itshape details} to indicate that you are not interested in those selection details.
  184. \begin{DoxySeeAlso}{Ver también}
  185. select\+Event, deselect\+Event, \hyperlink{class_q_custom_plot_a5ee1e2f6ae27419deca53e75907c27e5}{Q\+Custom\+Plot\+::set\+Interactions}
  186. \end{DoxySeeAlso}
  187. Implementa \hyperlink{class_q_c_p_abstract_item_a96d522d10ffc0413b9a366c6f7f0476b}{Q\+C\+P\+Abstract\+Item}.
  188. \hypertarget{class_q_c_p_item_text_a1c7e131516df2ed8d941ef31240ded8e}{}\index{Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}!set\+Brush@{set\+Brush}}
  189. \index{set\+Brush@{set\+Brush}!Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}}
  190. \subsubsection[{set\+Brush}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Item\+Text\+::set\+Brush (
  191. \begin{DoxyParamCaption}
  192. \item[{const Q\+Brush \&}]{brush}
  193. \end{DoxyParamCaption}
  194. )}\label{class_q_c_p_item_text_a1c7e131516df2ed8d941ef31240ded8e}
  195. Sets the brush that will be used do fill the background of the text. To disable the background, set {\itshape brush} to Qt\+::\+No\+Brush.
  196. \begin{DoxySeeAlso}{Ver también}
  197. \hyperlink{class_q_c_p_item_text_a6b8377eeb2af75eb9528422671ac16cb}{set\+Selected\+Brush}, \hyperlink{class_q_c_p_item_text_a9b9ec6eea0eb0603977ff84d4c78d0a3}{set\+Pen}, \hyperlink{class_q_c_p_item_text_aeea8a3e01f135f9dd0bb08f51db66310}{set\+Padding}
  198. \end{DoxySeeAlso}
  199. \hypertarget{class_q_c_p_item_text_aa51efc0841fe52da9eaf8aff6fc8a8b2}{}\index{Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}!set\+Color@{set\+Color}}
  200. \index{set\+Color@{set\+Color}!Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}}
  201. \subsubsection[{set\+Color}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Item\+Text\+::set\+Color (
  202. \begin{DoxyParamCaption}
  203. \item[{const Q\+Color \&}]{color}
  204. \end{DoxyParamCaption}
  205. )}\label{class_q_c_p_item_text_aa51efc0841fe52da9eaf8aff6fc8a8b2}
  206. Sets the color of the text. \hypertarget{class_q_c_p_item_text_a94ad60ebe04f5c07c35e7c2029e96b1f}{}\index{Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}!set\+Font@{set\+Font}}
  207. \index{set\+Font@{set\+Font}!Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}}
  208. \subsubsection[{set\+Font}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Item\+Text\+::set\+Font (
  209. \begin{DoxyParamCaption}
  210. \item[{const Q\+Font \&}]{font}
  211. \end{DoxyParamCaption}
  212. )}\label{class_q_c_p_item_text_a94ad60ebe04f5c07c35e7c2029e96b1f}
  213. Sets the font of the text.
  214. \begin{DoxySeeAlso}{Ver también}
  215. \hyperlink{class_q_c_p_item_text_a0be2841772f83663c4db307928b82816}{set\+Selected\+Font}, \hyperlink{class_q_c_p_item_text_aa51efc0841fe52da9eaf8aff6fc8a8b2}{set\+Color}
  216. \end{DoxySeeAlso}
  217. \hypertarget{class_q_c_p_item_text_aeea8a3e01f135f9dd0bb08f51db66310}{}\index{Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}!set\+Padding@{set\+Padding}}
  218. \index{set\+Padding@{set\+Padding}!Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}}
  219. \subsubsection[{set\+Padding}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Item\+Text\+::set\+Padding (
  220. \begin{DoxyParamCaption}
  221. \item[{const Q\+Margins \&}]{padding}
  222. \end{DoxyParamCaption}
  223. )}\label{class_q_c_p_item_text_aeea8a3e01f135f9dd0bb08f51db66310}
  224. Sets the distance between the border of the text rectangle and the text. The appearance (and visibility) of the text rectangle can be controlled with \hyperlink{class_q_c_p_item_text_a9b9ec6eea0eb0603977ff84d4c78d0a3}{set\+Pen} and \hyperlink{class_q_c_p_item_text_a1c7e131516df2ed8d941ef31240ded8e}{set\+Brush}. \hypertarget{class_q_c_p_item_text_a9b9ec6eea0eb0603977ff84d4c78d0a3}{}\index{Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}!set\+Pen@{set\+Pen}}
  225. \index{set\+Pen@{set\+Pen}!Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}}
  226. \subsubsection[{set\+Pen}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Item\+Text\+::set\+Pen (
  227. \begin{DoxyParamCaption}
  228. \item[{const Q\+Pen \&}]{pen}
  229. \end{DoxyParamCaption}
  230. )}\label{class_q_c_p_item_text_a9b9ec6eea0eb0603977ff84d4c78d0a3}
  231. Sets the pen that will be used do draw a rectangular border around the text. To disable the border, set {\itshape pen} to Qt\+::\+No\+Pen.
  232. \begin{DoxySeeAlso}{Ver también}
  233. \hyperlink{class_q_c_p_item_text_a291febe586f0da3f1c392e77bef4aa20}{set\+Selected\+Pen}, \hyperlink{class_q_c_p_item_text_a1c7e131516df2ed8d941ef31240ded8e}{set\+Brush}, \hyperlink{class_q_c_p_item_text_aeea8a3e01f135f9dd0bb08f51db66310}{set\+Padding}
  234. \end{DoxySeeAlso}
  235. \hypertarget{class_q_c_p_item_text_a781cdf8c640fc6a055dcff1e675c8c7a}{}\index{Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}!set\+Position\+Alignment@{set\+Position\+Alignment}}
  236. \index{set\+Position\+Alignment@{set\+Position\+Alignment}!Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}}
  237. \subsubsection[{set\+Position\+Alignment}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Item\+Text\+::set\+Position\+Alignment (
  238. \begin{DoxyParamCaption}
  239. \item[{Qt\+::\+Alignment}]{alignment}
  240. \end{DoxyParamCaption}
  241. )}\label{class_q_c_p_item_text_a781cdf8c640fc6a055dcff1e675c8c7a}
  242. Sets which point of the text rect shall be aligned with {\itshape position}.
  243. Examples\+: \begin{DoxyItemize}
  244. \item If {\itshape alignment} is {\ttfamily Qt\+::\+Align\+H\+Center $\vert$ Qt\+::\+Align\+Top}, the text will be positioned such that the top of the text rect will be horizontally centered on {\itshape position}. \item If {\itshape alignment} is {\ttfamily Qt\+::\+Align\+Left $\vert$ Qt\+::\+Align\+Bottom}, {\itshape position} will indicate the bottom left corner of the text rect.\end{DoxyItemize}
  245. If you want to control the alignment of (multi-\/lined) text within the text rect, use \hyperlink{class_q_c_p_item_text_ab5bc0684c4d1bed81949a11b34dba478}{set\+Text\+Alignment}. \hypertarget{class_q_c_p_item_text_a4bcc10cd97952c3f749d75824b5077f0}{}\index{Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}!set\+Rotation@{set\+Rotation}}
  246. \index{set\+Rotation@{set\+Rotation}!Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}}
  247. \subsubsection[{set\+Rotation}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Item\+Text\+::set\+Rotation (
  248. \begin{DoxyParamCaption}
  249. \item[{double}]{degrees}
  250. \end{DoxyParamCaption}
  251. )}\label{class_q_c_p_item_text_a4bcc10cd97952c3f749d75824b5077f0}
  252. Sets the angle in degrees by which the text (and the text rectangle, if visible) will be rotated around {\itshape position}. \hypertarget{class_q_c_p_item_text_a6b8377eeb2af75eb9528422671ac16cb}{}\index{Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}!set\+Selected\+Brush@{set\+Selected\+Brush}}
  253. \index{set\+Selected\+Brush@{set\+Selected\+Brush}!Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}}
  254. \subsubsection[{set\+Selected\+Brush}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Item\+Text\+::set\+Selected\+Brush (
  255. \begin{DoxyParamCaption}
  256. \item[{const Q\+Brush \&}]{brush}
  257. \end{DoxyParamCaption}
  258. )}\label{class_q_c_p_item_text_a6b8377eeb2af75eb9528422671ac16cb}
  259. Sets the brush that will be used do fill the background of the text, when the item is selected. To disable the background, set {\itshape brush} to Qt\+::\+No\+Brush.
  260. \begin{DoxySeeAlso}{Ver también}
  261. \hyperlink{class_q_c_p_item_text_a1c7e131516df2ed8d941ef31240ded8e}{set\+Brush}
  262. \end{DoxySeeAlso}
  263. \hypertarget{class_q_c_p_item_text_ae7ba0bdb75c897b028388e45bfd435fa}{}\index{Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}!set\+Selected\+Color@{set\+Selected\+Color}}
  264. \index{set\+Selected\+Color@{set\+Selected\+Color}!Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}}
  265. \subsubsection[{set\+Selected\+Color}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Item\+Text\+::set\+Selected\+Color (
  266. \begin{DoxyParamCaption}
  267. \item[{const Q\+Color \&}]{color}
  268. \end{DoxyParamCaption}
  269. )}\label{class_q_c_p_item_text_ae7ba0bdb75c897b028388e45bfd435fa}
  270. Sets the color of the text that will be used when the item is selected. \hypertarget{class_q_c_p_item_text_a0be2841772f83663c4db307928b82816}{}\index{Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}!set\+Selected\+Font@{set\+Selected\+Font}}
  271. \index{set\+Selected\+Font@{set\+Selected\+Font}!Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}}
  272. \subsubsection[{set\+Selected\+Font}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Item\+Text\+::set\+Selected\+Font (
  273. \begin{DoxyParamCaption}
  274. \item[{const Q\+Font \&}]{font}
  275. \end{DoxyParamCaption}
  276. )}\label{class_q_c_p_item_text_a0be2841772f83663c4db307928b82816}
  277. Sets the font of the text that will be used when the item is selected.
  278. \begin{DoxySeeAlso}{Ver también}
  279. \hyperlink{class_q_c_p_item_text_a94ad60ebe04f5c07c35e7c2029e96b1f}{set\+Font}
  280. \end{DoxySeeAlso}
  281. \hypertarget{class_q_c_p_item_text_a291febe586f0da3f1c392e77bef4aa20}{}\index{Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}!set\+Selected\+Pen@{set\+Selected\+Pen}}
  282. \index{set\+Selected\+Pen@{set\+Selected\+Pen}!Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}}
  283. \subsubsection[{set\+Selected\+Pen}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Item\+Text\+::set\+Selected\+Pen (
  284. \begin{DoxyParamCaption}
  285. \item[{const Q\+Pen \&}]{pen}
  286. \end{DoxyParamCaption}
  287. )}\label{class_q_c_p_item_text_a291febe586f0da3f1c392e77bef4aa20}
  288. Sets the pen that will be used do draw a rectangular border around the text, when the item is selected. To disable the border, set {\itshape pen} to Qt\+::\+No\+Pen.
  289. \begin{DoxySeeAlso}{Ver también}
  290. \hyperlink{class_q_c_p_item_text_a9b9ec6eea0eb0603977ff84d4c78d0a3}{set\+Pen}
  291. \end{DoxySeeAlso}
  292. \hypertarget{class_q_c_p_item_text_a3dacdda0ac88f99a05b333b977c48747}{}\index{Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}!set\+Text@{set\+Text}}
  293. \index{set\+Text@{set\+Text}!Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}}
  294. \subsubsection[{set\+Text}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Item\+Text\+::set\+Text (
  295. \begin{DoxyParamCaption}
  296. \item[{const Q\+String \&}]{text}
  297. \end{DoxyParamCaption}
  298. )}\label{class_q_c_p_item_text_a3dacdda0ac88f99a05b333b977c48747}
  299. Sets the text that will be displayed. Multi-\/line texts are supported by inserting a line break character, e.\+g. \textquotesingle{}~\newline
  300. \textquotesingle{}.
  301. \begin{DoxySeeAlso}{Ver también}
  302. \hyperlink{class_q_c_p_item_text_a94ad60ebe04f5c07c35e7c2029e96b1f}{set\+Font}, \hyperlink{class_q_c_p_item_text_aa51efc0841fe52da9eaf8aff6fc8a8b2}{set\+Color}, \hyperlink{class_q_c_p_item_text_ab5bc0684c4d1bed81949a11b34dba478}{set\+Text\+Alignment}
  303. \end{DoxySeeAlso}
  304. \hypertarget{class_q_c_p_item_text_ab5bc0684c4d1bed81949a11b34dba478}{}\index{Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}!set\+Text\+Alignment@{set\+Text\+Alignment}}
  305. \index{set\+Text\+Alignment@{set\+Text\+Alignment}!Q\+C\+P\+Item\+Text@{Q\+C\+P\+Item\+Text}}
  306. \subsubsection[{set\+Text\+Alignment}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Item\+Text\+::set\+Text\+Alignment (
  307. \begin{DoxyParamCaption}
  308. \item[{Qt\+::\+Alignment}]{alignment}
  309. \end{DoxyParamCaption}
  310. )}\label{class_q_c_p_item_text_ab5bc0684c4d1bed81949a11b34dba478}
  311. Controls how (multi-\/lined) text is aligned inside the text rect (typically Qt\+::\+Align\+Left, Qt\+::\+Align\+Center or Qt\+::\+Align\+Right).
  312. La documentación para esta clase fue generada a partir de los siguientes ficheros\+:\begin{DoxyCompactItemize}
  313. \item
  314. \hyperlink{qcustomplot_8h}{qcustomplot.\+h}\item
  315. \hyperlink{qcustomplot_8cpp}{qcustomplot.\+cpp}\end{DoxyCompactItemize}