Qyoto  4.0.5
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Properties
QtGui.QGridLayout Class Reference

The QGridLayout class lays out widgets in a grid. More...

Inheritance diagram for QtGui.QGridLayout:
Collaboration diagram for QtGui.QGridLayout:

Public Member Functions

 QGridLayout ()
 
 
 QGridLayout (QWidget parent)
 
 
override void CreateProxy ()
 
override void AddItem (IQLayoutItem arg1)
 
 
new void AddItem (IQLayoutItem item, int row, int column, int rowSpan=1, int columnSpan=1, Qt.AlignmentFlag arg6=0)
 
 
new void AddLayout (QLayout arg1, int row, int column, Qt.AlignmentFlag arg4=0)
 
 
new void AddLayout (QLayout arg1, int row, int column, int rowSpan, int columnSpan, Qt.AlignmentFlag arg6=0)
 
 
new void AddWidget (QWidget w)
 
 
new void AddWidget (QWidget arg1, int row, int column, Qt.AlignmentFlag arg4=0)
 
 
new void AddWidget (QWidget arg1, int row, int column, int rowSpan, int columnSpan, Qt.AlignmentFlag arg6=0)
 
 
new QRect CellRect (int row, int column)
 
 
new int ColumnCount ()
 
 
new int ColumnMinimumWidth (int column)
 
 
new int ColumnStretch (int column)
 
 
override int Count ()
 
 
override Qt.Orientation ExpandingDirections ()
 
 
new void GetItemPosition (int idx, ref int row, ref int column, ref int rowSpan, ref int columnSpan)
 
 
override bool HasHeightForWidth ()
 
 
override int HeightForWidth (int arg1)
 
 
override void Invalidate ()
 
 
override IQLayoutItem ItemAt (int index)
 
 
new IQLayoutItem ItemAtPosition (int row, int column)
 
 
override QSize MaximumSize ()
 
 
override int MinimumHeightForWidth (int arg1)
 
 
override QSize MinimumSize ()
 
 
new int RowCount ()
 
 
new int RowMinimumHeight (int row)
 
 
new int RowStretch (int row)
 
 
new void SetColumnMinimumWidth (int column, int minSize)
 
 
new void SetColumnStretch (int column, int stretch)
 
 
new void SetDefaultPositioning (int n, Qt.Orientation orient)
 
new void SetRowMinimumHeight (int row, int minSize)
 
 
new void SetRowStretch (int row, int stretch)
 
 
override QSize SizeHint ()
 
 
override IQLayoutItem TakeAt (int index)
 
 
new void Dispose ()
 
- Public Member Functions inherited from QtGui.QLayout
 QLayout ()
 
 
 QLayout (QWidget parent)
 
 
override void CreateProxy ()
 
new bool Activate ()
 
 
new void AddWidget (QWidget w)
 
 
new QRect ContentsRect ()
 
 
new void GetContentsMargins (ref int left, ref int top, ref int right, ref int bottom)
 
 
virtual int IndexOf (QWidget arg1)
 
 
virtual bool IsEmpty ()
 
 
new bool IsEnabled ()
 
 
virtual QLayout Layout ()
 
 
new QWidget ParentWidget ()
 
 
new void RemoveItem (IQLayoutItem arg1)
 
 
new void RemoveWidget (QWidget w)
 
 
new bool SetAlignment (QWidget w, Qt.AlignmentFlag alignment)
 
 
new bool SetAlignment (QLayout l, Qt.AlignmentFlag alignment)
 
 
new void SetContentsMargins (int left, int top, int right, int bottom)
 
 
new void SetEnabled (bool arg1)
 
 
new int TotalHeightForWidth (int w)
 
new QSize TotalMaximumSize ()
 
new QSize TotalMinimumSize ()
 
new QSize TotalSizeHint ()
 
new void Update ()
 
 
new void Dispose ()
 
new QSizePolicy.ControlType ControlTypes ()
 
