Qyoto
4.0.7
Qyoto is a C# language binding for Qt
|
The QMenuBar class provides a horizontal menu bar. More...
Public Member Functions | |
QMenuBar (QWidget parent=null) | |
More... | |
override void | CreateProxy () |
new QAction | ActionAt (QPoint pt) |
More... | |
new QRect | ActionGeometry (QAction act) |
More... | |
new void | AddAction (QAction action) |
More... | |
new QAction | AddAction (string text) |
More... | |
new QAction | AddAction (string text, QObject receiver, string member) |
More... | |
new QAction | AddMenu (QMenu menu) |
More... | |
new QMenu | AddMenu (QIcon icon, string title) |
More... | |
new QMenu | AddMenu (string title) |
More... | |
new QAction | AddSeparator () |
More... | |
new void | Clear () |
More... | |
new QWidget | CornerWidget (Qt.Corner corner=Qt.Corner.TopRightCorner) |
More... | |
override bool | OnEvent (QEvent e) |
More... | |
override bool | EventFilter (QObject @object, QEvent @event) |
More... | |
override int | HeightForWidth (int w) |
More... | |
new QAction | InsertMenu (QAction before, QMenu menu) |
More... | |
new QAction | InsertSeparator (QAction before) |
More... | |
new void | SetCornerWidget (QWidget w, Qt.Corner corner=Qt.Corner.TopRightCorner) |
More... | |
new void | Dispose () |
![]() | |
QWidget (QWidget parent=null, Qt.WindowType f=0) | |
More... | |
override void | CreateProxy () |
new void | ActivateWindow () |
More... | |
new void | AddAction (QAction action) |
More... | |
new void | AddActions (System.Collections.Generic.List< QAction > actions) |
More... | |
new void | AdjustSize () |
More... | |
new QWidget | ChildAt (QPoint p) |
More... | |
new QWidget | ChildAt (int x, int y) |
More... | |
new void | ClearFocus () |
More... | |
new void | ClearMask () |
More... | |
new bool | Close () |
More... | |
new void | CreateWinId () |
new void | EnsurePolished () |
More... | |
override bool | OnEvent (QEvent @event) |
More... | |
new QWidget | FocusWidget () |
More... | |
new void | GetContentsMargins (ref int left, ref int top, ref int right, ref int bottom) |
More... | |
virtual System.IntPtr | GetDC () |
More... | |
new void | GrabGesture (Qt.GestureType type, Qt.GestureFlag flags=0) |
More... | |
new void | GrabKeyboard () |
More... | |
new void | GrabMouse () |
More... | |
new void | GrabMouse (QCursor cursor) |
More... | |
new int | GrabShortcut (QKeySequence key, Qt.ShortcutContext context=Qt.ShortcutContext.WindowShortcut) |
More... | |
new void | Hide () |
More... | |
virtual object | InputMethodQuery (Qt.InputMethodQuery query) |
More... | |
new void | InsertAction (QAction before, QAction action) |
More... | |
new void | InsertActions (QAction before, System.Collections.Generic.List< QAction > actions) |
More... | |
new bool | IsAncestorOf (QWidget child) |
More... | |
new bool | IsEnabledTo (QWidget ancestor) |
More... | |
new bool | IsVisibleTo (QWidget ancestor) |
More... | |
new void | Lower () |
More... | |
new QPoint | MapFrom (QWidget parent, QPoint pos) |
More... | |
new QPoint | MapFromGlobal (QPoint pos) |
More... | |
new QPoint | MapFromParent (QPoint pos) |
More... | |
new QPoint | MapTo (QWidget parent, QPoint pos) |
More... | |
new QPoint | MapToGlobal (QPoint pos) |
More... | |
new QPoint | MapToParent (QPoint pos) |
More... | |
new void | Move (int x, int y) |
new void | OverrideWindowFlags (Qt.WindowType type) |
More... | |
new void | OverrideWindowState (Qt.WindowState state) |
new void | Raise () |
More... | |
virtual void | ReleaseDC (System.IntPtr hdc) |
More... | |
new void | ReleaseKeyboard () |
More... | |
new void | ReleaseMouse () |
More... | |
new void | ReleaseShortcut (int id) |
More... | |
new void | RemoveAction (QAction action) |
More... | |
new void | Render (IQPaintDevice target) |
More... | |
new void | Render (QPainter painter) |
More... | |
new void | Render (IQPaintDevice target, QPoint targetOffset) |
More... | |
new void | Render (QPainter painter, QPoint targetOffset) |
More... | |
new void | Render (IQPaintDevice target, QPoint targetOffset, QRegion sourceRegion, QWidget.RenderFlag renderFlags=QWidget.RenderFlag.DrawWindowBackground|QWidget.RenderFlag.DrawChildren) |
More... | |
new void | Render (QPainter painter, QPoint targetOffset, QRegion sourceRegion, QWidget.RenderFlag renderFlags=QWidget.RenderFlag.DrawWindowBackground|QWidget.RenderFlag.DrawChildren) |
More... | |
new void | Repaint () |
More... | |
new void | Repaint (QRect rect) |
More... | |
new void | Repaint (QRegion rgn) |
More... | |
new void | Repaint (int x, int y, int w, int h) |
More... | |
new void | Resize (int w, int h) |
new bool | RestoreGeometry (QByteArray geometry) |
More... | |
new QByteArray | SaveGeometry () |
More... | |
new void | Scroll (int dx, int dy) |
More... | |
new void | Scroll (int dx, int dy, QRect r) |
More... | |
new void | SetAttribute (Qt.WidgetAttribute attribute, bool on=true) |
More... | |
new void | SetBaseSize (int basew, int baseh) |
new void | SetContentsMargins (int left, int top, int right, int bottom) |
More... | |
new void | SetDisabled (bool disable) |
More... | |
new void | SetFixedHeight (int h) |
More... | |
new void | SetFixedSize (QSize s) |
More... | |
new void | SetFixedSize (int w, int h) |
More... | |
new void | SetFixedWidth (int w) |
More... | |
new void | SetFocus () |
More... | |
new void | SetFocus (Qt.FocusReason reason) |
More... | |
new void | SetGeometry (int x, int y, int w, int h) |
new void | SetHidden (bool hidden) |
More... | |
new void | SetMask (QBitmap bitmap) |
More... | |
new void | SetMaximumSize (int maxw, int maxh) |
new void | SetMinimumSize (int minw, int minh) |
new void | SetParent (QWidget parent) |
More... | |
new void | SetParent (QWidget parent, Qt.WindowType f) |
More... | |
new void | SetShortcutAutoRepeat (int id, bool enable=true) |
More... | |
new void | SetShortcutEnabled (int id, bool enable=true) |
More... | |
new void | SetShown (bool shown) |
More... | |
new void | SetSizeIncrement (int w, int h) |
new void | SetSizePolicy (QSizePolicy.Policy horizontal, QSizePolicy.Policy vertical) |
new void | Show () |
More... | |
new void | ShowFullScreen () |
More... | |
new void | ShowMaximized () |
More... | |
new void | ShowMinimized () |
More... | |
new void | ShowNormal () |
More... | |
new void | StackUnder (QWidget w) |
More... | |
new bool | TestAttribute (Qt.WidgetAttribute attribute) |
More... | |
new void | UngrabGesture (Qt.GestureType type) |
More... | |
new void | UnsetCursor () |
new void | UnsetLayoutDirection () |
new void | UnsetLocale () |
new void | Update () |
More... | |
new void | Update (QRect rect) |
More... | |
new void | Update (QRegion rgn) |
More... | |
new void | Update (int x, int y, int w, int h) |
More... | |
new void | UpdateGeometry () |
More... | |
new void | Dispose () |
![]() | |
QObject (QObject parent=null) | |
More... | |
new bool | BlockSignals (bool b) |
More... | |
new bool | Connect (QObject sender, string signal, string member, Qt.ConnectionType type=Qt.ConnectionType.AutoConnection) |
More... | |
new void | DeleteLater () |
More... | |
new bool | Disconnect (QObject receiver, string member=null) |
More... | |
new bool | Disconnect (string signal=null, QObject receiver=null, string member=null) |
More... | |
new void | DumpObjectInfo () |
More... | |
new void | DumpObjectTree () |
More... | |
virtual bool | EventFilter (QObject watched, QEvent @event) |
More... | |
new bool | Inherits (string classname) |
More... | |
new void | InstallEventFilter (QObject filterObj) |
More... | |
new void | KillTimer (int id) |
More... | |
new object | Property (string name) |
More... | |
new void | RemoveEventFilter (QObject obj) |
More... | |
new bool | SetProperty (string name, object value) |
More... | |
new void | SetUserData (uint id, QObjectUserData data) |
new int | StartTimer (int interval) |
More... | |
new QObjectUserData | UserData (uint id) |
new void | Dispose () |
![]() | |
delegate QTextStream | FuncQTextStreamQTextStream (QTextStream qTextStream) |
delegate void | ActionQtMsgTypeString (QtMsgType qtMsgType, string @string) |
delegate QObject | FuncQObject () |
delegate string | FuncStringQByteArray (QByteArray qByteArray) |
delegate QByteArray | FuncQByteArrayString (string @string) |
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 QWidget | Find (NativeULong id) |
More... | |
static void | SetTabOrder (QWidget first, QWidget second) |
More... | |
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 bool | Connect (QObject sender, QMetaMethod signal, QObject receiver, QMetaMethod method, Qt.ConnectionType type=Qt.ConnectionType.AutoConnection) |
More... | |
static bool | Connect (QObject sender, string signal, QObject receiver, string member, Qt.ConnectionType type=Qt.ConnectionType.AutoConnection) |
More... | |
static bool | Disconnect (QObject sender, QMetaMethod signal, QObject receiver, QMetaMethod member) |
More... | |
static bool | Disconnect (QObject sender, string signal, QObject receiver, string member) |
More... | |
static string | Tr (string s, string c=null) |
More... | |
static string | Tr (string s, string c, int n) |
More... | |
static string | TrUtf8 (string s, string c=null) |
More... | |
static string | TrUtf8 (string s, string c, int n) |
More... | |
![]() | |
static QDataStream | Write (QDataStream s, object p) |
static QDataStream | Write (QDataStream stream, QSizeF size) |
More... | |
static QDataStream | Write (QDataStream stream, QPoint point) |
More... | |
static QTextStream | Write (QTextStream s, Qt.FuncQTextStreamQTextStream f) |
static QDataStream | Write (QDataStream stream, QLineF line) |
More... | |
static QDataStream | Write (QDataStream stream, QPointF point) |
More... | |
static QDataStream | Write (QDataStream @out, QChar chr) |
More... | |
static QDataStream | Write (QDataStream @out, QByteArray ba) |
More... | |
static QDataStream | Write (QDataStream stream, QEasingCurve easing) |
More... | |
static QDataStream | Write (QDataStream stream, QRectF rectangle) |
More... | |
static QDataStream | Write (QDataStream @out, QDateTime dateTime) |
More... | |
static QDataStream | Write (QDataStream @out, QUrl url) |
More... | |
static QDataStream | Write (QDataStream @out, QTime time) |
More... | |
static QDataStream | Write (QDataStream arg1, QLocale arg2) |
static QDataStream | Write (QDataStream @out, QBitArray ba) |
More... | |
static QDataStream | Write (QDataStream s, QUuid id) |
More... | |
static QDataStream | Write (QDataStream stream, QLine line) |
More... | |
static QDataStream | Write (QDataStream @out, QDate date) |
More... | |
static QDataStream | Write (QDataStream @out, QRegExp regExp) |
More... | |
static QDataStream | Write (QDataStream stream, QRect rectangle) |
More... | |
static QDataStream | Write (QDataStream stream, QSize size) |
More... | |
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) |
More... | |
static QDataStream | Read (QDataStream @in, QChar chr) |
More... | |
static QDataStream | Read (QDataStream arg1, QLocale arg2) |
static QDataStream | Read (QDataStream stream, QRect rectangle) |
More... | |
static QDataStream | Read (QDataStream arg1, QEasingCurve arg2) |
static QDataStream | Read (QDataStream @in, QDate date) |
More... | |
static QDataStream | Read (QDataStream @in, QUrl url) |
More... | |
static QDataStream | Read (QDataStream s, QUuid id) |
More... | |
static QTextStream | Read (QTextStream s, Qt.FuncQTextStreamQTextStream f) |
static QDataStream | Read (QDataStream stream, QLineF line) |
More... | |
static QDataStream | Read (QDataStream stream, QRectF rectangle) |
More... | |
static QDataStream | Read (QDataStream stream, QPointF point) |
More... | |
static QDataStream | Read (QDataStream stream, QLine line) |
More... | |
static QDataStream | Read (QDataStream @in, QBitArray ba) |
More... | |
static QDataStream | Read (QDataStream stream, QSize size) |
More... | |
static QDataStream | Read (QDataStream @in, QDateTime dateTime) |
More... | |
static QDataStream | Read (QDataStream @in, QTime time) |
More... | |
static QDataStream | Read (QDataStream stream, QPoint point) |
More... | |
static QDataStream | Read (QDataStream @in, QRegExp regExp) |
More... | |
static QDataStream | Read (QDataStream s, object p) |
static QDataStream | Read (QDataStream @in, QByteArray ba) |
More... | |
static QDataStream | Read (QDataStream stream, QSizeF size) |
More... | |
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) |
More... | |
static double | QAcos (double v) |
More... | |
static void | QAddPostRoutine (System.Action ptr) |
More... | |
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 | QCeil (double v) |
More... | |
static ushort | QChecksum (string s, uint len) |
More... | |
static QByteArray | QCompress (QByteArray data, int compressionLevel=-1) |
More... | |
static QByteArray | QCompress (Pointer< byte > data, int nbytes, int compressionLevel=-1) |
More... | |
static double | QCos (double v) |
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 (double p1, double p2) |
More... | |
static bool | QFuzzyCompare (float p1, float p2) |
More... | |
static bool | QFuzzyIsNull (double d) |
static bool | QFuzzyIsNull (float f) |
static uint | QHash (QBitArray key) |
More... | |
static uint | QHash (QChar key) |
More... | |
static uint | QHash (QStringRef key) |
static uint | QHash (QUrl url) |
More... | |
static uint | QHash (QPersistentModelIndex index) |
static uint | QHash (QByteArray key) |
More... | |
static uint | QHash (QModelIndex index) |
static uint | QHash (uint key) |
More... | |
static uint | QHash (char key) |
More... | |
static uint | QHash (byte key) |
More... | |
static uint | QHash (short key) |
More... | |
static uint | QHash (NativeLong key) |
More... | |
static uint | QHash (ushort key) |
More... | |
static uint | QHash (long key) |
More... | |
static uint | QHash (ulong key) |
More... | |
static uint | QHash (int key) |
More... | |
static uint | QHash (string key) |
More... | |
static uint | QHash (NativeULong key) |
More... | |
static Qt.ActionQtMsgTypeString | QInstallMsgHandler (Qt.ActionQtMsgTypeString handler) |
More... | |
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) |
More... | |
static double | QPow (double x, double y) |
More... | |
static void | QRegisterStaticPluginInstanceFunction (Qt.FuncQObject function) |
More... | |
static void | QRemovePostRoutine (System.Action arg1) |
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) |
More... | |
static QByteArray | QUncompress (Pointer< byte > data, int nbytes) |
More... | |
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) |
More... | |
static Pointer< sbyte > | Qstrcpy (Pointer< sbyte > dst, string src) |
More... | |
static Pointer< sbyte > | Qstrdup (string src) |
More... | |
static int | Qstricmp (string str1, string str2) |
More... | |
static uint | Qstrlen (string str) |
More... | |
static int | Qstrncmp (string str1, string str2, uint len) |
More... | |
static Pointer< sbyte > | Qstrncpy (Pointer< sbyte > dst, string src, uint len) |
More... | |
static int | Qstrnicmp (string str1, string str2, uint len) |
More... | |
static uint | Qstrnlen (string str, uint maxlen) |
More... | |
Properties | |
Slot< QAction > | Triggered |
More... | |
Slot< QAction > | Hovered |
More... | |
Slot< System.Int32 > | Activated |
More... | |
Slot< System.Int32 > | Highlighted |
More... | |
QAction | ActiveAction [get, set] |
More... | |
override bool | Visible [get, set] |
More... | |
override QSize | MinimumSizeHint [get] |
More... | |
override QSize | SizeHint [get] |
More... | |
new bool | DefaultUp [get, set] |
More... | |
new bool | NativeMenuBar [get, set] |
More... | |
static new QMetaObject | StaticMetaObject [get] |
new IQMenuBarSignals | Emit [get] |
![]() | |
virtual EventHandler < QEventArgs< QActionEvent > > | ActionEvent |
More... | |
virtual EventHandler < QEventArgs< QEvent > > | ChangeEvent |
More... | |
virtual EventHandler < QEventArgs< QCloseEvent > > | CloseEvent |
More... | |
virtual EventHandler < QEventArgs < QContextMenuEvent > > | ContextMenuEvent |
More... | |
virtual EventHandler < QEventArgs< QDragEnterEvent > > | DragEnterEvent |
More... | |
virtual EventHandler < QEventArgs< QDragLeaveEvent > > | DragLeaveEvent |
More... | |
virtual EventHandler < QEventArgs< QDragMoveEvent > > | DragMoveEvent |
More... | |
virtual EventHandler < QEventArgs< QDropEvent > > | DropEvent |
More... | |
virtual EventHandler < QEventArgs< QEvent > > | EnterEvent |
More... | |
virtual EventHandler < QEventArgs< QFocusEvent > > | FocusInEvent |
More... | |
virtual EventHandler < QEventArgs< QFocusEvent > > | FocusOutEvent |
More... | |
virtual EventHandler < QEventArgs< QHideEvent > > | HideEvent |
More... | |
virtual EventHandler < QEventArgs < QInputMethodEvent > > | InputMethodEvent |
More... | |
virtual EventHandler < QEventArgs< QKeyEvent > > | KeyPressEvent |
More... | |
virtual EventHandler < QEventArgs< QKeyEvent > > | KeyReleaseEvent |
More... | |
virtual EventHandler < QEventArgs< QEvent > > | LeaveEvent |
More... | |
virtual EventHandler < QEventArgs< QMouseEvent > > | MouseDoubleClickEvent |
More... | |
virtual EventHandler < QEventArgs< QMouseEvent > > | MouseMoveEvent |
More... | |
virtual EventHandler < QEventArgs< QMouseEvent > > | MousePressEvent |
More... | |
virtual EventHandler < QEventArgs< QMouseEvent > > | MouseReleaseEvent |
More... | |
virtual EventHandler < QEventArgs< QMoveEvent > > | MoveEvent |
More... | |
virtual EventHandler < QEventArgs< QPaintEvent > > | PaintEvent |
More... | |
virtual EventHandler < QEventArgs< QResizeEvent > > | ResizeEvent |
More... | |
virtual EventHandler < QEventArgs< QShowEvent > > | ShowEvent |
More... | |
virtual EventHandler < QEventArgs< QTabletEvent > > | TabletEvent |
More... | |
virtual EventHandler < QEventArgs< QWheelEvent > > | WheelEvent |
More... | |
Slot< QPoint > | CustomContextMenuRequested |
More... | |
QPalette.ColorRole | BackgroundRole [get, set] |
More... | |
QMargins | ContentsMargins [get, set] |
More... | |
QWidget | FocusProxy [get, set] |
More... | |
QPalette.ColorRole | ForegroundRole [get, set] |
More... | |
QGraphicsEffect | GraphicsEffect [get, set] |
More... | |
QInputContext | InputContext [get, set] |
More... | |
QLayout | Layout [get, set] |
More... | |
QRegion | Mask [get, set] |
More... | |
QStyle | Style [get, set] |
More... | |
Qt.WindowType | WindowFlags [get, set] |
string | WindowRole [get, set] |
More... | |
Qt.WindowState | WindowState [get, set] |
More... | |
virtual int | DevType [get] |
virtual QPaintEngine | PaintEngine [get] |
More... | |
int | ColorCount [get] |
More... | |
int | Depth [get] |
More... | |
int | HeightMM [get] |
More... | |
int | LogicalDpiX [get] |
More... | |
int | LogicalDpiY [get] |
More... | |
int | NumColors [get] |
More... | |
bool | PaintingActive [get] |
More... | |
int | PhysicalDpiX [get] |
More... | |
int | PhysicalDpiY [get] |
More... | |
int | WidthMM [get] |
More... | |
System.Collections.Generic.List < QAction > | Actions [get] |
More... | |
QRect | ContentsRect [get] |
More... | |
NativeULong | EffectiveWinId [get] |
More... | |
QFontInfo | FontInfo [get] |
More... | |
QFontMetrics | FontMetrics [get] |
More... | |
QGraphicsProxyWidget | GraphicsProxyWidget [get] |
More... | |
NativeULong | InternalWinId [get] |
bool | IsEnabledToTLW [get] |
More... | |
bool | IsHidden [get] |
More... | |
bool | IsLeftToRight [get] |
bool | IsRightToLeft [get] |
bool | IsTopLevel [get] |
More... | |
bool | IsWindow [get] |
More... | |
static QWidget | KeyboardGrabber [get] |
More... | |
static QWidget | MouseGrabber [get] |
More... | |
QWidget | NativeParentWidget [get] |
More... | |
QWidget | NextInFocusChain [get] |
More... | |
QWidget | ParentWidget [get] |
More... | |
QWidget | PreviousInFocusChain [get] |
More... | |
QWidget | TopLevelWidget [get] |
More... | |
bool | UnderMouse [get] |
More... | |
QRegion | VisibleRegion [get] |
More... | |
NativeULong | WinId [get] |
More... | |
QWidget | Window [get] |
More... | |
Qt.WindowType | WindowType [get] |
More... | |
new bool | Modal [get] |
More... | |
new Qt.WindowModality | WindowModality [get, set] |
More... | |
new bool | Enabled [get, set] |
More... | |
new QRect | Geometry [get, set] |
More... | |
new QRect | FrameGeometry [get] |
More... | |
new QRect | NormalGeometry [get] |
More... | |
new int | X [get] |
More... | |
new int | Y [get] |
More... | |
new QPoint | Pos [get, set] |
More... | |
new QSize | FrameSize [get] |
More... | |
new QSize | Size [get, set] |
More... | |
new int | Width [get] |
More... | |
new int | Height [get] |
More... | |
new QRect | Rect [get] |
More... | |
new QRect | ChildrenRect [get] |
More... | |
new QRegion | ChildrenRegion [get] |
More... | |
new QSizePolicy | SizePolicy [get, set] |
More... | |
new QSize | MinimumSize [get, set] |
More... | |
new QSize | MaximumSize [get, set] |
More... | |
new int | MinimumWidth [get, set] |
More... | |
new int | MinimumHeight [get, set] |
More... | |
new int | MaximumWidth [get, set] |
More... | |
new int | MaximumHeight [get, set] |
More... | |
new QSize | SizeIncrement [get, set] |
More... | |
new QSize | BaseSize [get, set] |
More... | |
new QPalette | Palette [get, set] |
More... | |
new QFont | Font [get, set] |
More... | |
new QCursor | Cursor [get, set] |
More... | |
new bool | MouseTracking [get, set] |
More... | |
new bool | IsActiveWindow [get] |
More... | |
new Qt.FocusPolicy | FocusPolicy [get, set] |
More... | |
new bool | Focus [get] |
More... | |
new Qt.ContextMenuPolicy | ContextMenuPolicy [get, set] |
More... | |
new bool | UpdatesEnabled [get, set] |
More... | |
virtual new bool | Visible [get, set] |
More... | |
new bool | Minimized [get] |
More... | |
new bool | Maximized [get] |
More... | |
new bool | FullScreen [get] |
More... | |
virtual new QSize | SizeHint [get] |
More... | |
virtual new QSize | MinimumSizeHint [get] |
More... | |
new bool | AcceptDrops [get, set] |
More... | |
new string | WindowTitle [get, set] |
More... | |
new QIcon | WindowIcon [get, set] |
More... | |
new string | WindowIconText [get, set] |
More... | |
new double | WindowOpacity [get, set] |
More... | |
new bool | WindowModified [get, set] |
More... | |
new string | ToolTip [get, set] |
More... | |
new string | StatusTip [get, set] |
More... | |
new string | WhatsThis [get, set] |
More... | |
new string | AccessibleName [get, set] |
More... | |
new string | AccessibleDescription [get, set] |
More... | |
new Qt.LayoutDirection | LayoutDirection [get, set] |
More... | |
new bool | AutoFillBackground [get, set] |
More... | |
new string | StyleSheet [get, set] |
More... | |
new QLocale | Locale [get, set] |
More... | |
new string | WindowFilePath [get, set] |
More... | |
new Qt.InputMethodHint | InputMethodHints [get, set] |
More... | |
static new QMetaObject | StaticMetaObject [get] |
new ushort | Painters [get, set] |
new IQWidgetSignals | Emit [get] |
![]() | |
virtual EventHandler < QEventArgs< QChildEvent > > | ChildEvent |
More... | |
virtual EventHandler < QEventArgs< QEvent > > | CustomEvent |
More... | |
virtual EventHandler < QEventArgs< QEvent > > | Event |
More... | |
virtual EventHandler < QEventArgs< QTimerEvent > > | TimerEvent |
More... | |
Slot< QObject > | DestroyedObj |
More... | |
Slot | Destroyed |
More... | |
QObject | Parent [get, set] |
More... | |
System.Collections.Generic.List < QObject > | Children [get] |
More... | |
System.Collections.Generic.List < QByteArray > | DynamicPropertyNames [get] |
More... | |
bool | IsWidgetType [get] |
More... | |
static uint | RegisterUserData [get] |
QObject | Sender [get] |
More... | |
int | SenderSignalIndex [get] |
More... | |
bool | SignalsBlocked [get] |
More... | |
virtual System.IntPtr | SmokeObject [get, set] |
new string | ObjectName [get, set] |
More... | |
static new QMetaObject | StaticMetaObject [get] |
More... | |
static new QMetaObject | StaticQtMetaObject [get] |
new IQObjectSignals | Emit [get] |
![]() | |
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 | Qrand [get] |
More... | |
![]() | |
System.Int32 | ColorCount [get] |
More... | |
System.Int32 | Depth [get] |
More... | |
System.Int32 | DevType [get] |
System.Int32 | Height [get] |
More... | |
System.Int32 | HeightMM [get] |
More... | |
System.Int32 | LogicalDpiX [get] |
More... | |
System.Int32 | LogicalDpiY [get] |
More... | |
System.Int32 | NumColors [get] |
More... | |
QPaintEngine | PaintEngine [get] |
More... | |
System.Boolean | PaintingActive [get] |
More... | |
System.Int32 | PhysicalDpiX [get] |
More... | |
System.Int32 | PhysicalDpiY [get] |
More... | |
System.Int32 | Width [get] |
More... | |
System.Int32 | WidthMM [get] |
More... | |
Additional Inherited Members | |
![]() | |
enum | RenderFlag { DrawChildren = 2, DrawWindowBackground = 1, IgnoreMask = 4 } |
More... | |
![]() | |
</para > *< para > Creating QM files suitable for use with this[SmokeMethod("qtTrId(const char*, int)")] static strin | QtTrId )(string id, int n=-1) |
![]() | |
object | Q_EMIT = null |
SmokeInvocation | interceptor |
readonly List< QEventHandler > | eventFilters = new List<QEventHandler>() |
The QMenuBar class provides a horizontal menu bar.
A menu bar consists of a list of pull-down menu items. You add menu items with addMenu(). For example, asuming that menubar is a pointer to a QMenuBar and fileMenu is a pointer to a QMenu, the following statement inserts the menu into the menu bar:
menubar->addMenu(fileMenu);
The ampersand in the menu item's text sets Alt+F as a shortcut for this menu. (You can use "&&" to get a real ampersand in the menu bar.)
There is no need to lay out a menu bar. It automatically sets its own geometry to the top of the parent widget and changes it appropriately whenever the parent is resized.
Usage
In most main window style applications you would use the menuBar() function provided in QMainWindow, adding QMenus to the menu bar and adding QActions to the pop-up menus.
Example (from the Menus example):
fileMenu = menuBar()->addMenu(tr("&File"));
fileMenu->addAction(newAct);
Menu items may be removed with removeAction().
Widgets can be added to menus by using instances of the QWidgetAction class to hold them. These actions can then be inserted into menus in the usual way; see the QMenu documentation for more details.
Platform Dependent Look and Feel
Different platforms have different requirements for the appearance of menu bars and their behavior when the user interacts with them. For example, Windows systems are often configured so that the underlined character mnemonics that indicate keyboard shortcuts for items in the menu bar are only shown when the Alt key is pressed.
Plastique widget style. The Plastique widget style, like most other styles, handles the Help menu in the same way as it handles any other menu.
Motif widget style. The Motif widget style treats Help menus in a special way, placing them at right-hand end of the menu bar.
QMenuBar on Mac OS X
QMenuBar on Mac OS X is a wrapper for using the system-wide menu bar. If you have multiple menu bars in one dialog the outermost menu bar (normally inside a widget with widget flag Qt::Window) will be used for the system-wide menu bar.
Qt for Mac OS X also provides a menu bar merging feature to make QMenuBar conform more closely to accepted Mac OS X menu bar layout. The merging functionality is based on string matching the title of a QMenu entry. These strings are translated (using QObject::tr()) in the "QMenuBar" context. If an entry is moved its slots will still fire as if it was in the original place. The table below outlines the strings looked for and where the entry is placed if matched:
String matchesPlacementNotes
about.* Application Menu | About <application name> The application name is fetched from the Info.plist file (see note below). If this entry is not found no About item will appear in the Application Menu.
config, options, setup, settings or preferences Application Menu | Preferences If this entry is not found the Settings item will be disabled
quit or exit Application Menu | Quit <application name> If this entry is not found a default Quit item will be created to call QApplication::quit()
You can override this behavior by using the QAction::menuRole() property.
If you want all windows in a Mac application to share one menu bar, you must create a menu bar that does not have a parent. Create a parent-less menu bar this way:
QMenuBar *menuBar = new QMenuBar(0);
Note: Do not call QMainWindow::menuBar() to create the shared menu bar, because that menu bar will have the QMainWindow as its parent. That menu bar would only be displayed for the parent QMainWindow.
Note: The text used for the application name in the menu bar is obtained from the value set in the Info.plist file in the application's bundle. See Deploying an Application on Mac OS X for more information.
QMenuBar on Windows CE
QMenuBar on Windows CE is a wrapper for using the system-wide menu bar, similar to the Mac. This feature is activated for Windows Mobile and integrates QMenuBar with the native soft keys. The left soft key can be controlled with QMenuBar::setDefaultAction() and the right soft key can be used to access the menu bar.
The hovered() signal is not supported for the native menu integration. Also, it is not possible to display an icon in a native menu on Windows Mobile.
Examples
The Menus example shows how to use QMenuBar and QMenu. The other main window application examples also provide menus using these classes.
See also QMenu, QShortcut, QAction, Introduction to Apple Human Interface Guidelines, GUI Design Handbook: Menu Bar, and Menus Example.
|
protected |
QtGui.QMenuBar.QMenuBar | ( | QWidget | parent = null | ) |
Constructs a menu bar with parent parent.
Returns the QAction at pt. Returns 0 if there is no action at pt or if the location has a separator.
See also addAction() and addSeparator().
Returns the geometry of action act as a QRect.
See also actionAt().
new void QtGui.QMenuBar.AddAction | ( | QAction | action | ) |
This is an overloaded function.
Appends the action action to the menu bar's list of actions.
See also QMenu::addAction(), QWidget::addAction(), and QWidget::actions().
new QAction QtGui.QMenuBar.AddAction | ( | string | text | ) |
This is an overloaded function.
This convenience function creates a new action with text. The function adds the newly created action to the menu's list of actions, and returns it.
See also QWidget::addAction() and QWidget::actions().
This is an overloaded function.
This convenience function creates a new action with the given text. The action's triggered() signal is connected to the receiver's member slot. The function adds the newly created action to the menu's list of actions and returns it.
See also QWidget::addAction() and QWidget::actions().
Appends menu to the menu bar. Returns the menu's menuAction().
Note: The returned QAction object can be used to hide the corresponding menu.
See also QWidget::addAction() and QMenu::menuAction().
Appends a new QMenu with icon and title to the menu bar. The menu bar takes ownership of the menu. Returns the new menu.
See also QWidget::addAction() and QMenu::menuAction().
new QMenu QtGui.QMenuBar.AddMenu | ( | string | title | ) |
Appends a new QMenu with title to the menu bar. The menu bar takes ownership of the menu. Returns the new menu.
See also QWidget::addAction() and QMenu::menuAction().
new QAction QtGui.QMenuBar.AddSeparator | ( | ) |
Appends a separator to the menu.
new void QtGui.QMenuBar.Clear | ( | ) |
Removes all the actions from the menu bar.
Note: On Mac OS X, menu items that have been merged to the system menu bar are not removed by this function. One way to handle this would be to remove the extra actions yourself. You can set the menu role on the different menus, so that you know ahead of time which menu items get merged and which do not. Then decide what to recreate or remove yourself.
See also removeAction().
Returns the widget on the left of the first or on the right of the last menu item, depending on corner.
Note: Using a corner other than Qt::TopRightCorner or Qt::TopLeftCorner will result in a warning.
See also setCornerWidget().
|
virtual |
new void QtGui.QMenuBar.Dispose | ( | ) |
Reimplemented from QObject::eventFilter().
|
virtual |
Reimplemented from QWidget::heightForWidth().
Reimplemented from QtGui.QWidget.
|
protected |
Initialize option with the values from the menu bar and information from action. This method is useful for subclasses when they need a QStyleOptionMenuItem, but don't want to fill in all the information themselves.
See also QStyleOption::initFrom() and QMenu::initStyleOption().
This convenience function inserts menu before action before and returns the menus menuAction().
See also QWidget::insertAction() and addMenu().
This convenience function creates a new separator action, i.e. an action with QAction::isSeparator() returning true. The function inserts the newly created action into this menu bar's list of actions before action before and returns it.
See also QWidget::insertAction() and addSeparator().
|
protected |
Reimplemented from QWidget::actionEvent().
|
protected |
Reimplemented from QWidget::changeEvent().
|
virtual |
Reimplemented from QObject::event().
Reimplemented from QtCore.QObject.
|
protectedvirtual |
Reimplemented from QWidget::focusInEvent().
Reimplemented from QtGui.QWidget.
|
protectedvirtual |
Reimplemented from QWidget::focusOutEvent().
Reimplemented from QtGui.QWidget.
|
protected |
This signal is emitted when a menu action is highlighted; action is the action that caused the event to be sent.
Often this is used to update status information.
See also triggered() and QAction::hovered().
|
protected |
Reimplemented from QWidget::keyPressEvent().
|
protectedvirtual |
Reimplemented from QWidget::leaveEvent().
Reimplemented from QtGui.QWidget.
|
protected |
Reimplemented from QWidget::mouseMoveEvent().
|
protected |
Reimplemented from QWidget::mousePressEvent().
|
protected |
Reimplemented from QWidget::mouseReleaseEvent().
|
protected |
Reimplemented from QWidget::paintEvent().
|
protectedvirtual |
Reimplemented from QWidget::resizeEvent().
Reimplemented from QtGui.QWidget.
|
protected |
Reimplemented from QObject::timerEvent().
|
protected |
This signal is emitted when an action in a menu belonging to this menubar is triggered as a result of a mouse click; action is the action that caused the signal to be emitted.
Note: QMenuBar has to have ownership of the QMenu in order this signal to work.
Normally, you connect each menu action to a single slot using QAction::triggered(), but sometimes you will want to connect several items to a single slot (most often if the user selects from an array). This signal is useful in such cases.
See also hovered() and QAction::triggered().
This sets the given widget to be shown directly on the left of the first menu item, or on the right of the last menu item, depending on corner.
The menu bar takes ownership of widget, reparenting it into the menu bar. However, if the corner already contains a widget, this previous widget will no longer be managed and will still be a visible child of the menu bar.
Note: Using a corner other than Qt::TopRightCorner or Qt::TopLeftCorner will result in a warning.
See also cornerWidget().
|
static |
|
static |
|
static |
|
static |
|
addremove |
Use triggered() instead.
|
getset |
Returns the QAction that is currently highlighted. A null pointer will be returned if no action is currently selected.
Sets the currently highlighted action to act.
This function was introduced in Qt 4.1.
|
getset |
This property holds the popup orientation.
The default popup orientation. By default, menus pop "down" the screen. By setting the property to true, the menu will pop "up". You might call this for menus that are below the document to which they refer.
If the menu would not fit on the screen, the other direction is used automatically.
|
getprotected |
|
addremove |
Use hovered() instead.
|
addremove |
This signal is emitted when a menu action is highlighted; action is the action that caused the event to be sent.
Often this is used to update status information.
See also triggered() and QAction::hovered().
|
get |
Reimplemented from QWidget::minimumSizeHint().
|
getset |
This property holds whether or not a menubar will be used as a native menubar on platforms that support it.
This property specifies whether or not the menubar should be used as a native menubar on platforms that support it. The currently supported platforms are Mac OS X and Windows CE. On these platforms if this property is true, the menubar is used in the native menubar and is not in the window of its parent, if false the menubar remains in the window. On other platforms the value of this attribute has no effect.
The default is to follow whether the Qt::AA_DontUseNativeMenuBar attribute is set for the application. Explicitly settings this property overrides the presence (or abscence) of the attribute.
This property was introduced in Qt 4.6.
|
get |
Reimplemented from QWidget::sizeHint().
|
staticget |
|
addremove |
This signal is emitted when an action in a menu belonging to this menubar is triggered as a result of a mouse click; action is the action that caused the signal to be emitted.
Note: QMenuBar has to have ownership of the QMenu in order this signal to work.
Normally, you connect each menu action to a single slot using QAction::triggered(), but sometimes you will want to connect several items to a single slot (most often if the user selects from an array). This signal is useful in such cases.
See also hovered() and QAction::triggered().
|
getset |
Reimplemented from QWidget::setVisible().