pub struct DockOption(/* private fields */);Expand description
This enum contains flags that specify the docking behavior of QMainWindow.
C++ enum: QMainWindow::DockOption.
This enum contains flags that specify the docking behavior of QMainWindow.
These options only control how dock widgets may be dropped in a QMainWindow. They do not re-arrange the dock widgets to conform with the specified options. For this reason they should be set before any dock widgets are added to the main window. Exceptions to this are the AnimatedDocks and VerticalTabs options, which may be set at any time.
This enum was introduced or modified in Qt 4.3.
The DockOptions type is a typedef for QFlags<DockOption>. It stores an OR combination of DockOption values.
Implementations§
Source§impl DockOption
impl DockOption
Sourcepub const AnimatedDocks: DockOption
pub const AnimatedDocks: DockOption
Identical to the animated property. (C++ enum variant: AnimatedDocks = 1)
Sourcepub const AllowNestedDocks: DockOption
pub const AllowNestedDocks: DockOption
Identical to the dockNestingEnabled property. (C++ enum variant: AllowNestedDocks = 2)
Sourcepub const AllowTabbedDocks: DockOption
pub const AllowTabbedDocks: DockOption
The user can drop one dock widget “on top” of another. The two widgets are stacked and a tab bar appears for selecting which one is visible. (C++ enum variant: AllowTabbedDocks = 4)
Sourcepub const ForceTabbedDocks: DockOption
pub const ForceTabbedDocks: DockOption
Each dock area contains a single stack of tabbed dock widgets. In other words, dock widgets cannot be placed next to each other in a dock area. If this option is set, AllowNestedDocks has no effect. (C++ enum variant: ForceTabbedDocks = 8)
Sourcepub const VerticalTabs: DockOption
pub const VerticalTabs: DockOption
The two vertical dock areas on the sides of the main window show their tabs vertically. If this option is not set, all dock areas show their tabs at the bottom. Implies AllowTabbedDocks. See also setTabPosition(). (C++ enum variant: VerticalTabs = 16)
Sourcepub const GroupedDragging: DockOption
pub const GroupedDragging: DockOption
When dragging the titlebar of a dock, all the tabs that are tabbed with it are going to be dragged. Implies AllowTabbedDocks. Does not work well if some QDockWidgets have restrictions in which area they are allowed. (This enum value was added in Qt 5.6.) (C++ enum variant: GroupedDragging = 32)
Trait Implementations§
Source§impl<T: Into<QFlags<DockOption>>> BitOr<T> for DockOption
impl<T: Into<QFlags<DockOption>>> BitOr<T> for DockOption
Source§impl Clone for DockOption
impl Clone for DockOption
Source§fn clone(&self) -> DockOption
fn clone(&self) -> DockOption
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for DockOption
Source§impl Debug for DockOption
impl Debug for DockOption
impl Eq for DockOption
Source§impl From<DockOption> for c_int
impl From<DockOption> for c_int
Source§fn from(value: DockOption) -> Self
fn from(value: DockOption) -> Self
Source§impl From<DockOption> for QFlags<DockOption>
impl From<DockOption> for QFlags<DockOption>
Source§fn from(value: DockOption) -> Self
fn from(value: DockOption) -> Self
Source§impl From<i32> for DockOption
impl From<i32> for DockOption
Source§impl PartialEq for DockOption
impl PartialEq for DockOption
Source§fn eq(&self, other: &DockOption) -> bool
fn eq(&self, other: &DockOption) -> bool
self and other values to be equal, and is used by ==.