Movatterモバイル変換


[0]ホーム

URL:


We bake cookies in your browser for a better experience. Using this site means that you consent.Read More

Menu

Qt Documentation

Q3Grid Class

TheQ3Grid widget provides simple geometry management of its children.More...

Header:#include <Q3Grid>
Inherits:Q3Frame

Public Functions

Q3Grid(int n, QWidget * parent = 0, const char * name = 0, Qt::WindowFlags f = 0)
Q3Grid(int n, Qt::Orientation orient, QWidget * parent = 0, const char * name = 0, Qt::WindowFlags f = 0)
voidsetSpacing(int space)

Reimplemented Public Functions

virtual QSizesizeHint() const
  • 4 public functions inherited fromQ3Frame
  • 14 public functions inherited fromQFrame
  • 220 public functions inherited fromQWidget
  • 29 public functions inherited fromQObject
  • 12 public functions inherited fromQPaintDevice

Reimplemented Protected Functions

virtual voidframeChanged()
  • 5 protected functions inherited fromQ3Frame
  • 3 protected functions inherited fromQFrame
  • 37 protected functions inherited fromQWidget
  • 8 protected functions inherited fromQObject
  • 1 protected function inherited fromQPaintDevice

Additional Inherited Members

  • 2 properties inherited fromQ3Frame
  • 6 properties inherited fromQFrame
  • 58 properties inherited fromQWidget
  • 1 property inherited fromQObject
  • 19 public slots inherited fromQWidget
  • 1 public slot inherited fromQObject
  • 1 signal inherited fromQWidget
  • 1 signal inherited fromQObject
  • 4 static public members inherited fromQWidget
  • 7 static public members inherited fromQObject
  • 5 protected functions inherited fromQ3Frame
  • 3 protected functions inherited fromQFrame
  • 37 protected functions inherited fromQWidget
  • 8 protected functions inherited fromQObject
  • 1 protected function inherited fromQPaintDevice
  • 1 protected slot inherited fromQWidget

Detailed Description

TheQ3Grid widget provides simple geometry management of its children.

The grid places its widgets either in columns or in rows depending on its orientation.

The number of rowsor columns is defined in the constructor. All the grid's children will be placed and sized in accordance with theirsizeHint() andsizePolicy().

UsesetMargin() to add space around the grid itself, andsetSpacing() to add space between the widgets.

See alsoQ3VBox,Q3HBox, andQGridLayout.

Member Function Documentation

Q3Grid::Q3Grid(int n,QWidget * parent = 0, constchar * name = 0,Qt::WindowFlags f = 0)

Constructs a grid widget with parentparent, calledname.n specifies the number of columns. The widget flagsf are passed to theQ3Frame constructor.

Q3Grid::Q3Grid(int n,Qt::Orientation orient,QWidget * parent = 0, constchar * name = 0,Qt::WindowFlags f = 0)

Constructs a grid widget with parentparent, calledname. Iforient isHorizontal,n specifies the number of columns. Iforient isVertical,n specifies the number of rows. The widget flagsf are passed to theQ3Frame constructor.

[virtual protected]void Q3Grid::frameChanged()

Reimplemented fromQ3Frame::frameChanged().

void Q3Grid::setSpacing(int space)

Sets the spacing between the child widgets tospace.

[virtual]QSize Q3Grid::sizeHint() const

Reimplemented fromQWidget::sizeHint().

© 2016 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 theGNU 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.


[8]ページ先頭

©2009-2025 Movatter.jp