Referência de Objetos ou componentes

Application
ClipBoard
Printer
QBitMap
QButton
QCanvas
QCheckBox
QComboBox
QComPort
QCoolBtn
QDirTree
QEdit
QFileListBox
QFileStream
QFont
QFontDialog
QForm
QGauge
QGlassFrame
QGroupBox
QHeader
QImage
QImageList
QLabel
QListBox
QListView
QMainMenu
QMemoryStream
QMenuItem
QMySQL
QNotifyIconData
QOpenDialog
QOleObject
QOleContainer
QOutLine
QOvalBtn
QPanel
QPopMenu
QRadioButton
QRect
QRegistry
QRichEdit
QSaveDialog
QScrollBar
QScrolBox
QSocket
QSplitter
QStatusBar
QStringGrid
QStringList
QTabControl
QTimer
QTrackBar
QTreeView
ComponenteQLabel (Rótulo)

QLabel é um componente usado para mostrar um texto em  2D, 3D, e/ou rotacionado
num  form. Note que labels  rotacionados somente funcionam com fontes  true  type.  
Demais componentes    - Click Barra lateral esquerda
Informações adicionais - Click propriedades  em azul
Propriedades de QLabel
   Campo    Tipo    R/W    Padrão    Suporte#
 Align  INTEGER   RW   alNone   W
 Alignment  INTEGER   RW   taLeftJustify   W
 Angle  INTEGER   RW   0   W
 Autosize  INTEGER   RW   False   W
 Caption  STRING   RW      WXG
 Color  INTEGER   RW      WX
 Cursor  INTEGER   RW   crDefault   W
 Enabled  INTEGER   RW   True   WXG
 Font  QFONT   W      W
 Handle  INTEGER   R      W
 Height  INTEGER   RW      WXG
 Hint  STRING   RW      WXG
 LabelStyle  INTEGER   RW   tsNone   W
 Layout  INTEGER   RW   tlTop   W
 Left  INTEGER   RW   0   WXG
 LowerColor  INTEGER   RW   clBtnShadow   W
 Parent  QFORM/QPANEL/QTABCONTROL   W      WXG
 PopupMenu  QPOPUPMENU   W      W
 ShowHint  INTEGER   RW   False   WXG
 Tag  INTEGER   RW      WXG
 Top  INTEGER   RW   0   WXG
 Transparent  INTEGER   RW   False   W
 UpperColor  INTEGER   RW   clBtnHighlight   W
 Visible  INTEGER   RW   True   WXG
 Width  INTEGER   RW      WXG
 Wordwrap  INTEGER   RW   False   W
+ R = Propriedade de leitura    W = Propriedade de escrita    # W = Windows  X = Linux  G = Solaris
Eventos de QLabel
   Evento    Tipo    Ocorre quando...    Parâmetros  Suporte
 OnClick   VOID   Usuário clicou no label   0   W
 OnDblClick   VOID   Usuário clicou 2 vezes no label   0   W
 OnMouseDown   SUB (Button%, X%, Y%, Shift%)   Botão do mouse pressionado   4   W
 OnMouseMove   SUB (X%, Y%, Shift%)   Mouse movido   3   W
 OnMouseUp   SUB (Button%, X%, Y%, Shift%)   Botão do mouse foi solto   4   W
 WndProc   SUB (Hwnd%, Msg%, wParam%, lParam%)   Mensagens enviadas para QLabel   4   W
QLabel exemplo:

  DIM Form AS QForm
  DIM Label1 AS QLabel

  Label1.Parent = Form

  Label1.Text = "Hello"
  Form.ShowModal

'--------------------------------------------------------

  ' Note que labels rotacionados trabalham somente com fontes true type,
  ' tais como  Arial,  Courier New
, etc.

  DIM Form AS QForm
  DIM Label1 AS QLabel
  DIM Font AS QFont

  Font.Name = "Arial"

  Label1.Parent = Form
  Label1.Font = Font
  Label1.Text = "Hello"
  Label1.Angle = 45
  Form.ShowModal


Sinta-se à vontade para dar sugestões e fazer críticas construtivas.

Anterior           Alto da página           Página Inicial             Próxima