virtual QSpacerItem SpacerItem ()
 
virtual QWidget Widget ()
 
- Public Member Functions inherited from QtCore.QObject
 QObject (QObject parent=null)
 
 
new bool BlockSignals (bool b)
 
 
new
System.Collections.Generic.List
< QObject
Children ()
 
 
new bool Connect (QObject sender, string signal, string member, Qt.ConnectionType type=Qt.ConnectionType.AutoConnection)
 
 
new void DeleteLater ()
 
 
new bool Disconnect (QObject receiver, string member=null)
 
 
new bool Disconnect (string signal=null, QObject receiver=null, string member=null)
 
 
new void DumpObjectInfo ()
 
 
new void DumpObjectTree ()
 
 
new
System.Collections.Generic.List
< QByteArray
DynamicPropertyNames ()
 
 
virtual bool OnEvent (QEvent arg1)
 
 
virtual bool EventFilter (QObject arg1, QEvent arg2)
 
 
new bool Inherits (string classname)
 
 
new void InstallEventFilter (QObject arg1)
 
 
new bool IsWidgetType ()
 
 
new void KillTimer (int id)
 
 
new object Property (string name)
 
 
new void RemoveEventFilter (QObject arg1)
 
 
new bool SetProperty (string name, object value)
 
 
new void SetUserData (uint id, QObjectUserData data)
 
new bool SignalsBlocked ()
 
 
new int StartTimer (int interval)
 
 
new QObjectUserData UserData (uint id)
 
new void Dispose ()
 
- Public Member Functions inherited from QtCore.Qt
delegate QTextStream FuncQTextStreamQTextStream (QTextStream qTextStream)
 
delegate string FuncStringQByteArray (QByteArray qByteArray)
 
delegate QByteArray FuncQByteArrayString (string @string)
 
delegate void ActionQtMsgTypeString (QtMsgType qtMsgType, string @string)
 
delegate QObject FuncQObject ()
 
- Public Member Functions inherited from QtGui.IQLayoutItem
new QSizePolicy.ControlType ControlTypes ()
 
Qt.Orientation ExpandingDirections ()
 
bool HasHeightForWidth ()
 
int HeightForWidth (int arg1)
 
void Invalidate ()
 
bool IsEmpty ()
 
QLayout Layout ()
 
QSize MaximumSize ()
 
int MinimumHeightForWidth (int arg1)
 
QSize MinimumSize ()
 
QSize SizeHint ()
 
QSpacerItem SpacerItem ()
 
QWidget Widget ()
 

Static Public Member Functions

static string Tr (string s, string c=null)
 
static string Tr (string s, string c, int n)
 
static string TrUtf8 (string s, string c=null)
 
static string TrUtf8 (string s, string c, int n)
 
- Static Public Member Functions inherited from QtGui.QLayout
static QSize ClosestAcceptableSize (QWidget w, QSize s)
 
 
static string Tr (string s, string c=null)
 
static string Tr (string s, string c, int n)
 
static string TrUtf8 (string s, string c=null)
 
static string TrUtf8 (string s, string c, int n)
 
- Static Public Member Functions inherited from QtCore.QObject
static bool Connect (QObject sender, QMetaMethod signal, QObject receiver, QMetaMethod method, Qt.ConnectionType type=Qt.ConnectionType.AutoConnection)
 
 
static bool Connect (QObject sender, string signal, QObject receiver, string member, Qt.ConnectionType arg5=Qt.ConnectionType.AutoConnection)
 
 
static bool Disconnect (QObject sender, QMetaMethod signal, QObject receiver, QMetaMethod member)
 
 
static bool Disconnect (QObject sender, string signal, QObject receiver, string member)
 
 
static uint RegisterUserData ()
 
static string Tr (string s, string c=null)
 
 
static string Tr (string s, string c, int n)
 
 
static string TrUtf8 (string s, string c=null)
 
 
static string TrUtf8 (string s, string c, int n)
 
 
- Static Public Member Functions inherited from QtCore.Qt
static QDataStream Write (QDataStream s, object p)
 
