pub struct ResizeMode(/* private fields */);
Expand description
The resize mode specifies the behavior of the header sections. It can be set on the entire header view or on individual sections using setSectionResizeMode().
C++ enum: QHeaderView::ResizeMode
.
The resize mode specifies the behavior of the header sections. It can be set on the entire header view or on individual sections using setSectionResizeMode().
The following values are obsolete:
See also setResizeMode(), setSectionResizeMode(), stretchLastSection, and minimumSectionSize.
Implementations§
Source§impl ResizeMode
impl ResizeMode
Sourcepub const Interactive: ResizeMode
pub const Interactive: ResizeMode
The user can resize the section. The section can also be resized programmatically using resizeSection(). The section size defaults to defaultSectionSize. (See also cascadingSectionResizes.) (C++ enum variant: Interactive = 0
)
Sourcepub const Stretch: ResizeMode
pub const Stretch: ResizeMode
QHeaderView will automatically resize the section to fill the available space. The size cannot be changed by the user or programmatically. (C++ enum variant: Stretch = 1
)
Sourcepub const Fixed: ResizeMode
pub const Fixed: ResizeMode
The user cannot resize the section. The section can only be resized programmatically using resizeSection(). The section size defaults to defaultSectionSize. (C++ enum variant: Fixed = 2
)
Sourcepub const ResizeToContents: ResizeMode
pub const ResizeToContents: ResizeMode
QHeaderView will automatically resize the section to its optimal size based on the contents of the entire column or row. The size cannot be changed by the user or programmatically. (This value was introduced in 4.2) (C++ enum variant: ResizeToContents = 3
)
Sourcepub const Custom: ResizeMode
pub const Custom: ResizeMode
Use Fixed instead. (C++ enum variant: Custom = 2
)
Trait Implementations§
Source§impl Clone for ResizeMode
impl Clone for ResizeMode
Source§fn clone(&self) -> ResizeMode
fn clone(&self) -> ResizeMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more