java.lang.Object
io.qt.QFlags<T>
- All Implemented Interfaces:
Serializable
,Cloneable
- Direct Known Subclasses:
QAbstract3DGraph.OptimizationHints
,QAbstract3DGraph.SelectionFlags
,QAbstractAxis.AxisTypes
,QAbstractFileEngine.FileFlags
,QAbstractFileIconProvider.Options
,QAbstractItemModel.CheckIndexOptions
,QAbstractItemView.EditTriggers
,QAbstractPrintDialog.PrintDialogOptions
,QAbstractSocket.BindMode
,QAbstractSocket.PauseModes
,QAbstractSpinBox.StepEnabled
,QAccessible.Relation
,QAnimationCallback.Flags
,QBluetooth.AttAccessConstraints
,QBluetooth.SecurityFlags
,QBluetoothDeviceDiscoveryAgent.DiscoveryMethods
,QBluetoothDeviceInfo.CoreConfigurations
,QBluetoothDeviceInfo.Fields
,QBluetoothDeviceInfo.ServiceClasses
,QByteArray.Base64Options
,QCamera.Features
,QCanBusDevice.Directions
,QCanBusDevice.Filter.FormatFilters
,QCanBusFrame.FrameErrors
,QCborValue.DiagnosticNotationOptions
,QCborValue.EncodingOptions
,QChart.AnimationOptions
,QChartView.RubberBands
,QClearBuffers.BufferTypeFlags
,QColorDialog.ColorDialogOptions
,QCommandLineOption.Flags
,QDateTimeEdit.Sections
,QDBusConnection.ConnectionCapabilities
,QDBusConnection.RegisterOptions
,QDBusConnection.VirtualObjectRegisterOptions
,QDBusServiceWatcher.WatchMode
,QDesignerFormWindowInterface.Feature
,QDesignerIntegrationInterface.Feature
,QDialogButtonBox.StandardButtons
,QDir.Filters
,QDir.SortFlags
,QDirIterator.IteratorFlags
,QDockWidget.DockWidgetFeatures
,QDomDocument.ParseOptions
,QEventLoop.ProcessEventsFlags
,QEventPoint.States
,QFileDevice.FileHandleFlags
,QFileDevice.MemoryMapFlags
,QFileDevice.Permissions
,QFileDialog.Options
,QFileSystemModel.Options
,QFontComboBox.FontFilters
,QFontDialog.FontDialogOptions
,QGeoAreaMonitorSource.AreaMonitorFeatures
,QGeoPositionInfoSource.PositioningMethods
,QGeoRouteRequest.FeatureTypes
,QGeoRouteRequest.FeatureWeights
,QGeoRouteRequest.ManeuverDetails
,QGeoRouteRequest.RouteOptimizations
,QGeoRouteRequest.SegmentDetails
,QGeoRouteRequest.TravelModes
,QGeoServiceProvider.GeocodingFeatures
,QGeoServiceProvider.MappingFeatures
,QGeoServiceProvider.NavigationFeatures
,QGeoServiceProvider.PlacesFeatures
,QGeoServiceProvider.RoutingFeatures
,QGestureRecognizer.Result
,QGlyphRun.GlyphRunFlags
,QGraphicsBlurEffect.BlurHints
,QGraphicsEffect.ChangeFlags
,QGraphicsItem.GraphicsItemFlags
,QGraphicsScene.SceneLayers
,QGraphicsView.CacheMode
,QGraphicsView.OptimizationFlags
,QHostAddress.ConversionMode
,QHstsPolicy.PolicyFlags
,QHttpServerRequest.Methods
,QImageIOHandler.Transformations
,QImageIOPlugin.Capabilities
,QInputDevice.Capabilities
,QInputDevice.DeviceTypes
,QInputDialog.InputDialogOptions
,QIODeviceBase.OpenMode
,QItemSelectionModel.SelectionFlags
,QJSEngine.Extensions
,QLibrary.LoadHints
,QLocale.DataSizeFormats
,QLocale.LanguageCodeTypes
,QLocale.NumberOptions
,QLocalServer.SocketOptions
,QLocalSocket.SocketOptions
,QLocation.VisibilityScope
,QLowEnergyCharacteristic.PropertyTypes
,QLowEnergyService.ServiceTypes
,QMainWindow.DockOptions
,QMatrix4x4.Flags
,QMdiArea.AreaOptions
,QMdiSubWindow.SubWindowOptions
,QMemoryBarrier.Operations
,QMessageBox.StandardButtons
,QMetaType.GenericFlags
,QMetaType.TypeFlags
,QNearFieldTarget.AccessMethods
,QNetworkInformation.Features
,QNetworkInterface.InterfaceFlags
,QNetworkProxy.Capabilities
,QOpenGLBuffer.RangeAccessFlags
,QOpenGLDebugMessage.Severities
,QOpenGLDebugMessage.Sources
,QOpenGLDebugMessage.Types
,QOpenGLFunctions.OpenGLFeatures
,QOpenGLShader.ShaderType
,QOpenGLTexture.Features
,QPaintEngine.DirtyFlags
,QPaintEngine.PaintEngineFeatures
,QPainter.PixmapFragmentHints
,QPainter.RenderHints
,QPdfDocumentRenderOptions.RenderFlags
,QPinchGesture.ChangeFlags
,QPointingDevice.PointerTypes
,QPolarChart.PolarOrientations
,QQmlImageProviderBase.Flags
,QQuickItem.Flags
,QQuickPaintedItem.PerformanceHints
,QQuickWindow.CreateTextureOptions
,QRawFont.LayoutFlags
,QRegularExpression.MatchOptions
,QRegularExpression.PatternOptions
,QRegularExpression.WildcardConversionOptions
,QSerialPort.Directions
,QSerialPort.PinoutSignals
,QSGImageNode.TextureCoordinatesTransformMode
,QSGMaterial.Flags
,QSGMaterialShader.Flags
,QSGMaterialShader.GraphicsPipelineState.ColorMask
,QSGMaterialShader.RenderState.DirtyStates
,QSGNode.DirtyState
,QSGNode.Flags
,QSGRendererInterface.ShaderCompilationTypes
,QSGRendererInterface.ShaderSourceTypes
,QSGRenderNode.RenderingFlags
,QSGRenderNode.StateFlags
,QSGSimpleTextureNode.TextureCoordinatesTransformMode
,QSizePolicy.ControlTypes
,QSql.ParamType
,QSsl.SslOptions
,QStandardPaths.LocateOptions
,QString.SectionFlags
,QStringConverterBase.Flags
,QStyle.State
,QStyle.SubControls
,QStyleOptionButton.ButtonFeatures
,QStyleOptionFrame.FrameFeatures
,QStyleOptionTab.CornerWidgets
,QStyleOptionTab.TabFeatures
,QStyleOptionToolBar.ToolBarFeatures
,QStyleOptionToolButton.ToolButtonFeatures
,QStyleOptionViewItem.ViewItemFeatures
,QSurface3DSeries.DrawFlags
,QSurfaceFormat.FormatOptions
,Qt.Alignment
,Qt.ApplicationStates
,Qt.DockWidgetAreas
,Qt.DropActions
,Qt.Edges
,Qt.FindChildOptions
,Qt.GestureFlags
,Qt.ImageConversionFlags
,Qt.InputMethodHints
,Qt.InputMethodQueries
,Qt.ItemFlags
,Qt.KeyboardModifiers
,Qt.MatchFlags
,Qt.MouseButtons
,Qt.MouseEventFlags
,Qt.Orientations
,Qt.ScreenOrientations
,Qt.SplitBehavior
,Qt.TextInteractionFlags
,Qt.ToolBarAreas
,Qt.TouchPointStates
,Qt.WindowFlags
,Qt.WindowStates
,QtConcurrent.ReduceOptions
,QtDrawUtil.DrawingHints
,QTextBoundaryFinder.BoundaryReasons
,QTextDocument.FindFlags
,QTextDocument.MarkdownFeatures
,QTextEdit.AutoFormatting
,QTextFormat.PageBreakFlags
,QTextItem.RenderFlags
,QTextLayout.GlyphRunRetrievalFlags
,QTextOption.Flags
,QTextStream.NumberFlags
,QTreeWidgetItemIterator.IteratorFlags
,QUrl.AceProcessingOptions
,QUrl.ComponentFormattingOptions
,QUrl.FormattingOptions
,QUrl.UserInputResolutionOptions
,QVideoFrame.PaintOptions.PaintFlags
,QVirtualKeyboardInputEngine.ReselectFlags
,QWebEngineContextMenuRequest.EditFlags
,QWebEngineContextMenuRequest.MediaFlags
,QWebEngineFileSystemAccessRequest.AccessFlags
,QWebEnginePage.FindFlags
,QWebEngineUrlScheme.Flags
,QWidget.RenderFlags
,QWindowsApplication.DarkModeHandling
,QWindowsApplication.TouchWindowTouchTypes
,QWizard.WizardOptions
,QXcbWindow.WindowTypes
public abstract class QFlags<T extends QtAbstractFlagEnumerator>
extends Object
implements Serializable, Cloneable
The QFlags class provides a type-safe way of storing OR-combinations of enum values.
Java wrapper for Qt's class QFlags
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
Clears all flags ints
.final void
Clears the flagother
.final void
clearAll()
Clears all flags.clone()
Clones the flagsstatic <E extends QtAbstractFlagEnumerator>
intCompares two QFlags values numerically.final boolean
Returns true if the given object is instance of the same class and has the same flag value.final void
T []
flags()
Returns an array of flag objects represented by this QFlags.protected final T []
Returns an unmodifiable set of flag objects represented by this QFlags.final int
hashCode()
Returns a hash code computed from the flag's class and its value.final boolean
Deprecated.final boolean
Deprecated.UsetestFlags(QFlags)
instead.final void
final void
Overloaded constructor forsetFlag(QtAbstractFlagEnumerator, boolean)
withon = true
.final void
setValue
(int value) Sets the value of this QFlags.final boolean
testAnyFlags
(T ... flags) final boolean
testAnyFlags
(QFlags<T> flags) final boolean
final boolean
final boolean
final int
toInt()
final String
toString()
Returns the string representation of the object given byQVariant(this).toString()
.final int
value()
Returns the value of this QFlags.
-
Constructor Details
-
QFlags
-
QFlags
protected QFlags(int value)
-
-
Method Details
-
clone
Clones the flags -
combined
-
cleared
-
set
-
setFlag
Overloaded constructor for
setFlag(QtAbstractFlagEnumerator, boolean)
withon = true
. -
setFlag
-
set
-
exclude
-
isSet
Deprecated.UsetestFlags(QFlags)
instead. -
isSet
Deprecated.UsetestFlags(QtAbstractFlagEnumerator...)
instead. -
testFlag
-
testFlags
-
testFlags
-
testAnyFlags
-
testAnyFlags
-
clear
-
clear
-
clearAll
public final void clearAll()Clears all flags. -
setValue
public final void setValue(int value) Sets the value of this QFlags.- Parameters:
value
- new value
-
toInt
public final int toInt() -
value
public final int value()Returns the value of this QFlags.- Returns:
- value
-
flags
Returns an array of flag objects represented by this QFlags.- Returns:
- array of enum entries
-
flags
Returns an unmodifiable set of flag objects represented by this QFlags.- Returns:
- array of enum entries
-
equals
Returns true if the given object is instance of the same class and has the same flag value. -
hashCode
public final int hashCode()Returns a hash code computed from the flag's class and its value. -
toString
Returns the string representation of the object given byQVariant(this).toString()
. -
compare
Compares two QFlags values numerically. The value returned is identical to what would be returned by:Integer.compare(a.value(), b.value())
-
testFlags(QtAbstractFlagEnumerator...)
instead.