Qyoto
4.0.7
Qyoto is a C# language binding for Qt
|
Public Member Functions | |
delegate QTextStream | FuncQTextStreamQTextStream (QTextStream qTextStream) |
delegate void | ActionQtMsgTypeString (QtMsgType qtMsgType, string @string) |
delegate QObject | FuncQObject () |
Static Public Member Functions | |
static QDataStream | Write (QDataStream arg1, QSizePolicy arg2) |
static QDataStream | Write (QDataStream arg1, QTransform arg2) |
static QDataStream | Write (QDataStream arg1, QLine arg2) |
static QDataStream | Write (QDataStream arg1, QRectF arg2) |
static QDataStream | Write (QDataStream ds, QPalette p) |
static QDataStream | Write (QDataStream arg1, QByteArray arg2) |
static QDataStream | Write (QDataStream @out, QRegExp regExp) |
static QDataStream | Write (QDataStream @in, QKeySequence ks) |
static QDataStream | Write (QDataStream @out, QTableWidgetItem item) |
static QDataStream | Write (QDataStream outS, QCursor cursor) |
static QDataStream | Write (QDataStream arg1, QPicture arg2) |
static QDataStream | Write (QDataStream @out, QTreeWidgetItem item) |
static QTextStream | Write (QTextStream arg1, QSplitter arg2) |
static QDataStream | Write (QDataStream arg1, QBrush arg2) |
static QDataStream | Write (QDataStream arg1, QDate arg2) |
static QDataStream | Write (QDataStream arg1, QPixmap arg2) |
static QDataStream | Write (QDataStream arg1, QUrl arg2) |
static QDataStream | Write (QDataStream s, object p) |
static QDataStream | Write (QDataStream arg1, QPen arg2) |
static QDataStream | Write (QDataStream stream, QPolygon polygon) |
static QDataStream | Write (QDataStream arg1, QLineF arg2) |
static QDataStream | Write (QDataStream arg1, QPointF arg2) |
static QDataStream | Write (QDataStream arg1, QVector3D arg2) |
static QDataStream | Write (QDataStream stream, QPolygonF array) |
static QDataStream | Write (QDataStream arg1, QSizeF arg2) |
static QDataStream | Write (QDataStream arg1, QFont arg2) |
static QDataStream | Write (QDataStream arg1, QVector2D arg2) |
static QDataStream | Write (QDataStream arg1, QMatrix arg2) |
static QDataStream | Write (QDataStream arg1, QPainterPath arg2) |
static QDataStream | Write (QDataStream arg1, QBitArray arg2) |
static QDataStream | Write (QDataStream arg1, QPoint arg2) |
static QDataStream | Write (QDataStream arg1, QImage arg2) |
static QDataStream | Write (QDataStream arg1, QSize arg2) |
static QDataStream | Write (QDataStream arg1, QChar arg2) |
static QDataStream | Write (QDataStream arg1, QRect arg2) |
static QDataStream | Write (QDataStream arg1, QRegion arg2) |
static QDataStream | Write (QDataStream arg1, QColor arg2) |
static QDataStream | Write (QDataStream arg1, QTime arg2) |
static QDataStream | Write (QDataStream arg1, QUuid arg2) |
static QDataStream | Write (QDataStream arg1, QTextLength arg2) |
static QDataStream | Write (QDataStream @out, QListWidgetItem item) |
static QDataStream | Write (QDataStream @out, QStandardItem item) |
static QDataStream | Write (QDataStream arg1, QEasingCurve arg2) |
static QDataStream | Write (QDataStream arg1, QMatrix4x4 arg2) |
static QDataStream | Write (QDataStream arg1, QVector4D arg2) |
static QDataStream | Write (QDataStream arg1, QIcon arg2) |
static QDataStream | Write (QDataStream arg1, QDateTime arg2) |
static QDataStream | Write (QDataStream arg1, QTextFormat arg2) |
static QDataStream | Write (QDataStream arg1, QQuaternion arg2) |
static QTextStream | Write (QTextStream s, Global.FuncQTextStreamQTextStream f) |
static QDataStream | Write (QDataStream arg1, QLocale arg2) |
static QDataStream | Write (QDataStream arg1, string arg2) |
static QDataStream | Write (QDataStream s, QVariant.Type p) |
static QDataStream | Write (QDataStream @out, System.Collections.Generic.List< string > list) |
More... | |
static QDataStream | Read (QDataStream arg1, QImage arg2) |
static QDataStream | Read (QDataStream arg1, QLocale arg2) |
static QDataStream | Read (QDataStream arg1, QPen arg2) |
static QDataStream | Read (QDataStream arg1, QColor arg2) |
static QDataStream | Read (QDataStream arg1, QPointF arg2) |
static QDataStream | Read (QDataStream arg1, QDate arg2) |
static QDataStream | Read (QDataStream arg1, QVector4D arg2) |
static QDataStream | Read (QDataStream arg1, QUuid arg2) |
static QDataStream | Read (QDataStream arg1, QByteArray arg2) |
static QDataStream | Read (QDataStream s, object p) |
static QDataStream | Read (QDataStream @in, QRegExp regExp) |
static QDataStream | Read (QDataStream arg1, QRegion arg2) |
static QDataStream | Read (QDataStream arg1, QBitArray arg2) |
static QDataStream | Read (QDataStream inS, QCursor cursor) |
static QDataStream | Read (QDataStream arg1, QTransform arg2) |
static QDataStream | Read (QDataStream arg1, QSizeF arg2) |
static QDataStream | Read (QDataStream arg1, QLine arg2) |
static QDataStream | Read (QDataStream arg1, QIcon arg2) |
static QTextStream | Read (QTextStream s, Global.FuncQTextStreamQTextStream f) |
static QDataStream | Read (QDataStream arg1, QEasingCurve arg2) |
static QDataStream | Read (QDataStream @in, QStandardItem item) |
static QDataStream | Read (QDataStream arg1, QBrush arg2) |
static QDataStream | Read (QDataStream arg1, QMatrix4x4 arg2) |
static QDataStream | Read (QDataStream arg1, QTextFormat arg2) |
static QDataStream | Read (QDataStream @in, QListWidgetItem item) |
static QDataStream | Read (QDataStream arg1, QSizePolicy arg2) |
static QDataStream | Read (QDataStream arg1, QMatrix arg2) |
static QDataStream | Read (QDataStream arg1, QSize arg2) |
static QDataStream | Read (QDataStream @in, QTableWidgetItem item) |
static QDataStream | Read (QDataStream stream, QPolygonF array) |
static QDataStream | Read (QDataStream ds, QPalette p) |
static QDataStream | Read (QDataStream arg1, QQuaternion arg2) |
static QDataStream | Read (QDataStream arg1, QFont arg2) |
static QDataStream | Read (QDataStream arg1, QRectF arg2) |
static QDataStream | Read (QDataStream arg1, QTextLength arg2) |
static QDataStream | Read (QDataStream arg1, QPoint arg2) |
static QDataStream | Read (QDataStream arg1, QDateTime arg2) |
static QDataStream | Read (QDataStream @in, QTreeWidgetItem item) |
static QDataStream | Read (QDataStream @out, QKeySequence ks) |
static QDataStream | Read (QDataStream stream, QPolygon polygon) |
static QTextStream | Read (QTextStream arg1, QSplitter arg2) |
static QDataStream | Read (QDataStream arg1, QChar arg2) |
static QDataStream | Read (QDataStream arg1, QPixmap arg2) |
static QDataStream | Read (QDataStream arg1, QRect arg2) |
static QDataStream | Read (QDataStream arg1, QVector3D arg2) |
static QDataStream | Read (QDataStream arg1, QLineF arg2) |
static QDataStream | Read (QDataStream arg1, QPainterPath arg2) |
static QDataStream | Read (QDataStream arg1, QPicture arg2) |
static QDataStream | Read (QDataStream arg1, QVector2D arg2) |
static QDataStream | Read (QDataStream arg1, QTime arg2) |
static QDataStream | Read (QDataStream arg1, QUrl arg2) |
static QDataStream | Read (QDataStream s, QVariant.Type p) |
static QDataStream | Read (QDataStream arg1, string arg2) |
static QDataStream | Read (QDataStream @in, System.Collections.Generic.List< string > list) |
More... | |
static double | QAcos (double v) |
More... | |
static void | QAddPostRoutine (System.Action arg1) |
static int | QAlpha (uint rgb) |
static double | QAsin (double v) |
More... | |
static double | QAtan (double v) |
More... | |
static double | QAtan2 (double x, double y) |
More... | |
static void | QBadAlloc () |
static int | QBlue (uint rgb) |
static int | QCeil (double v) |
More... | |
static ushort | QChecksum (string s, uint len) |
static QByteArray | QCompress (QByteArray data, int compressionLevel=-1) |
static QByteArray | QCompress (Pointer< byte > data, int nbytes, int compressionLevel=-1) |
static double | QCos (double v) |
More... | |
static void | QDrawBorderPixmap (QPainter painter, QRect target, QMargins margins, QPixmap pixmap) |
More... | |
static void | QDrawBorderPixmap (QPainter painter, QRect targetRect, QMargins targetMargins, QPixmap pixmap, QRect sourceRect, QMargins sourceMargins) |
static void | QDrawBorderPixmap (QPainter painter, QRect targetRect, QMargins targetMargins, QPixmap pixmap, QRect sourceRect, QMargins sourceMargins, QTileRules rules, uint hints=0) |
static void | QDrawPlainRect (QPainter p, QRect r, QColor lineColor, int lineWidth=1, QBrush fill=null) |
More... | |
static void | QDrawPlainRect (QPainter p, int x, int y, int w, int h, QColor lineColor, int lineWidth=1, QBrush fill=null) |
More... | |
static void | QDrawShadeLine (QPainter p, QPoint p1, QPoint p2, QPalette pal, bool sunken=true, int lineWidth=1, int midLineWidth=0) |
More... | |
static void | QDrawShadeLine (QPainter p, int x1, int y1, int x2, int y2, QPalette pal, bool sunken=true, int lineWidth=1, int midLineWidth=0) |
More... | |
static void | QDrawShadePanel (QPainter p, QRect r, QPalette pal, bool sunken=false, int lineWidth=1, QBrush fill=null) |
More... | |
static void | QDrawShadePanel (QPainter p, int x, int y, int w, int h, QPalette pal, bool sunken=false, int lineWidth=1, QBrush fill=null) |
More... | |
static void | QDrawShadeRect (QPainter p, QRect r, QPalette pal, bool sunken=false, int lineWidth=1, int midLineWidth=0, QBrush fill=null) |
More... | |
static void | QDrawShadeRect (QPainter p, int x, int y, int w, int h, QPalette pal, bool sunken=false, int lineWidth=1, int midLineWidth=0, QBrush fill=null) |
More... | |
static void | QDrawWinButton (QPainter p, QRect r, QPalette pal, bool sunken=false, QBrush fill=null) |
More... | |
static void | QDrawWinButton (QPainter p, int x, int y, int w, int h, QPalette pal, bool sunken=false, QBrush fill=null) |
More... | |
static void | QDrawWinPanel (QPainter p, QRect r, QPalette pal, bool sunken=false, QBrush fill=null) |
static void | QDrawWinPanel (QPainter p, int x, int y, int w, int h, QPalette pal, bool sunken=false, QBrush fill=null) |
More... | |
static double | QExp (double v) |
More... | |
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) |
More... | |
static bool | QFuzzyCompare (QVector2D v1, QVector2D v2) |
static bool | QFuzzyCompare (QTransform t1, QTransform t2) |
static bool | QFuzzyCompare (QMatrix4x4 m1, QMatrix4x4 m2) |
static bool | QFuzzyCompare (QVector4D v1, QVector4D v2) |
static bool | QFuzzyCompare (QMatrix m1, QMatrix m2) |
static bool | QFuzzyCompare (QVector3D v1, QVector3D v2) |
static bool | QFuzzyCompare (QQuaternion q1, QQuaternion q2) |
static bool | QFuzzyCompare (double p1, double p2) |
More... | |
static bool | QFuzzyCompare (float p1, float p2) |
More... | |
static bool | QFuzzyIsNull (double d) |
static bool | QFuzzyIsNull (float f) |
static int | QGray (uint rgb) |
static int | QGray (int r, int g, int b) |
static int | QGreen (uint rgb) |
static uint | QHash (QPersistentModelIndex index) |
static uint | QHash (QStringRef key) |
static uint | QHash (QBitArray key) |
More... | |
static uint | QHash (QByteArray key) |
More... | |
static uint | QHash (QChar key) |
More... | |
static uint | QHash (QUrl url) |
static uint | QHash (QModelIndex index) |
static uint | QHash (QItemSelectionRange arg1) |
static uint | QHash (byte key) |
More... | |
static uint | QHash (string key) |
More... | |
static uint | QHash (ushort key) |
More... | |
static uint | QHash (NativeLong key) |
More... | |
static uint | QHash (long key) |
More... | |
static uint | QHash (ulong key) |
More... | |
static uint | QHash (char key) |
More... | |
static uint | QHash (short key) |
More... | |
static uint | QHash (NativeULong key) |
More... | |
static uint | QHash (uint key) |
More... | |
static uint | QHash (int key) |
More... | |
static Global.ActionQtMsgTypeString | QInstallMsgHandler (Global.ActionQtMsgTypeString handler) |
More... | |
static int | QIntCast (float f) |
static int | QIntCast (double f) |
static bool | QIsFinite (float f) |
static bool | QIsFinite (double d) |
static bool | QIsGray (uint rgb) |
static bool | QIsInf (double d) |
static bool | QIsInf (float f) |
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) |
More... | |
static double | QPow (double x, double y) |
More... | |
static int | QRed (uint rgb) |
static void | QRegisterStaticPluginInstanceFunction (Global.FuncQObject function) |
static void | QRemovePostRoutine (System.Action arg1) |
static uint | QRgb (int r, int g, int b) |
static uint | QRgba (int r, int g, int b, int a) |
static int | QRound (double d) |
More... | |
static long | QRound64 (double d) |
More... | |
static double | QSin (double v) |
More... | |
static double | QSqrt (double v) |
More... | |
static bool | QStringComparisonHelper (QStringRef s1, string s2) |
static double | QTan (double v) |
More... | |
static QByteArray | QUncompress (QByteArray data) |
static QByteArray | QUncompress (Pointer< byte > data, int nbytes) |
static void | Qbswap_helper (Pointer< byte > src, Pointer< byte > dest, int size) |
static QByteArray | Qgetenv (string varName) |
More... | |
static bool | Qputenv (string varName, QByteArray value) |
More... | |
static void | Qsrand (uint seed) |
More... | |
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 Public Attributes | |
</para > *< para > Creating QM files suitable for use with this[SmokeMethod("qtTrId(const char*, int)")] static strin | QtTrId )(string id, int n=-1) |
Properties | |
static string | QAppName [get] |
static double | QInf [get] |
static double | QQNaN [get] |
static double | QSNaN [get] |
static bool | QSharedBuild [get] |
static string | QVersion [get] |
More... | |
static int | QWinAppCmdShow [get] |
static System.IntPtr | QWinAppInst [get] |
static System.IntPtr | QWinAppPrevInst [get] |
static int | Qrand [get] |
More... | |
delegate void QtSvg.Global.ActionQtMsgTypeString | ( | QtMsgType | qtMsgType, |
string @ | string | ||
) |
delegate QObject QtSvg.Global.FuncQObject | ( | ) |
delegate QTextStream QtSvg.Global.FuncQTextStreamQTextStream | ( | QTextStream | qTextStream | ) |
|
static |
Returns the arccosine of v as an angle in radians. Arccosine is the inverse operation of cosine.
See also qAtan(), qAsin(), and qCos().
|
static |
|
static |
|
static |
Returns the arcsine of v as an angle in radians. Arcsine is the inverse operation of sine.
See also qSin(), qAtan(), and qAcos().
|
static |
Returns the arctangent of v as an angle in radians. Arctangent is the inverse operation of tangent.
See also qTan(), qAcos(), and qAsin().
|
static |
Returns the arctangent of a point specified by the coordinates x and y. This function will return the angle and its direction.
See also qAtan().
|
static |
|
static |
|
static |
|
static |
Return the ceiling of the value v.
The ceiling is the smallest integer that is not less than v. For example, if v is 41.2, then the ceiling is 42.
See also qFloor().
|
static |
|
static |
|
static |
|
static |
Returns the cosine of an angle v in radians.
See also qSin() and qTan().
|
static |
This is an overloaded function.
The qDrawBorderPixmap function is for drawing a pixmap into the margins of a rectangle.
Draws the given pixmap into the given target rectangle, using the given painter. The pixmap will be split into nine segments and drawn according to the margins structure.
This function was introduced in Qt 4.6.
|
static |
|
static |
|
static |
This is an overloaded function.
Draws the plain rectangle specified by rect using the given painter, lineColor and lineWidth. The rectangle's interior is filled with the fill brush unless fill is 0.
Warning: This function does not look at QWidget::style() or QApplication::style(). Use the drawing functions in QStyle to make widgets that follow the current GUI style.
Alternatively you can use a QFrame widget and apply the QFrame::setFrameStyle() function to display a plain rectangle:
QFrame frame:
frame.setFrameStyle(QFrame::Box | QFrame::Plain);
See also qDrawShadeRect() and QStyle.
|
static |
Draws the plain rectangle beginning at (x, y) with the given width and height, using the specified painter, lineColor and lineWidth. The rectangle's interior is filled with the fill brush unless fill is 0.
Warning: This function does not look at QWidget::style() or QApplication::style(). Use the drawing functions in QStyle to make widgets that follow the current GUI style.
Alternatively you can use a QFrame widget and apply the QFrame::setFrameStyle() function to display a plain rectangle:
QFrame frame:
frame.setFrameStyle(QFrame::Box | QFrame::Plain);
See also qDrawShadeRect() and QStyle.
|
static |
This is an overloaded function.
Draws a horizontal or vertical shaded line between p1 and p2 using the given painter. Note that nothing is drawn if the line between the points would be neither horizontal nor vertical.
The provided palette specifies the shading colors (light, dark and middle colors). The given lineWidth specifies the line width for each of the lines; it is not the total line width. The given midLineWidth specifies the width of a middle line drawn in the QPalette::mid() color.
The line appears sunken if sunken is true, otherwise raised.
Warning: This function does not look at QWidget::style() or QApplication::style(). Use the drawing functions in QStyle to make widgets that follow the current GUI style.
Alternatively you can use a QFrame widget and apply the QFrame::setFrameStyle() function to display a shaded line:
QFrame frame:
frame.setFrameStyle(QFrame::HLine | QFrame::Sunken);
See also qDrawShadeRect(), qDrawShadePanel(), and QStyle.
|
static |
Draws a horizontal (y1 == y2) or vertical (x1 == x2) shaded line using the given painter. Note that nothing is drawn if y1 != y2 and x1 != x2 (i.e. the line is neither horizontal nor vertical).
The provided palette specifies the shading colors (light, dark and middle colors). The given lineWidth specifies the line width for each of the lines; it is not the total line width. The given midLineWidth specifies the width of a middle line drawn in the QPalette::mid() color.
The line appears sunken if sunken is true, otherwise raised.
Warning: This function does not look at QWidget::style() or QApplication::style(). Use the drawing functions in QStyle to make widgets that follow the current GUI style.
Alternatively you can use a QFrame widget and apply the QFrame::setFrameStyle() function to display a shaded line:
QFrame frame:
frame.setFrameStyle(QFrame::HLine | QFrame::Sunken);
See also qDrawShadeRect(), qDrawShadePanel(), and QStyle.
|
static |
This is an overloaded function.
Draws the shaded panel at the rectangle specified by rect using the given painter and the given lineWidth.
The given palette specifies the shading colors (light, dark and middle colors). The panel's interior is filled with the fill brush unless fill is 0.
The panel appears sunken if sunken is true, otherwise raised.
Warning: This function does not look at QWidget::style() or QApplication::style(). Use the drawing functions in QStyle to make widgets that follow the current GUI style.
Alternatively you can use a QFrame widget and apply the QFrame::setFrameStyle() function to display a shaded panel:
QFrame frame:
frame.setFrameStyle( QFrame::Panel | QFrame::Sunken);
See also qDrawWinPanel(), qDrawShadeLine(), qDrawShadeRect(), and QStyle.
|
static |
Draws the shaded panel beginning at (x, y) with the given width and height using the provided painter and the given lineWidth.
The given palette specifies the shading colors (light, dark and middle colors). The panel's interior is filled with the fill brush unless fill is 0.
The panel appears sunken if sunken is true, otherwise raised.
Warning: This function does not look at QWidget::style() or QApplication::style(). Use the drawing functions in QStyle to make widgets that follow the current GUI style.
Alternatively you can use a QFrame widget and apply the QFrame::setFrameStyle() function to display a shaded panel:
QFrame frame:
frame.setFrameStyle( QFrame::Panel | QFrame::Sunken);
See also qDrawWinPanel(), qDrawShadeLine(), qDrawShadeRect(), and QStyle.
|
static |
This is an overloaded function.
Draws the shaded rectangle specified by rect using the given painter.
The provide palette specifies the shading colors (light, dark and middle colors. The given lineWidth specifies the line width for each of the lines; it is not the total line width. The midLineWidth specifies the width of a middle line drawn in the QPalette::mid() color. The rectangle's interior is filled with the fill brush unless fill is 0.
The rectangle appears sunken if sunken is true, otherwise raised.
Warning: This function does not look at QWidget::style() or QApplication::style(). Use the drawing functions in QStyle to make widgets that follow the current GUI style.
Alternatively you can use a QFrame widget and apply the QFrame::setFrameStyle() function to display a shaded rectangle:
QFrame frame:
frame.setFrameStyle(QFrame::Box | QFrame::Raised);
See also qDrawShadeLine(), qDrawShadePanel(), qDrawPlainRect(), and QStyle.
|
static |
Draws the shaded rectangle beginning at (x, y) with the given width and height using the provided painter.
The provide palette specifies the shading colors (light, dark and middle colors. The given lineWidth specifies the line width for each of the lines; it is not the total line width. The midLineWidth specifies the width of a middle line drawn in the QPalette::mid() color. The rectangle's interior is filled with the fill brush unless fill is 0.
The rectangle appears sunken if sunken is true, otherwise raised.
Warning: This function does not look at QWidget::style() or QApplication::style(). Use the drawing functions in QStyle to make widgets that follow the current GUI style.
Alternatively you can use a QFrame widget and apply the QFrame::setFrameStyle() function to display a shaded rectangle:
QFrame frame:
frame.setFrameStyle(QFrame::Box | QFrame::Raised);
See also qDrawShadeLine(), qDrawShadePanel(), qDrawPlainRect(), and QStyle.
|
static |
This is an overloaded function.
Draws the Windows-style button at the rectangle specified by rect using the given painter with a line width of 2 pixels. The button's interior is filled with the fill brush unless fill is 0.
The given palette specifies the shading colors (light, dark and middle colors).
The button appears sunken if sunken is true, otherwise raised.
Warning: This function does not look at QWidget::style() or QApplication::style()-> Use the drawing functions in QStyle to make widgets that follow the current GUI style.
See also qDrawWinPanel() and QStyle.
|
static |
Draws the Windows-style button specified by the given point (x, y}, width and height using the provided painter with a line width of 2 pixels. The button's interior is filled with the fill brush unless fill is 0.
The given palette specifies the shading colors (light, dark and middle colors).
The button appears sunken if sunken is true, otherwise raised.
Warning: This function does not look at QWidget::style() or QApplication::style()-> Use the drawing functions in QStyle to make widgets that follow the current GUI style.
See also qDrawWinPanel() and QStyle.
|
static |
|
static |
Draws the Windows-style panel specified by the given point(x, y), width and height using the provided painter with a line width of 2 pixels. The button's interior is filled with the fill brush unless fill is 0.
The given palette specifies the shading colors. The panel appears sunken if sunken is true, otherwise raised.
Warning: This function does not look at QWidget::style() or QApplication::style(). Use the drawing functions in QStyle to make widgets that follow the current GUI style.
Alternatively you can use a QFrame widget and apply the QFrame::setFrameStyle() function to display a shaded panel:
QFrame frame:
frame.setFrameStyle(QFrame::WinPanel | QFrame::Raised);
See also qDrawShadePanel(), qDrawWinButton(), and QStyle.
|
static |
Returns the exponential function of e to the power of v.
See also qLn().
|
static |
|
static |
|
static |
|
static |
|
static |
Return the floor of the value v.
The floor is the largest integer that is not greater than v. For example, if v is 41.2, then the floor is 41.
See also qCeil().
|
static |
|
static |
|
static |
|
static |
Compares the floating point value p1 and p2 and returns true if they are considered equal, otherwise false.
Note that comparing values where either p1 or p2 is 0.0 will not work. The solution to this is to compare against values greater than or equal to 1.0.
// Instead of comparing with 0.0
qFuzzyCompare(0.0,1.0e-200); // This will return false
// Compare adding 1 to both values will fix the problem
qFuzzyCompare(1 + 0.0, 1 + 1.0e-200); // This will return true
The two numbers are compared in a relative way, where the exactness is stronger the smaller the numbers are.
Note: This function is thread-safe.
This function was introduced in Qt 4.4.
|
static |
Compares the floating point value p1 and p2 and returns true if they are considered equal, otherwise false.
The two numbers are compared in a relative way, where the exactness is stronger the smaller the numbers are.
Note: This function is thread-safe.
This function was introduced in Qt 4.4.
|
static |
|
static |
|
static |
Returns the value of the environment variable with name varName. To get the variable string, use QByteArray::constData().
Note: qgetenv() was introduced because getenv() from the standard C library was deprecated in VC2005 (and later versions). qgetenv() uses the new replacement function in VC, and calls the standard C library's implementation on all other platforms.
See also qputenv().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Returns the hash value for the key.
|
static |
Returns the hash value for the key.
|
static |
Returns the hash value for the key.
|
static |
|
static |
|
static |
|
static |
Returns the hash value for the key.
|
static |
Returns the hash value for the key.
|
static |
Returns the hash value for the key.
|
static |
Returns the hash value for the key.
|
static |
Returns the hash value for the key.
|
static |
Returns the hash value for the key.
|
static |
Returns the hash value for the key.
|
static |
Returns the hash value for the key.
|
static |
Returns the hash value for the key.
|
static |
Returns the hash value for the key.
|
static |
Returns the hash value for the key.
|
static |
Installs a Qt message handler which has been defined previously. Returns a pointer to the previous message handler (which may be 0).
The message handler is a function that prints out debug messages, warnings, critical and fatal error messages. The Qt library (debug mode) contains hundreds of warning messages that are printed when internal errors (usually invalid function arguments) occur. Qt built in release mode also contains such warnings unless QT_NO_WARNING_OUTPUT and/or QT_NO_DEBUG_OUTPUT have been set during compilation. If you implement your own message handler, you get total control of these messages.
The default message handler prints the message to the standard output under X11 or to the debugger under Windows. If it is a fatal message, the application aborts immediately.
Only one message handler can be defined, since this is usually done on an application-wide basis to control debug output.
To restore the message handler, call qInstallMsgHandler(0).
Example:
#include <qapplication.h>
#include <stdio.h>
#include <stdlib.h>
void myMessageOutput(QtMsgType type, const char *msg)
{
switch (type) {
case QtDebugMsg:
fprintf(stderr, "Debug: s\n", msg);
break;
case QtWarningMsg:
fprintf(stderr, "Warning: s\n", msg);
break;
case QtCriticalMsg:
fprintf(stderr, "Critical: s\n", msg);
break;
case QtFatalMsg:
fprintf(stderr, "Fatal: s\n", msg);
abort();
}
}
int main(int argc, char **argv)
{
qInstallMsgHandler(myMessageOutput);
QApplication app(argc, argv);
...
return app.exec();
}
See also qDebug(), qWarning(), qCritical(), qFatal(), QtMsgType, and Debugging Techniques.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Returns the natural logarithm of v. Natural logarithm uses base e.
See also qExp().
|
static |
Returns the value of x raised to the power of y. That is, x is the base and y is the exponent.
See also qSqrt().
|
static |
This function sets the value of the environment variable named varName. It will create the variable if it does not exist. It returns 0 if the variable could not be set.
Note: qputenv() was introduced because putenv() from the standard C library was deprecated in VC2005 (and later versions). qputenv() uses the replacement function in VC, and calls the standard C library's implementation on all other platforms.
See also qgetenv().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Rounds value to the nearest integer.
Example:
qreal valueA = 2.3;
qreal valueB = 2.7;
int roundedValueA = qRound(valueA);
// roundedValueA = 2
int roundedValueB = qRound(valueB);
// roundedValueB = 3
|
static |
Rounds value to the nearest 64-bit integer.
Example:
qreal valueA = 42949672960.3;
qreal valueB = 42949672960.7;
int roundedValueA = qRound(valueA);
// roundedValueA = 42949672960
int roundedValueB = qRound(valueB);
// roundedValueB = 42949672961
|
static |
Returns the sine of the angle v in radians.
See also qCos() and qTan().
|
static |
Returns the square root of v. This function returns a NaN if v is a negative number.
See also qPow().
|
static |
Thread-safe version of the standard C++ srand() function.
Sets the argument seed to be used to generate a new random number sequence of pseudo random integers to be returned by qrand().
The sequence of random numbers generated is deterministic per thread. For example, if two threads call qsrand(1) and subsequently calls qrand(), the threads will get the same random number sequence.
This function was introduced in Qt 4.2.
See also qrand().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Returns the tangent of an angle v in radians.
See also qSin() and qCos().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Reads a string list from the given in stream into the specified list.
See also Serializing Qt Data Types.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Writes the given string list to the specified out stream.
See also Serializing Qt Data Types.
|
static |
|
staticget |
|
staticget |
|
staticget |
|
staticget |
Thread-safe version of the standard C++ rand() function.
Returns a value between 0 and RAND_MAX (defined in <cstdlib> and <stdlib.h>), the next number in the current sequence of pseudo-random integers.
Use qsrand() to initialize the pseudo-random number generator with a seed value.
This function was introduced in Qt 4.2.
See also qsrand().
|
staticget |
|
staticget |
|
staticget |
Returns the version number of Qt at run-time as a string (for example, "4.1.2"). This may be a different version than the version the application was compiled against.
See also QT_VERSION_STR.
|
staticget |
|
staticget |
|
staticget |