static QDataStream Write (QDataStream arg1, QSizeF arg2)
 
static QTextStream Write (QTextStream s, Qt.FuncQTextStreamQTextStream f)
 
static QDataStream Write (QDataStream arg1, QPoint arg2)
 
static QDataStream Write (QDataStream arg1, QLineF arg2)
 
static QDataStream Write (QDataStream arg1, QPointF arg2)
 
static QDataStream Write (QDataStream arg1, QChar arg2)
 
static QDataStream Write (QDataStream arg1, QByteArray arg2)
 
static QDataStream Write (QDataStream arg1, QEasingCurve arg2)
 
static QDataStream Write (QDataStream arg1, QRectF arg2)
 
static QDataStream Write (QDataStream arg1, QDateTime arg2)
 
static QDataStream Write (QDataStream arg1, QUrl arg2)
 
static QDataStream Write (QDataStream arg1, QTime arg2)
 
static QDataStream Write (QDataStream arg1, QLocale arg2)
 
static QDataStream Write (QDataStream arg1, QBitArray arg2)
 
static QDataStream Write (QDataStream arg1, QUuid arg2)
 
static QDataStream Write (QDataStream arg1, QLine arg2)
 
static QDataStream Write (QDataStream arg1, QDate arg2)
 
static QDataStream Write (QDataStream @out, QRegExp regExp)
 
static QDataStream Write (QDataStream arg1, QRect arg2)
 
static QDataStream Write (QDataStream arg1, QSize arg2)
 
static QDataStream Write (QDataStream s, QVariant.Type p)
 
static QDataStream Write (QDataStream arg1, string arg2)
 
static QDataStream Write (QDataStream @out, System.Collections.Generic.List< string > list)
 
static QDataStream Read (QDataStream arg1, QChar arg2)
 
static QDataStream Read (QDataStream arg1, QLocale arg2)
 
static QDataStream Read (QDataStream arg1, QRect arg2)
 
static QDataStream Read (QDataStream arg1, QEasingCurve arg2)
 
static QDataStream Read (QDataStream arg1, QDate arg2)
 
static QDataStream Read (QDataStream arg1, QUrl arg2)
 
static QDataStream Read (QDataStream arg1, QUuid arg2)
 
static QTextStream Read (QTextStream s, Qt.FuncQTextStreamQTextStream f)
 
static QDataStream Read (QDataStream arg1, QLineF arg2)
 
static QDataStream Read (QDataStream arg1, QRectF arg2)
 
static QDataStream Read (QDataStream arg1, QPointF arg2)
 
static QDataStream Read (QDataStream arg1, QLine arg2)
 
static QDataStream Read (QDataStream arg1, QBitArray arg2)
 
static QDataStream Read (QDataStream arg1, QSize arg2)
 
static QDataStream Read (QDataStream arg1, QDateTime arg2)
 
static QDataStream Read (QDataStream arg1, QTime arg2)
 
static QDataStream Read (QDataStream arg1, QPoint arg2)
 
static QDataStream Read (QDataStream @in, QRegExp regExp)
 
static QDataStream Read (QDataStream s, object p)
 
static QDataStream Read (QDataStream arg1, QByteArray arg2)
 
static QDataStream Read (QDataStream arg1, QSizeF arg2)
 
static QDataStream Read (QDataStream arg1, string arg2)
 
static QDataStream Read (QDataStream s, QVariant.Type p)
 
static QDataStream Read (QDataStream @in, System.Collections.Generic.List< string > list)
 
static double qAcos (double v)
 
static void qAddPostRoutine (System.Action arg1)
 
static string qAppName ()
 
static double qAsin (double v)
 
static double qAtan (double v)
 
static double qAtan2 (double x, double y)
 
static void qBadAlloc ()
 
static int qCeil (double v)
 
static ushort qChecksum (string s, uint len)
 
