Open 3D Engine AzQtComponents API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AzQtComponents::TableView Class Reference

#include <TableView.h>

Inherits QTreeView.

Inherited by AzQtComponents::AssetFolderListView, and AzQtComponents::AssetFolderTableView.

Classes

struct  Config
 

Public Member Functions

 TableView (QWidget *parent=nullptr)
 
void setExpandOnSelection (bool expand=true)
 
bool expandOnSelection () const
 
bool dataModelSupportsIsSelectedRole () const
 

Static Public Member Functions

static Config loadConfig (QSettings &settings)
 
static Config defaultConfig ()
 

Protected Member Functions

void selectionChanged (const QItemSelection &selected, const QItemSelection &deselected) override
 
void updateGeometries () override
 
void resizeEvent (QResizeEvent *e) override
 

Properties

bool expandOnSelection
 

Friends

class Style
 

Detailed Description

Specialized TableView that allows the selected row to accordion out, so that all of the text in the row is visible, with wrapping. TableView inherits from QTreeView instead of QTableView as it provided more customization in the subclass over the size of rows.

Note that in order for the (accordion/)expandOnSelection functionality to work, you must have a model set that eventually unproxies to a TableViewModel and a delegate that is a TableViewItemDelegate.

Member Function Documentation

◆ defaultConfig()

static Config AzQtComponents::TableView::defaultConfig ( )
static

Returns default TableView config data.

◆ loadConfig()

static Config AzQtComponents::TableView::loadConfig ( QSettings &  settings)
static

Loads the TablveView config data from a settings object.

Property Documentation

◆ expandOnSelection

bool AzQtComponents::TableView::expandOnSelection
readwrite

Set this property to true if you'd like the TableView to expand the selected row to ensure that all of the text within is visible, with wrapping.

Note that in order for this functionality to work, you must have a model set that eventually unproxies to a TableViewModel and a delegate that is a TableViewItemDelegate.


The documentation for this class was generated from the following file: