Crate qt_widgets

source ·
Expand description

Bindings for QtWidgets library.

This crate was generated using cpp_to_rust.

This is work in progress, so the API will significantly change in the future. Some methods are missing, and some are inconvenient to use. Some methods are unsafe even though they are not marked as unsafe. Users must carefully track ownership of the objects, as usual Rust guarantees do not take effect. This will hopefully improve in the future. Please report any issues to the issue tracker.

This crate was generated for Qt 5.8.0. If Qt compatibility guarantees take effect, it should be compatible with future minor releases and with past and future patch releases, but API added in future releases won’t be available. The crate is not compatible with past minor Qt releases. If you need to use a Qt version incompatible with this crate, use qt_generator to generate crates for your Qt version.

Refer to qt_core crate documentation for general information about Qt crates. Note that if you use qt_widgets, you should use qt_widgets::application::Application as the application object.

Re-exports

pub extern crate cpp_utils;
pub extern crate libc;
pub extern crate qt_core;
pub extern crate qt_gui;

Modules

The QAbstractButton class is the abstract base class of button widgets, providing functionality common to buttons.

The QAbstractGraphicsShapeItem class provides a common base for all path items.

The QAbstractItemDelegate class is used to display and edit data items from a model.

The QAbstractItemView class provides the basic functionality for item view classes.

The QAbstractScrollArea widget provides a scrolling area with on-demand scroll bars.

The QAbstractSlider class provides an integer value within a range.

The QAbstractSpinBox class provides a spinbox and a line edit to display values.

The QAccessibleWidget class implements the QAccessibleInterface for QWidgets.

The QAction class provides an abstract user interface action that can be inserted into widgets.

The QActionGroup class groups actions together.

The QApplication class manages the GUI application's control flow and main settings.

The QBoxLayout class lines up child widgets horizontally or vertically.

The QButtonGroup class provides a container to organize groups of button widgets.

The QCalendarWidget class provides a monthly based calendar widget allowing the user to select a date.

The QCheckBox widget provides a checkbox with a text label.

The QColorDialog class provides a dialog widget for specifying colors.

The QColormap class maps device independent QColors to device dependent pixel values.

The QColumnView class provides a model/view implementation of a column view.

The QComboBox widget is a combined button and popup list.

The QCommandLinkButton widget provides a Vista style command link button.

The QCommonStyle class encapsulates the common Look and Feel of a GUI.

The QCompleter class provides completions based on an item model.

The QDataWidgetMapper class provides mapping between a section of a data model to widgets.

The QDateEdit class provides a widget for editing dates based on the QDateTimeEdit widget.

The QDateTimeEdit class provides a widget for editing dates and times.

The QDesktopWidget class provides access to screen information on multi-head systems.

The QDial class provides a rounded range control (like a speedometer or potentiometer).

The QDialog class is the base class of dialog windows.

The QDialogButtonBox class is a widget that presents buttons in a layout that is appropriate to the current widget style.

The QDirModel class provides a data model for the local filesystem.

The QDockWidget class provides a widget that can be docked inside a QMainWindow or floated as a top-level window on the desktop.

The QDoubleSpinBox class provides a spin box widget that takes doubles.

The QErrorMessage class provides an error message display dialog.

The QFileDialog class provides a dialog that allow users to select files or directories.

The QFileIconProvider class provides file icons for the QDirModel and the QFileSystemModel classes.

The QFileSystemModel class provides a data model for the local filesystem.

The QFocusFrame widget provides a focus frame which can be outside of a widget's normal paintable area.

The QFontComboBox widget is a combobox that lets the user select a font family.

The QFontDialog class provides a dialog widget for selecting a font.

The QFormLayout class manages forms of input widgets and their associated labels.

The QFrame class is the base class of widgets that can have a frame.

The QGesture class represents a gesture, containing properties that describe the corresponding user input.

The QGestureEvent class provides the description of triggered gestures.

The QGestureRecognizer class provides the infrastructure for gesture recognition.

The QGraphicsAnchor class represents an anchor between two items in a QGraphicsAnchorLayout.

The QGraphicsAnchorLayout class provides a layout where one can anchor widgets together in Graphics View.

The QGraphicsBlurEffect class provides a blur effect.

The QGraphicsColorizeEffect class provides a colorize effect.

The QGraphicsDropShadowEffect class provides a drop shadow effect.

The QGraphicsEffect class is the base class for all graphics effects.

The QGraphicsEllipseItem class provides an ellipse item that you can add to a QGraphicsScene.

The QGraphicsGridLayout class provides a grid layout for managing widgets in Graphics View.

The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.

The QGraphicsItemAnimation class provides simple animation support for QGraphicsItem.

The QGraphicsItemGroup class provides a container that treats a group of items as a single item.

The QGraphicsLayout class provides the base class for all layouts in Graphics View.

The QGraphicsLayoutItem class can be inherited to allow your custom items to be managed by layouts.

The QGraphicsLineItem class provides a line item that you can add to a QGraphicsScene.

The QGraphicsLinearLayout class provides a horizontal or vertical layout for managing widgets in Graphics View.

The QGraphicsObject class provides a base class for all graphics items that require signals, slots and properties.

The QGraphicsOpacityEffect class provides an opacity effect.

The QGraphicsPathItem class provides a path item that you can add to a QGraphicsScene.

The QGraphicsPixmapItem class provides a pixmap item that you can add to a QGraphicsScene.

The QGraphicsPolygonItem class provides a polygon item that you can add to a QGraphicsScene.

The QGraphicsProxyWidget class provides a proxy layer for embedding a QWidget in a QGraphicsScene.

The QGraphicsRectItem class provides a rectangle item that you can add to a QGraphicsScene.

The QGraphicsRotation class provides a rotation transformation around a given axis.

The QGraphicsScale class provides a scale transformation.

The QGraphicsScene class provides a surface for managing a large number of 2D graphical items.

The QGraphicsSceneContextMenuEvent class provides context menu events in the graphics view framework.

The QGraphicsSceneDragDropEvent class provides events for drag and drop in the graphics view framework.

The QGraphicsSceneEvent class provides a base class for all graphics view related events.

The QGraphicsSceneHelpEvent class provides events when a tooltip is requested.

The QGraphicsSceneHoverEvent class provides hover events in the graphics view framework.

The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework.

The QGraphicsSceneMoveEvent class provides events for widget moving in the graphics view framework.

The QGraphicsSceneResizeEvent class provides events for widget resizing in the graphics view framework.

The QGraphicsSceneWheelEvent class provides wheel events in the graphics view framework.

The QGraphicsSimpleTextItem class provides a simple text path item that you can add to a QGraphicsScene.

The QGraphicsTextItem class provides a text item that you can add to a QGraphicsScene to display formatted text.

The QGraphicsTransform class is an abstract base class for building advanced transformations on QGraphicsItems.

The QGraphicsView class provides a widget for displaying the contents of a QGraphicsScene.

The QGraphicsWidget class is the base class for all widget items in a QGraphicsScene.

The QGridLayout class lays out widgets in a grid.

The QGroupBox widget provides a group box frame with a title.

The QHBoxLayout class lines up widgets horizontally.

The QHash class is a template class that provides a hash-table-based dictionary.

The QHeaderView class provides a header row or header column for item views.

The QInputDialog class provides a simple convenience dialog to get a single value from the user.

The QItemDelegate class provides display and editing facilities for data items from a model.

The QItemEditorCreatorBase class provides an abstract base class that must be subclassed when implementing new item editor creators.

The QItemEditorFactory class provides widgets for editing item data in views and delegates.

The QKeyEventTransition class provides a transition for key events.

The QKeySequenceEdit widget allows to input a QKeySequence.