static QByteArray qCompress (QByteArray data)
 
static QByteArray qCompress (QByteArray data, int compressionLevel=-1)
 
static QByteArray qCompress (Pointer< byte > data, int nbytes)
 
static QByteArray qCompress (Pointer< byte > data, int nbytes, int compressionLevel=-1)
 
static double qCos (double v)
 
static double qExp (double v)
 
static double qFabs (double v)
 
static double qFastCos (double x)
 
static double qFastSin (double x)
 
static string qFlagLocation (string method)
 
static int qFloor (double v)
 
static bool qFuzzyCompare (double p1, double p2)
 
static bool qFuzzyCompare (float p1, float p2)
 
static bool qFuzzyIsNull (double d)
 
static bool qFuzzyIsNull (float f)
 
static uint qHash (QBitArray key)
 
static uint qHash (QChar key)
 
static uint qHash (QStringRef key)
 
static uint qHash (QUrl url)
 
static uint qHash (QPersistentModelIndex index)
 
static uint qHash (QByteArray key)
 
static uint qHash (QModelIndex index)
 
static uint qHash (uint key)
 
static uint qHash (sbyte key)
 
static uint qHash (byte key)
 
static uint qHash (short key)
 
static uint qHash (NativeLong key)
 
static uint qHash (ushort key)
 
static uint qHash (long key)
 
static uint qHash (ulong key)
 
static uint qHash (int key)
 
static uint qHash (string key)
 
static uint qHash (NativeULong key)
 
static double qInf ()
 
static Qt.ActionQtMsgTypeString qInstallMsgHandler (Qt.ActionQtMsgTypeString arg1)
 
static int qIntCast (float f)
 
static int qIntCast (double f)
 
static bool qIsFinite (double d)
 
static bool qIsFinite (float f)
 
static bool qIsInf (float f)
 
static bool qIsInf (double d)
 
static bool qIsNaN (float f)
 
static bool qIsNaN (double d)
 
static bool qIsNull (float f)
 
static bool qIsNull (double d)
 
static double qLn (double v)
 
static double qPow (double x, double y)
 
static double qQNaN ()
 
static void qRegisterStaticPluginInstanceFunction (Qt.FuncQObject function)
 
static void qRemovePostRoutine (System.Action arg1)
 
static int qRound (double d)
 
static long qRound64 (double d)
 
static double qSNaN ()
 
static bool qSharedBuild ()
 
static double qSin (double v)
 
static double qSqrt (double v)
 
static bool qStringComparisonHelper (QStringRef s1, string s2)
 
static double qTan (double v)
 
static QByteArray qUncompress (QByteArray data)
 
static QByteArray qUncompress (Pointer< byte > data, int nbytes)
 
static string qVersion ()
 
static void Qbswap_helper (Pointer< byte > src, Pointer< byte > dest, int size)
 
static QByteArray Qgetenv (string varName)
 
static bool Qputenv (string varName, QByteArray value)
 
static int Qrand ()
 
static void Qsrand (uint seed)
 
static int Qstrcmp (QByteArray str1, QByteArray str2)
 
static int Qstrcmp (QByteArray str1, string str2)
 
static int Qstrcmp (string str1, QByteArray str2)
 
static int Qstrcmp (string str1, string str2)
 
static Pointer< sbyte > Qstrcpy (Pointer< sbyte > dst, string src)
 
static Pointer< sbyte > Qstrdup (string arg1)
 
static int Qstricmp (string arg1, string arg2)
 
static uint Qstrlen (string str)
 
static int Qstrncmp (string str1, string str2, uint len)
 
static Pointer< sbyte > Qstrncpy (Pointer< sbyte > dst, string src, uint len)
 
static int Qstrnicmp (string arg1, string arg2, uint len)
 
static uint Qstrnlen (string str, uint maxlen)
 
static string QtTrId (string id, int n=-1)
 

Protected Member Functions

 QGridLayout (System.Type dummy)
 
