Movatterモバイル変換


[0]ホーム

URL:


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

Menu

Qt Documentation

  • Qt 4.8
  • Qt3SupportLight
  • Q3PopupMenu

Q3PopupMenu Class

TheQ3PopupMenu class is a thin compatibility wrapper aroundQMenu.More...

Header:#include <Q3PopupMenu>
Inherits:QMenu

Public Functions

Q3PopupMenu(QWidget * parent = 0, const char * name = 0)
intexec()
intexec(const QPoint & pos, int indexAtPoint = 0)
intmargin() const
voidsetMargin(int margin)
  • 34 public functions inherited fromQMenu
  • 220 public functions inherited fromQWidget
  • 29 public functions inherited fromQObject
  • 12 public functions inherited fromQPaintDevice

Additional Inherited Members

  • 4 properties inherited fromQMenu
  • 58 properties inherited fromQWidget
  • 1 property inherited fromQObject
  • 19 public slots inherited fromQWidget
  • 1 public slot inherited fromQObject
  • 4 signals inherited fromQMenu
  • 1 signal inherited fromQWidget
  • 1 signal inherited fromQObject
  • 2 static public members inherited fromQMenu
  • 4 static public members inherited fromQWidget
  • 7 static public members inherited fromQObject
  • 16 protected functions inherited fromQMenu
  • 37 protected functions inherited fromQWidget
  • 8 protected functions inherited fromQObject
  • 1 protected function inherited fromQPaintDevice
  • 1 protected slot inherited fromQWidget

Detailed Description

TheQ3PopupMenu class is a thin compatibility wrapper aroundQMenu.

UseQMenu in new applications. Note that the menu's actions must beQ3Actions.

Member Function Documentation

Q3PopupMenu::Q3PopupMenu(QWidget * parent = 0, constchar * name = 0)

Constructs a menu with the givenparent andname.

int Q3PopupMenu::exec()

Pops up the menu and returns the ID of the action that was selected.

See alsoQMenu::exec().

int Q3PopupMenu::exec(constQPoint & pos,int indexAtPoint = 0)

Pops up the menu at coordinatepos and returns the ID of the action that was selected.

IfindexAtPoint is specified, the menu will pop up with the item at indexindexAtPoint under the mouse cursor.

See alsoQMenu::exec().

int Q3PopupMenu::margin() const

Returns the width of the margin around the contents of the widget.

This function usesQWidget::getContentsMargins() to get the margin.

This function was introduced in Qt 4.2.

See alsosetMargin() andQWidget::getContentsMargins().

void Q3PopupMenu::setMargin(int margin)

Sets the width of the margin around the contents of the widget tomargin.

This function usesQWidget::setContentsMargins() to set the margin.

This function was introduced in Qt 4.2.

See alsomargin() andQWidget::setContentsMargins().

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of theGNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.


[8]ページ先頭

©2009-2025 Movatter.jp