The QLCDNumber widget displays a number with LCD-like digits.

The QLabel widget provides a text or image display.

The QLayout class is the base class of geometry managers.

The QLayoutItem class provides an abstract item that a QLayout manipulates.

The QLineEdit widget is a one-line text editor.

The QList class is a template class that provides lists.

The QListView class provides a list or icon view onto a model.

The QListWidget class provides an item-based list widget.

The QListWidgetItem class provides an item for use with the QListWidget item view class.

The QMainWindow class provides a main application window.

The QMap class is a template class that provides a red-black-tree-based dictionary.

The QMdiArea widget provides an area in which MDI windows are displayed.

The QMdiSubWindow class provides a subwindow class for QMdiArea.

The QMenu class provides a menu widget for use in menu bars, context menus, and other popup menus.

The QMenuBar class provides a horizontal menu bar.

The QMessageBox class provides a modal dialog for informing the user or for asking the user a question and receiving an answer.

The QMouseEventTransition class provides a transition for mouse events.

The QOpenGLWidget class is a widget for rendering OpenGL graphics.

The QPair class is a template class that stores a pair of items.

The QPanGesture class describes a panning gesture made by the user.

The QPinchGesture class describes a pinch gesture made by the user.

The QPlainTextDocumentLayout class implements a plain text layout for QTextDocument

The QPlainTextEdit class provides a widget that is used to edit and display plain text.

The QProgressBar widget provides a horizontal or vertical progress bar.

The QProgressDialog class provides feedback on the progress of a slow operation.

The QProxyStyle class is a convenience class that simplifies dynamically overriding QStyle elements.

The QPushButton widget provides a command button.

The QRadioButton widget provides a radio button with a text label.

The QRubberBand class provides a rectangle or line that can indicate a selection or a boundary.

The QScrollArea class provides a scrolling view onto another widget.

The QScrollBar widget provides a vertical or horizontal scroll bar.

The QScroller class enables kinetic scrolling for any scrolling widget or graphics item.

The QScrollerProperties class stores the settings for a QScroller.

The QShortcut class is used to create keyboard shortcuts.

The QSizeGrip class provides a resize handle for resizing top-level windows.

The QSizePolicy class is a layout attribute describing horizontal and vertical resizing policy.

The QSlider widget provides a vertical or horizontal slider.

Binding Qt signals to Rust closures or extern functions.

The QSpacerItem class provides blank space in a layout.

The QSpinBox class provides a spin box widget.

The QSplashScreen widget provides a splash screen that can be shown during application startup.

The QSplitter class implements a splitter widget.

The QSplitterHandle class provides handle functionality for the splitter.

The QStackedLayout class provides a stack of widgets where only one widget is visible at a time.

The QStackedWidget class provides a stack of widgets where only one widget is visible at a time.

The QStatusBar class provides a horizontal bar suitable for presenting status information.

The QStyle class is an abstract base class that encapsulates the look and feel of a GUI.

The QStyleFactory class creates QStyle objects.

The QStyleHintReturn class provides style hints that return more than basic data types.

The QStyleHintReturnMask class provides style hints that return a QRegion.

The QStyleHintReturnVariant class provides style hints that return a QVariant.

The QStyleOption class stores the parameters used by QStyle functions.

The QStyleOptionButton class is used to describe the parameters for drawing buttons.

The QStyleOptionComboBox class is used to describe the parameter for drawing a combobox.

The QStyleOptionComplex class is used to hold parameters that are common to all complex controls.

The QStyleOptionDockWidget class is used to describe the parameters for drawing a dock widget.

The QStyleOptionFocusRect class is used to describe the parameters for drawing a focus rectangle with QStyle.

The QStyleOptionFrame class is used to describe the parameters for drawing a frame.

The QStyleOptionGraphicsItem class is used to describe the parameters needed to draw a QGraphicsItem.

The QStyleOptionGroupBox class describes the parameters for drawing a group box.

