java.lang.Object
io.qt.QFlags<T>
- All Implemented Interfaces:
Serializable
,Cloneable
- Direct Known Subclasses:
EnumAttributes
,MetaDataAttributes
,MetaObjectAttributes
,MethodAttributes
,PropertyAttributes
,QAbstract3DGraph.OptimizationHints
,QAbstract3DGraph.SelectionFlags
,QAbstractAxis.AxisTypes
,QAbstractFileEngine.FileFlags
,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.CaptureModes
,QCamera.LockTypes
,QCameraExposure.FlashModes
,QCameraFocus.FocusModes
,QCameraImageCapture.CaptureDestinations
,QCanBusDevice.Directions
,QCanBusDevice.Filter.FormatFilters
,QCanBusFrame.FrameErrors
,QCborValue.DiagnosticNotationOptions
,QCborValue.EncodingOptions
,QChart.AnimationOptions
,QChartView.RubberBands
,QColorDialog.ColorDialogOptions
,QCommandLineOption.Flags
,QDateTimeEdit.Sections
,QDBusConnection.ConnectionCapabilities
,QDBusConnection.RegisterOptions
,QDBusServiceWatcher.WatchMode
,QDesignerFormWindowInterface.Feature
,QDesignerIntegrationInterface.Feature
,QDialogButtonBox.StandardButtons
,QDir.Filters
,QDir.SortFlags
,QDirIterator.IteratorFlags
,QDockWidget.DockWidgetFeatures
,QEventLoop.ProcessEventsFlags
,QFileDevice.FileHandleFlags
,QFileDevice.Permissions
,QFileDialog.Options
,QFileIconProvider.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
,QImageIOHandler.Transformations
,QImageIOPlugin.Capabilities
,QInputDialog.InputDialogOptions
,QIODevice.OpenMode
,QItemSelectionModel.SelectionFlags
,QJSEngine.Extensions
,QLibrary.LoadHints
,QLocale.DataSizeFormats
,QLocale.NumberOptions
,QLocalServer.SocketOptions
,QLocation.VisibilityScope
,QLowEnergyCharacteristic.PropertyTypes
,QLowEnergyService.ServiceTypes
,QMainWindow.DockOptions
,QMdiArea.AreaOptions
,QMdiSubWindow.SubWindowOptions
,QMediaPlayer.Flags
,QMediaServiceProviderHint.Features
,QMemoryBarrier.Operations
,QMessageBox.StandardButtons
,QMetaType.GenericFlags
,QMetaType.TypeFlags
,QNearFieldManager.TargetAccessModes
,QNearFieldShareManager.ShareModes
,QNearFieldTarget.AccessMethods
,QNetworkConfiguration.StateFlags
,QNetworkConfigurationManager.Capabilities
,QNetworkInterface.InterfaceFlags
,QNetworkProxy.Capabilities
,QNetworkSession.UsagePolicies
,QOpenGLBuffer.RangeAccessFlags
,QOpenGLDebugMessage.Severities
,QOpenGLDebugMessage.Sources
,QOpenGLDebugMessage.Types
,QOpenGLFunctions.OpenGLFeatures
,QOpenGLShader.ShaderType
,QOpenGLTexture.Features
,QPaintEngine.DirtyFlags
,QPaintEngine.PaintEngineFeatures
,QPainter.PixmapFragmentHints
,QPainter.RenderHints
,QPinchGesture.ChangeFlags
,QPolarChart.PolarOrientations
,QQmlImageProviderBase.Flags
,QQuickItem.Flags
,QQuickPaintedItem.PerformanceHints
,QQuickWindow.CreateTextureOptions
,QRawFont.LayoutFlags
,QRegularExpression.MatchOptions
,QRegularExpression.PatternOptions
,QSceneChange.DeliveryFlags
,QScriptClass.QueryFlags
,QScriptEngine.QObjectWrapOptions
,QScriptValue.PropertyFlags
,QScriptValue.ResolveFlags
,QSerialPort.Directions
,QSerialPort.PinoutSignals
,QSGAbstractRenderer.ClearMode
,QSGAbstractRenderer.MatrixTransformFlags
,QSGEngine.CreateTextureOptions
,QSGImageNode.TextureCoordinatesTransformMode
,QSGMaterial.Flags
,QSGMaterialRhiShader.Flags
,QSGMaterialRhiShader.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
,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
,Qt3DCore.ChangeFlags
,QtConcurrent.ReduceOptions
,QtDrawUtil.DrawingHints
,QTextBoundaryFinder.BoundaryReasons
,QTextCodec.ConversionFlags
,QTextDocument.FindFlags
,QTextDocument.MarkdownFeatures
,QTextEdit.AutoFormatting
,QTextFormat.PageBreakFlags
,QTextItem.RenderFlags
,QTextOption.Flags
,QTextStream.NumberFlags
,QTouchDevice.Capabilities
,QTouchEvent.TouchPoint.InfoFlags
,QTreeWidgetItemIterator.IteratorFlags
,QUrl.ComponentFormattingOptions
,QUrl.FormattingOptions
,QUrl.UserInputResolutionOptions
,QVideoFilterRunnable.RunFlags
,QVirtualKeyboardInputEngine.ReselectFlags
,QWebEngineContextMenuData.EditFlags
,QWebEngineContextMenuData.MediaFlags
,QWebEnginePage.FindFlags
,QWebEngineUrlScheme.Flags
,QWidget.RenderFlags
,QWindowsWindowFunctions.TouchWindowTouchTypes
,QWizard.WizardOptions
,QX11Info.PeekOptions
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 the flagother
.final void
Clears all flags ints
.final void
clearAll()
Clears all flags.clone()
Clones the flagsfinal boolean
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()
final boolean
Deprecated.final boolean
Deprecated.UsetestFlags(QtAbstractFlagEnumerator...)
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
(QFlags<T> flags) final boolean
testAnyFlags
(T... flags) final boolean
final boolean
final boolean
final int
toInt()
final String
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
-
set
-
setFlag
Overloaded constructor for
setFlag(QtAbstractFlagEnumerator, boolean)
withon = true
. -
setFlag
-
set
-
isSet
Deprecated.UsetestFlags(QFlags)
instead. -
isSet
Deprecated.UsetestFlags(QtAbstractFlagEnumerator...)
instead. -
testFlag
-
testFlags
-
testFlags
-
testAnyFlags
-
testAnyFlags
-
clear
Clears the flagother
. -
clear
Clears all flags ints
. -
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
-
hashCode
public final int hashCode() -
toString
-
testFlags(QFlags)
instead.