- Protected Member Functions inherited from QtGui.QLayout
 QLayout (System.Type dummy)
 
new void AddChildLayout (QLayout l)
 
 
new void AddChildWidget (QWidget w)
 
 
new QRect AlignmentRect (QRect arg1)
 
 
override void OnChildEvent (QChildEvent e)
 
 
new void OnWidgetEvent (QEvent arg1)
 
- Protected Member Functions inherited from QtCore.QObject
 QObject (System.Type dummy)
 
virtual void ConnectNotify (string signal)
 
 
virtual void OnCustomEvent (QEvent arg1)
 
 
new void OnDestroyed (QObject arg1=null)
 
 
virtual void DisconnectNotify (string signal)
 
 
new int Receivers (string signal)
 
 
new QObject Sender ()
 
 
new int SenderSignalIndex ()
 
 
virtual void OnTimerEvent (QTimerEvent arg1)
 
 

Properties

override QRect Geometry [get, set]
 
 
new int HorizontalSpacing [get, set]
 
new Qt.Corner OriginCorner [get, set]
 
 
new int spacing [get, set]
 
 
new int VerticalSpacing [get, set]
 
static new QMetaObject StaticMetaObject [get]
 
new IQGridLayoutSignals Emit [get]
 
- Properties inherited from QtGui.QLayout
virtual EventHandler
< QEventArgs< QEvent > > 
WidgetEvent
 
new Qt.AlignmentFlag Alignment [get, set]
 
 
new QMargins ContentsMargins [get, set]
 
 
virtual QRect Geometry [get, set]
 
 
new QWidget MenuBar [get, set]
 
 
new int Margin [get, set]
 
 
new int Spacing [get, set]
 
 
new SizeConstraint sizeConstraint [get, set]
 
 
static new QMetaObject StaticMetaObject [get]
 
new Qt.AlignmentFlag Align [get, set]
 
new IQLayoutSignals Emit [get]
 
- Properties inherited from QtCore.QObject
virtual EventHandler
< QEventArgs< QChildEvent > > 
ChildEvent
 
 
virtual EventHandler
< QEventArgs< QEvent > > 
CustomEvent
 
 
virtual EventHandler
< QEventArgs< QEvent > > 
Event
 
 
virtual EventHandler
< QEventArgs< QTimerEvent > > 
TimerEvent
 
 
Slot< QObjectDestroyedQObject
 
Slot Destroyed
 
 
new QObject Parent [get, set]
 
 
virtual System.IntPtr SmokeObject [get, set]
 
new string ObjectName [get, set]
 
 
static new QMetaObject StaticMetaObject [get]
 
 
static new QMetaObject StaticQtMetaObject [get]
 
new IQObjectSignals Emit [get]
 
- Properties inherited from QtGui.IQLayoutItem
Qt.AlignmentFlag Alignment [get, set]
 
QRect Geometry [get, set]
 

Additional Inherited Members

- Public Types inherited from QtGui.QLayout
enum  SizeConstraint {
  SetDefaultConstraint = 0, SetFixedSize = 3, SetMaximumSize = 4, SetMinAndMaxSize = 5,
  SetMinimumSize = 2, SetNoConstraint = 1
}
  More...
 
- Protected Attributes inherited from QtCore.QObject
object Q_EMIT = null
 
SmokeInvocation interceptor
 
readonly List< QEventHandler > eventFilters = new List<QEventHandler>()
 

Detailed Description

The QGridLayout class lays out widgets in a grid.

QGridLayout takes the space made available to it (by its parent layout or by the parentWidget()), divides it up into rows and columns, and puts each widget it manages into the correct cell.

Columns and rows behave identically; we will discuss columns, but there are equivalent functions for rows.

Each column has a minimum width and a stretch factor. The minimum width is the greatest of that set using setColumnMinimumWidth() and the minimum width of each widget in that column. The stretch factor is set using setColumnStretch() and determines how much of the available space the column will get over and above its necessary minimum.