The QStyleOptionHeader class is used to describe the parameters for drawing a header.

The QStyleOptionMenuItem class is used to describe the parameter necessary for drawing a menu item.

The QStyleOptionProgressBar class is used to describe the parameters necessary for drawing a progress bar.

The QStyleOptionRubberBand class is used to describe the parameters needed for drawing a rubber band.

The QStyleOptionSizeGrip class is used to describe the parameter for drawing a size grip.

The QStyleOptionSlider class is used to describe the parameters needed for drawing a slider.

The QStyleOptionSpinBox class is used to describe the parameters necessary for drawing a spin box.

The QStyleOptionTab class is used to describe the parameters for drawing a tab bar.

The QStyleOptionTabBarBase class is used to describe the base of a tab bar, i.e. the part that the tab bar usually overlaps with.

The QStyleOptionTabWidgetFrame class is used to describe the parameters for drawing the frame around a tab widget.

The QStyleOptionTitleBar class is used to describe the parameters for drawing a title bar.

The QStyleOptionToolBar class is used to describe the parameters for drawing a toolbar.

The QStyleOptionToolBox class is used to describe the parameters needed for drawing a tool box.

The QStyleOptionToolButton class is used to describe the parameters for drawing a tool button.

The QStyleOptionViewItem class is used to describe the parameters used to draw an item in a view widget.

The QStylePainter class is a convenience class for drawing QStyle elements inside a widget.

The QStylePlugin class provides an abstract base for custom QStyle plugins.

The QStyledItemDelegate class provides display and editing facilities for data items from a model.

The QSwipeGesture class describes a swipe gesture made by the user.

The QSystemTrayIcon class provides an icon for an application in the system tray.

The QTabBar class provides a tab bar, e.g. for use in tabbed dialogs.

The QTabWidget class provides a stack of tabbed widgets.

The QTableView class provides a default model/view implementation of a table view.

The QTableWidget class provides an item-based table view with a default model.

The QTableWidgetItem class provides an item for use with the QTableWidget class.

The QTableWidgetSelectionRange class provides a way to interact with selection in a model without using model indexes and a selection model.

The QTapAndHoldGesture class describes a tap-and-hold (aka LongTap) gesture made by the user.

The QTapGesture class describes a tap gesture made by the user.

The QTextBrowser class provides a rich text browser with hypertext navigation.

The QTextEdit class provides a widget that is used to edit and display both plain and rich text.

The QTileRules class provides the rules used to draw a pixmap or image split into nine segments.

The QTimeEdit class provides a widget for editing times based on the QDateTimeEdit widget.

The QToolBar class provides a movable panel that contains a set of controls.

The QToolBox class provides a column of tabbed widget items.

The QToolButton class provides a quick-access button to commands or options, usually used inside a QToolBar.

The QToolTip class provides tool tips (balloon help) for any widget.

The QTreeView class provides a default model/view implementation of a tree view.

The QTreeWidget class provides a tree view that uses a predefined tree model.

The QTreeWidgetItem class provides an item for use with the QTreeWidget convenience class.

The QTreeWidgetItemIterator class provides a way to iterate over the items in a QTreeWidget instance.

The QUndoCommand class is the base class of all commands stored on a QUndoStack.

The QUndoGroup class is a group of QUndoStack objects.

The QUndoStack class is a stack of QUndoCommand objects.

The QUndoView class displays the contents of a QUndoStack.

The QVBoxLayout class lines up widgets vertically.

The QVector class is a template class that provides a dynamic array.

The QWhatsThis class provides a simple description of any widget, i.e. answering the question "What's This?".

The QWidget class is the base class of all user interface objects.

The QWidgetAction class extends QAction by an interface for inserting custom widgets into action based containers, such as toolbars.

The QWidgetItem class is a layout item that represents a widget.

The QWizard class provides a framework for wizards.

The QWizardPage class is the base class for wizard pages.