Normally, each managed widget or layout is put into a cell of its own using addWidget(). It is also possible for a widget to occupy multiple cells using the row and column spanning overloads of addItem() and addWidget(). If you do this, QGridLayout will guess how to distribute the size over the columns/rows (based on the stretch factors).

To remove a widget from a layout, call removeWidget(). Calling QWidget::hide() on a widget also effectively removes the widget from the layout until QWidget::show() is called.

This illustration shows a fragment of a dialog with a five-column, three-row grid (the grid is shown overlaid in magenta):

Columns 0, 2 and 4 in this dialog fragment are made up of a QLabel, a QLineEdit, and a QListBox. Columns 1 and 3 are placeholders made with setColumnMinimumWidth(). Row 0 consists of three QLabel objects, row 1 of three QLineEdit objects and row 2 of three QListBox objects. We used placeholder columns (1 and 3) to get the right amount of space between the columns.

Note that the columns and rows are not equally wide or tall. If you want two columns to have the same width, you must set their minimum widths and stretch factors to be the same yourself. You do this using setColumnMinimumWidth() and setColumnStretch().

If the QGridLayout is not the top-level layout (i.e. does not manage all of the widget's area and children), you must add it to its parent layout when you create it, but before you do anything with it. The normal way to add a layout is by calling addLayout() on the parent layout.

Once you have added your layout you can start putting widgets and other layouts into the cells of your grid layout using addWidget(), addItem(), and addLayout().

QGridLayout also includes two margin widths: the contents margin and the spacing(). The contents margin is the width of the reserved space along each of the QGridLayout's four sides. The spacing() is the width of the automatically allocated spacing between neighboring boxes.

The default contents margin values are provided by the style. The default value Qt styles specify is 9 for child widgets and 11 for windows. The spacing defaults to the same as the margin width for a top-level layout, or to the same as the parent layout.

See also QBoxLayout, QStackedLayout, Layout Management, and Basic Layouts Example.

Constructor & Destructor Documentation

QtGui.QGridLayout.QGridLayout ( System.Type  dummy)
protected
QtGui.QGridLayout.QGridLayout ( )

Constructs a new grid layout.

You must insert this grid into another layout. You can insert widgets and layouts into this layout at any time, but laying out will not be performed before this is inserted into another layout.

QtGui.QGridLayout.QGridLayout ( QWidget  parent)

Constructs a new QGridLayout with parent widget, parent. The layout has one row and one column initially, and will expand when new items are inserted.

Member Function Documentation

override void QtGui.QGridLayout.AddItem ( IQLayoutItem  arg1)
virtual

Reimplemented from QLayout::addItem().

Implements QtGui.QLayout.

new void QtGui.QGridLayout.AddItem ( IQLayoutItem  item,
int  row,
int  column,
int  rowSpan = 1,
int  columnSpan = 1,
Qt.AlignmentFlag  arg6 = 0 
)

Adds item at position row, column, spanning rowSpan rows and columnSpan columns, and aligns it according to alignment. If rowSpan and/or columnSpan is -1, then the item will extend to the bottom and/or right edge, respectively. The layout takes ownership of the item.

Warning: Do not use this function to add child layouts or child widget items. Use addLayout() or addWidget() instead.

new void QtGui.QGridLayout.AddLayout ( QLayout  arg1,
int  row,
int  column,
Qt.AlignmentFlag  arg4 = 0 
)

Places the layout at position (row, column) in the grid. The top-left position is (0, 0).

The alignment is specified by alignment. The default alignment is 0, which means that the widget fills the entire cell.

A non-zero alignment indicates that the layout should not grow to fill the available space but should be sized according to sizeHint().

layout becomes a child of the grid layout.

new void QtGui.QGridLayout.AddLayout ( QLayout  arg1,
int  row,
int  column,
int  rowSpan,
int  columnSpan,
Qt.AlignmentFlag  arg6 = 0 
)

Places the layout at position (row, column) in the grid. The top-left position is (0, 0).

The alignment is specified by alignment. The default alignment is 0, which means that the widget fills the entire cell.

A non-zero alignment indicates that the layout should not grow to fill the available space but should be sized according to sizeHint().

layout becomes a child of the grid layout.

new void QtGui.QGridLayout.AddWidget ( QWidget  w)

Adds the given widget to the cell grid at row, column. The top-left position is (0, 0) by default.

The alignment is specified by alignment. The default alignment is 0, which means that the widget fills the entire cell.

new void QtGui.QGridLayout.AddWidget ( QWidget  arg1,
int  row,
int  column,
Qt.AlignmentFlag  arg4 = 0 
)

Adds the given widget to the cell grid at row, column. The top-left position is (0, 0) by default.

The alignment is specified by alignment. The default alignment is 0, which means that the widget fills the entire cell.

new void QtGui.QGridLayout.AddWidget ( QWidget  arg1,
int  row,
int  column,
int  rowSpan,
int  columnSpan,
Qt.AlignmentFlag  arg6 = 0 
)

Adds the given widget to the cell grid at row, column. The top-left position is (0, 0) by default.

The alignment is specified by alignment. The default alignment is 0, which means that the widget fills the entire cell.

new QRect QtGui.QGridLayout.CellRect ( int  row,
int  column 
)

Returns the geometry of the cell with row row and column column in the grid. Returns an invalid rectangle if row or column is outside the grid.

Warning: in the current version of Qt this function does not return valid results until setGeometry() has been called, i.e. after the parentWidget() is visible.

new int QtGui.QGridLayout.ColumnCount ( )

Returns the number of columns in this grid.

new int QtGui.QGridLayout.ColumnMinimumWidth ( int  column)

Returns the column spacing for column column.

See also setColumnMinimumWidth().

new int QtGui.QGridLayout.ColumnStretch ( int  column)

Returns the stretch factor for column column.

See also setColumnStretch().

override int QtGui.QGridLayout.Count ( )
virtual

Reimplemented from QLayout::count().

Implements QtGui.QLayout.

override void QtGui.QGridLayout.CreateProxy ( )
virtual

Reimplemented from QtCore.QObject.

new void QtGui.QGridLayout.Dispose ( )
override Qt.Orientation QtGui.QGridLayout.ExpandingDirections ( )
virtual

Reimplemented from QLayoutItem::expandingDirections().

Reimplemented from QtGui.QLayout.

new void QtGui.QGridLayout.GetItemPosition ( int  idx,
ref int  row,
ref int  column,
ref int  rowSpan,
ref int  columnSpan 
)

Returns the position information of the item with the given index.

The variables passed as row and column are updated with the position of the item in the layout, and the rowSpan and columnSpan variables are updated with the vertical and horizontal spans of the item.

See also itemAtPosition() and itemAt().

override bool QtGui.QGridLayout.HasHeightForWidth ( )
virtual

Reimplemented from QLayoutItem::hasHeightForWidth().

Reimplemented from QtGui.QLayout.

override int QtGui.QGridLayout.HeightForWidth ( int  arg1)
virtual

Reimplemented from QLayoutItem::heightForWidth().

Reimplemented from QtGui.QLayout.

override void QtGui.QGridLayout.Invalidate ( )
virtual

Reimplemented from QLayoutItem::invalidate().

Reimplemented from QtGui.QLayout.

override IQLayoutItem QtGui.QGridLayout.ItemAt ( int  index)
virtual

Reimplemented from QLayout::itemAt().

Implements QtGui.QLayout.

new IQLayoutItem QtGui.QGridLayout.ItemAtPosition ( int  row,
int  column 
)

Returns the layout item that occupies cell (row, column), or 0 if the cell is empty.

This function was introduced in Qt 4.4.

See also getItemPosition() and indexOf().

override QSize QtGui.QGridLayout.MaximumSize ( )
virtual

Reimplemented from QLayoutItem::maximumSize().

Reimplemented from QtGui.QLayout.

override int QtGui.QGridLayout.MinimumHeightForWidth ( int  arg1)
virtual

Reimplemented from QLayoutItem::minimumHeightForWidth().

Reimplemented from QtGui.QLayout.

override QSize QtGui.QGridLayout.MinimumSize ( )
virtual

Reimplemented from QLayoutItem::minimumSize().

Reimplemented from QtGui.QLayout.

new int QtGui.QGridLayout.RowCount ( )

Returns the number of rows in this grid.

new int QtGui.QGridLayout.RowMinimumHeight ( int  row)

Returns the minimum width set for row row.

See also setRowMinimumHeight().

new int QtGui.QGridLayout.RowStretch ( int  row)

Returns the stretch factor for row row.

See also setRowStretch().

new void QtGui.QGridLayout.SetColumnMinimumWidth ( int  column,
int  minSize 
)

Sets the minimum width of column column to minSize pixels.

See also columnMinimumWidth() and setRowMinimumHeight().

new void QtGui.QGridLayout.SetColumnStretch ( int  column,
int  stretch 
)

Sets the stretch factor of column column to stretch. The first column is number 0.

The stretch factor is relative to the other columns in this grid. Columns with a higher stretch factor take more of the available space.

The default stretch factor is 0. If the stretch factor is 0 and no other column in this table can grow at all, the column may still grow.

An alternative approach is to add spacing using addItem() with a QSpacerItem.

See also columnStretch() and setRowStretch().

new void QtGui.QGridLayout.SetDefaultPositioning ( int  n,
Qt.Orientation  orient 
)
new void QtGui.QGridLayout.SetRowMinimumHeight ( int  row,
int  minSize 
)

Sets the minimum height of row row to minSize pixels.

See also rowMinimumHeight() and setColumnMinimumWidth().

new void QtGui.QGridLayout.SetRowStretch ( int  row,
int  stretch 
)

Sets the stretch factor of row row to stretch. The first row is number 0.

The stretch factor is relative to the other rows in this grid. Rows with a higher stretch factor take more of the available space.

The default stretch factor is 0. If the stretch factor is 0 and no other row in this table can grow at all, the row may still grow.

See also rowStretch(), setRowMinimumHeight(), and setColumnStretch().

override QSize QtGui.QGridLayout.SizeHint ( )
virtual

Reimplemented from QLayoutItem::sizeHint().

Implements QtGui.QLayout.

override IQLayoutItem QtGui.QGridLayout.TakeAt ( int  index)
virtual

Reimplemented from QLayout::takeAt().

Implements QtGui.QLayout.

static string QtGui.QGridLayout.Tr ( string  s,
string  c = null 
)
static
static string QtGui.QGridLayout.Tr ( string  s,
string  c,
int  n 
)
static
static string QtGui.QGridLayout.TrUtf8 ( string  s,
string  c = null 
)
static
static string QtGui.QGridLayout.TrUtf8 ( string  s,
string  c,
int  n 
)
static

Property Documentation

new IQGridLayoutSignals QtGui.QGridLayout.Emit
getprotected
override QRect QtGui.QGridLayout.Geometry
getset

Reimplemented from QLayoutItem::setGeometry().

new int QtGui.QGridLayout.HorizontalSpacing
getset
new Qt.Corner QtGui.QGridLayout.OriginCorner
getset

Returns the corner that's used for the grid's origin, i.e. for position (0, 0).

Sets the grid's origin corner, i.e. position (0, 0), to corner.

new int QtGui.QGridLayout.spacing
getset

If the vertical spacing is equal to the horizontal spacing, this function returns that value; otherwise it return -1.

This function sets both the vertical and horizontal spacing to spacing.

new QMetaObject QtGui.QGridLayout.StaticMetaObject
staticget
new int QtGui.QGridLayout.VerticalSpacing
getset