Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

QListView Class

The QListView class provides a list or icon view onto a model. More...

 #include <QListView>

Inherits: QAbstractItemView.

Inherited by: QHelpIndexWidget, QListWidget, and QUndoView.

Public Types

enum DragDropMode { NoDragDrop, DragOnly, DropOnly, DragDrop, InternalMove }
enum EditTrigger { NoEditTriggers, CurrentChanged, DoubleClicked, SelectedClicked, ..., AllEditTriggers }
flags EditTriggers
enum Flow { LeftToRight, TopToBottom }
enum LayoutMode { SinglePass, Batched }
enum Movement { Static, Free, Snap }
enum PaintDeviceMetric { PdmWidth, PdmHeight, PdmWidthMM, PdmHeightMM, ..., PdmPhysicalDpiY }
enum ResizeMode { Fixed, Adjust }
enum ScrollHint { EnsureVisible, PositionAtTop, PositionAtBottom, PositionAtCenter }
enum ScrollMode { ScrollPerItem, ScrollPerPixel }
enum SelectionBehavior { SelectItems, SelectRows, SelectColumns }
enum SelectionMode { SingleSelection, ContiguousSelection, ExtendedSelection, MultiSelection, NoSelection }
enum ViewMode { ListMode, IconMode }

Properties

Public Functions

QAbstractItemView(QWidget * parent = 0)
QListView(QWidget * parent = 0)
~QAbstractItemView()
~QListView()
virtual ~QPaintDevice()
bool alternatingRowColors() const
int autoScrollMargin() const
int batchSize() const
void clearPropertyFlags()
void closePersistentEditor(const QModelIndex & index)
int colorCount() const
QModelIndex currentIndex() const
Qt::DropAction defaultDropAction() const
int depth() const
DragDropMode dragDropMode() const
bool dragDropOverwriteMode() const
bool dragEnabled() const
EditTriggers editTriggers() const
Flow flow() const
QSize gridSize() const
bool hasAutoScroll() const
int height() const
int heightMM() const
ScrollMode horizontalScrollMode() const
QSize iconSize() const
virtual QModelIndex indexAt(const QPoint & point) const = 0
QWidget * indexWidget(const QModelIndex & index) const
virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const
bool isRowHidden(int row) const
bool isSelectionRectVisible() const
bool isWrapping() const
QAbstractItemDelegate * itemDelegate() const
QAbstractItemDelegate * itemDelegate(const QModelIndex & index) const
QAbstractItemDelegate * itemDelegateForColumn(int column) const
QAbstractItemDelegate * itemDelegateForRow(int row) const
virtual void keyboardSearch(const QString & search)
LayoutMode layoutMode() const
int logicalDpiX() const
int logicalDpiY() const
QAbstractItemModel * model() const
int modelColumn() const
Movement movement() const
void openPersistentEditor(const QModelIndex & index)
virtual QPaintEngine * paintEngine() const = 0
bool paintingActive() const
int physicalDpiX() const
int physicalDpiY() const
ResizeMode resizeMode() const
QModelIndex rootIndex() const
virtual void scrollTo(const QModelIndex & index, ScrollHint hint = EnsureVisible) = 0
QAbstractItemView::SelectionBehavior selectionBehavior() const
QAbstractItemView::SelectionMode selectionMode() const
QItemSelectionModel * selectionModel() const
void setAlternatingRowColors(bool enable)
void setAutoScroll(bool enable)
void setAutoScrollMargin(int margin)
void setBatchSize(int batchSize)
void setDefaultDropAction(Qt::DropAction dropAction)
void setDragDropMode(DragDropMode behavior)
void setDragDropOverwriteMode(bool overwrite)
void setDragEnabled(bool enable)
void setDropIndicatorShown(bool enable)
void setEditTriggers(EditTriggers triggers)
void setFlow(Flow flow)
void setGridSize(const QSize & size)
void setHorizontalScrollMode(ScrollMode mode)
void setIconSize(const QSize & size)
void setIndexWidget(const QModelIndex & index, QWidget * widget)
void setItemDelegate(QAbstractItemDelegate * delegate)
void setItemDelegateForColumn(int column, QAbstractItemDelegate * delegate)
void setItemDelegateForRow(int row, QAbstractItemDelegate * delegate)
void setLayoutMode(LayoutMode mode)
virtual void setModel(QAbstractItemModel * model)
void setModelColumn(int column)
void setMovement(Movement movement)
void setResizeMode(ResizeMode mode)
void setRowHidden(int row, bool hide)
void setSelectionBehavior(QAbstractItemView::SelectionBehavior behavior)
void setSelectionMode(QAbstractItemView::SelectionMode mode)
virtual void setSelectionModel(QItemSelectionModel * selectionModel)
void setSelectionRectVisible(bool show)
void setSpacing(int space)
void setTabKeyNavigation(bool enable)
void setTextElideMode(Qt::TextElideMode mode)
void setUniformItemSizes(bool enable)
void setVerticalScrollMode(ScrollMode mode)
void setViewMode(ViewMode mode)
void setWordWrap(bool on)
void setWrapping(bool enable)
bool showDropIndicator() const
virtual int sizeHintForColumn(int column) const
QSize sizeHintForIndex(const QModelIndex & index) const
virtual int sizeHintForRow(int row) const
int spacing() const
bool tabKeyNavigation() const
Qt::TextElideMode textElideMode() const
bool uniformItemSizes() const
ScrollMode verticalScrollMode() const
ViewMode viewMode() const
virtual QRect visualRect(const QModelIndex & index) const = 0
int width() const
int widthMM() const
bool wordWrap() const

Reimplemented Public Functions

virtual QModelIndex indexAt(const QPoint & p) const
virtual void scrollTo(const QModelIndex & index, ScrollHint hint = EnsureVisible)
virtual QRect visualRect(const QModelIndex & index) const

Public Slots

void clearSelection()
void edit(const QModelIndex & index)
virtual void reset()
void scrollToBottom()
void scrollToTop()
virtual void selectAll()
void setCurrentIndex(const QModelIndex & index)
virtual void setRootIndex(const QModelIndex & index)
void update(const QModelIndex & index)
  • 19 public slots inherited from QWidget
  • 1 public slot inherited from QObject

Signals

void activated(const QModelIndex & index)
void clicked(const QModelIndex & index)
void doubleClicked(const QModelIndex & index)
void entered(const QModelIndex & index)
void indexesMoved(const QModelIndexList & indexes)
void pressed(const QModelIndex & index)
void viewportEntered()

Protected Types

enum CursorAction { MoveUp, MoveDown, MoveLeft, MoveRight, ..., MovePrevious }
enum DropIndicatorPosition { OnItem, AboveItem, BelowItem, OnViewport }
enum State { NoState, DraggingState, DragSelectingState, EditingState, ..., AnimatingState }

Protected Functions

QPaintDevice()
QPoint dirtyRegionOffset() const
virtual void dragEnterEvent(QDragEnterEvent * event)
virtual void dragLeaveEvent(QDragLeaveEvent * event)
virtual void dragMoveEvent(QDragMoveEvent * event)
virtual void dropEvent(QDropEvent * event)
DropIndicatorPosition dropIndicatorPosition() const
virtual bool edit(const QModelIndex & index, EditTrigger trigger, QEvent * event)
virtual bool event(QEvent * event)
void executeDelayedItemsLayout()
virtual void focusInEvent(QFocusEvent * event)
virtual bool focusNextPrevChild(bool next)
virtual void focusOutEvent(QFocusEvent * event)
virtual int horizontalOffset() const = 0
virtual void init(QPainter * painter) const
virtual void inputMethodEvent(QInputMethodEvent * event)
virtual bool isIndexHidden(const QModelIndex & index) const = 0
virtual void keyPressEvent(QKeyEvent * event)
virtual int metric(PaintDeviceMetric metric) const
virtual void mouseDoubleClickEvent(QMouseEvent * event)
virtual void mouseMoveEvent(QMouseEvent * event)
virtual void mousePressEvent(QMouseEvent * event)
virtual void mouseReleaseEvent(QMouseEvent * event)
virtual QModelIndex moveCursor(CursorAction cursorAction, Qt::KeyboardModifiers modifiers) = 0
QRect rectForIndex(const QModelIndex & index) const
virtual QPaintDevice * redirected(QPoint * offset) const
virtual void resizeEvent(QResizeEvent * event)
void scheduleDelayedItemsLayout()
void scrollDirtyRegion(int dx, int dy)
virtual QModelIndexList selectedIndexes() const
virtual QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex & index, const QEvent * event = 0) const
void setDirtyRegion(const QRegion & region)
void setPositionForIndex(const QPoint & position, const QModelIndex & index)
virtual void setSelection(const QRect & rect, QItemSelectionModel::SelectionFlags flags) = 0
void setState(State state)
virtual QPainter * sharedPainter() const
virtual void startDrag(Qt::DropActions supportedActions)
State state() const
virtual void timerEvent(QTimerEvent * event)
virtual int verticalOffset() const = 0
virtual QStyleOptionViewItem viewOptions() const
virtual bool viewportEvent(QEvent * event)
virtual QRegion visualRegionForSelection(const QItemSelection & selection) const = 0

Reimplemented Protected Functions

virtual void currentChanged(const QModelIndex & current, const QModelIndex & previous)
virtual void dataChanged(const QModelIndex & topLeft, const QModelIndex & bottomRight, const QSet<int> & roles = QSet<int> ())
virtual void dragLeaveEvent(QDragLeaveEvent * e)
virtual void dragMoveEvent(QDragMoveEvent * e)
virtual void dropEvent(QDropEvent * e)
virtual bool event(QEvent * e)
virtual int horizontalOffset() const
virtual bool isIndexHidden(const QModelIndex & index) const
virtual void mouseMoveEvent(QMouseEvent * e)
virtual void mouseReleaseEvent(QMouseEvent * e)
virtual QModelIndex moveCursor(CursorAction cursorAction, Qt::KeyboardModifiers modifiers)
virtual void paintEvent(QPaintEvent * e)
virtual void resizeEvent(QResizeEvent * e)
virtual void rowsAboutToBeRemoved(const QModelIndex & parent, int start, int end)
virtual void rowsInserted(const QModelIndex & parent, int start, int end)
virtual QModelIndexList selectedIndexes() const
virtual void selectionChanged(const QItemSelection & selected, const QItemSelection & deselected)
virtual void setSelection(const QRect & rect, QItemSelectionModel::SelectionFlags command)
virtual void startDrag(Qt::DropActions supportedActions)
virtual void timerEvent(QTimerEvent * e)
virtual void updateGeometries()
virtual int verticalOffset() const
virtual QStyleOptionViewItem viewOptions() const
virtual QRegion visualRegionForSelection(const QItemSelection & selection) const

Protected Slots

virtual void closeEditor(QWidget * editor, QAbstractItemDelegate::EndEditHint hint)
virtual void commitData(QWidget * editor)
virtual void currentChanged(const QModelIndex & current, const QModelIndex & previous)
virtual void dataChanged(const QModelIndex & topLeft, const QModelIndex & bottomRight, const QSet<int> & roles = QSet<int> ())
virtual void editorDestroyed(QObject * editor)
virtual void rowsAboutToBeRemoved(const QModelIndex & parent, int start, int end)
virtual void rowsInserted(const QModelIndex & parent, int start, int end)
virtual void selectionChanged(const QItemSelection & selected, const QItemSelection & deselected)
virtual void updateGeometries()
  • 1 protected slot inherited from QWidget

Additional Inherited Members

  • 4 static public members inherited from QWidget
  • 11 static public members inherited from QObject

Detailed Description

The QListView class provides a list or icon view onto a model.

A QListView presents items stored in a model, either as a simple non-hierarchical list, or as a collection of icons. This class is used to provide lists and icon views that were previously provided by the QListBox and QIconView classes, but using the more flexible approach provided by Qt's model/view architecture.

The QListView class is one of the Model/View Classes and is part of Qt's model/view framework.

This view does not display horizontal or vertical headers; to display a list of items with a horizontal header, use QTreeView instead.

QListView implements the interfaces defined by the QAbstractItemView class to allow it to display data provided by models derived from the QAbstractItemModel class.

Items in a list view can be displayed using one of two view modes: In ListMode, the items are displayed in the form of a simple list; in IconMode, the list view takes the form of an icon view in which the items are displayed with icons like files in a file manager. By default, the list view is in ListMode. To change the view mode, use the setViewMode() function, and to determine the current view mode, use viewMode().

Items in these views are laid out in the direction specified by the flow() of the list view. The items may be fixed in place, or allowed to move, depending on the view's movement() state.

If the items in the model cannot be completely laid out in the direction of flow, they can be wrapped at the boundary of the view widget; this depends on isWrapping(). This property is useful when the items are being represented by an icon view.

The resizeMode() and layoutMode() govern how and when the items are laid out. Items are spaced according to their spacing(), and can exist within a notional grid of size specified by gridSize(). The items can be rendered as large or small icons depending on their iconSize().

Screenshot of a Windows XP style list viewScreenshot of a Macintosh style table viewScreenshot of a Plastique style table view
A Windows XP style list view.A Macintosh style list view.A Plastique style list view.

Improving Performance

It is possible to give the view hints about the data it is handling in order to improve its performance when displaying large numbers of items. One approach that can be taken for views that are intended to display items with equal sizes is to set the uniformItemSizes property to true.

See also View Classes, QTreeView, QTableView, and QListWidget.

Member Type Documentation

enum QListView::Flow

ConstantValueDescription
QListView::LeftToRight0The items are laid out in the view from the left to the right.
QListView::TopToBottom1The items are laid out in the view from the top to the bottom.

enum QListView::LayoutMode

ConstantValueDescription
QListView::SinglePass0The items are laid out all at once.
QListView::Batched1The items are laid out in batches of batchSize items.

See also batchSize.

enum QListView::Movement

ConstantValueDescription
QListView::Static0The items cannot be moved by the user.
QListView::Free1The items can be moved freely by the user.
QListView::Snap2The items snap to the specified grid when moved; see setGridSize().

enum QListView::ResizeMode

ConstantValueDescription
QListView::Fixed0The items will only be laid out the first time the view is shown.
QListView::Adjust1The items will be laid out every time the view is resized.

enum QListView::ViewMode

ConstantValueDescription
QListView::ListMode0The items are laid out using TopToBottom flow, with Small size and Static movement
QListView::IconMode1The items are laid out using LeftToRight flow, with Large size and Free movement

Property Documentation

batchSize : int

This property holds the number of items laid out in each batch if layoutMode is set to Batched.

The default value is 100.

This property was introduced in Qt 4.2.

Access functions:

int batchSize() const
void setBatchSize(int batchSize)

flow : Flow

This property holds which direction the items layout should flow.

If this property is LeftToRight, the items will be laid out left to right. If the isWrapping property is true, the layout will wrap when it reaches the right side of the visible area. If this property is TopToBottom, the items will be laid out from the top of the visible area, wrapping when it reaches the bottom.

Setting this property when the view is visible will cause the items to be laid out again.

By default, this property is set to TopToBottom.

Access functions:

Flow flow() const
void setFlow(Flow flow)

See also viewMode.

gridSize : QSize

This property holds the size of the layout grid.

This property is the size of the grid in which the items are laid out. The default is an empty size which means that there is no grid and the layout is not done in a grid. Setting this property to a non-empty size switches on the grid layout. (When a grid layout is in force the spacing property is ignored.)

Setting this property when the view is visible will cause the items to be laid out again.

Access functions:

QSize gridSize() const
void setGridSize(const QSize & size)

See also viewMode.

isWrapping : bool

This property holds whether the items layout should wrap.

This property holds whether the layout should wrap when there is no more space in the visible area. The point at which the layout wraps depends on the flow property.

Setting this property when the view is visible will cause the items to be laid out again.

By default, this property is false.

Access functions:

bool isWrapping() const
void setWrapping(bool enable)

See also viewMode.

layoutMode : LayoutMode

This property determines whether the layout of items should happen immediately or be delayed.

This property holds the layout mode for the items. When the mode is SinglePass (the default), the items are laid out all in one go. When the mode is Batched, the items are laid out in batches of batchSize items, while processing events. This makes it possible to instantly view and interact with the visible items while the rest are being laid out.

Access functions:

LayoutMode layoutMode() const
void setLayoutMode(LayoutMode mode)

See also viewMode.

modelColumn : int

This property holds the column in the model that is visible.

By default, this property contains 0, indicating that the first column in the model will be shown.

Access functions:

int modelColumn() const
void setModelColumn(int column)

movement : Movement

This property holds whether the items can be moved freely, are snapped to a grid, or cannot be moved at all.

This property determines how the user can move the items in the view. Static means that the items can't be moved the user. Free means that the user can drag and drop the items to any position in the view. Snap means that the user can drag and drop the items, but only to the positions in a notional grid signified by the gridSize property.

Setting this property when the view is visible will cause the items to be laid out again.

By default, this property is set to Static.

Access functions:

Movement movement() const
void setMovement(Movement movement)

See also gridSize, resizeMode, and viewMode.

resizeMode : ResizeMode

This property holds whether the items are laid out again when the view is resized.

If this property is Adjust, the items will be laid out again when the view is resized. If the value is Fixed, the items will not be laid out when the view is resized.

By default, this property is set to Fixed.

Access functions:

ResizeMode resizeMode() const
void setResizeMode(ResizeMode mode)

See also movement, gridSize, and viewMode.

selectionRectVisible : bool

This property holds if the selection rectangle should be visible.

If this property is true then the selection rectangle is visible; otherwise it will be hidden.

Note: The selection rectangle will only be visible if the selection mode is in a mode where more than one item can be selected; i.e., it will not draw a selection rectangle if the selection mode is QAbstractItemView::SingleSelection.

By default, this property is false.

This property was introduced in Qt 4.3.

Access functions:

bool isSelectionRectVisible() const
void setSelectionRectVisible(bool show)

spacing : int

This property holds the space around the items in the layout.

This property is the size of the empty space that is padded around an item in the layout.

Setting this property when the view is visible will cause the items to be laid out again.

By default, this property contains a value of 0.

Access functions:

int spacing() const
void setSpacing(int space)

See also viewMode.

uniformItemSizes : bool

This property holds whether all items in the listview have the same size.

This property should only be set to true if it is guaranteed that all items in the view have the same size. This enables the view to do some optimizations for performance purposes.

By default, this property is false.

This property was introduced in Qt 4.1.

Access functions:

bool uniformItemSizes() const
void setUniformItemSizes(bool enable)

viewMode : ViewMode

This property holds the view mode of the QListView.

This property will change the other unset properties to conform with the set view mode. QListView-specific properties that have already been set will not be changed, unless clearPropertyFlags() has been called.

Setting the view mode will enable or disable drag and drop based on the selected movement. For ListMode, the default movement is Static (drag and drop disabled); for IconMode, the default movement is Free (drag and drop enabled).

Access functions:

ViewMode viewMode() const
void setViewMode(ViewMode mode)

See also isWrapping, spacing, gridSize, flow, movement, and resizeMode.

wordWrap : bool

This property holds the item text word-wrapping policy.

If this property is true then the item text is wrapped where necessary at word-breaks; otherwise it is not wrapped at all. This property is false by default.

Please note that even if wrapping is enabled, the cell will not be expanded to make room for the text. It will print ellipsis for text that cannot be shown, according to the view's textElideMode.

This property was introduced in Qt 4.2.

Access functions:

bool wordWrap() const
void setWordWrap(bool on)

Member Function Documentation

QListView::QListView(QWidget * parent = 0)

Creates a new QListView with the given parent to view a model. Use setModel() to set the model.

QListView::~QListView()

Destroys the view.

void QListView::clearPropertyFlags()

Clears the QListView-specific property flags. See viewMode.

Properties inherited from QAbstractItemView are not covered by the property flags. Specifically, dragEnabled and acceptsDrops are computed by QListView when calling setMovement() or setViewMode().

void QListView::currentChanged(const QModelIndex & current, const QModelIndex & previous) [virtual protected]

Reimplemented from QAbstractItemView::currentChanged().

void QListView::dataChanged(const QModelIndex & topLeft, const QModelIndex & bottomRight, const QSet<int> & roles = QSet<int> ()) [virtual protected]

Reimplemented from QAbstractItemView::dataChanged().

void QListView::dragLeaveEvent(QDragLeaveEvent * e) [virtual protected]

Reimplemented from QWidget::dragLeaveEvent().

void QListView::dragMoveEvent(QDragMoveEvent * e) [virtual protected]

Reimplemented from QWidget::dragMoveEvent().

void QListView::dropEvent(QDropEvent * e) [virtual protected]

Reimplemented from QWidget::dropEvent().

bool QListView::event(QEvent * e) [virtual protected]

Reimplemented from QObject::event().

int QListView::horizontalOffset() const [virtual protected]

Reimplemented from QAbstractItemView::horizontalOffset().

QModelIndex QListView::indexAt(const QPoint & p) const [virtual]

Reimplemented from QAbstractItemView::indexAt().

void QListView::indexesMoved(const QModelIndexList & indexes) [signal]

This signal is emitted when the specified indexes are moved in the view.

This function was introduced in Qt 4.2.

bool QListView::isIndexHidden(const QModelIndex & index) const [virtual protected]

Reimplemented from QAbstractItemView::isIndexHidden().

bool QListView::isRowHidden(int row) const

Returns true if the row is hidden; otherwise returns false.

void QListView::mouseMoveEvent(QMouseEvent * e) [virtual protected]

Reimplemented from QWidget::mouseMoveEvent().

void QListView::mouseReleaseEvent(QMouseEvent * e) [virtual protected]

Reimplemented from QWidget::mouseReleaseEvent().

QModelIndex QListView::moveCursor(CursorAction cursorAction, Qt::KeyboardModifiers modifiers) [virtual protected]

Reimplemented from QAbstractItemView::moveCursor().

void QListView::paintEvent(QPaintEvent * e) [virtual protected]

Reimplemented from QWidget::paintEvent().

QRect QListView::rectForIndex(const QModelIndex & index) const [protected]

Returns the rectangle of the item at position index in the model. The rectangle is in contents coordinates.

See also visualRect().

void QListView::resizeEvent(QResizeEvent * e) [virtual protected]

Reimplemented from QWidget::resizeEvent().

void QListView::rowsAboutToBeRemoved(const QModelIndex & parent, int start, int end) [virtual protected]

Reimplemented from QAbstractItemView::rowsAboutToBeRemoved().

void QListView::rowsInserted(const QModelIndex & parent, int start, int end) [virtual protected]

Reimplemented from QAbstractItemView::rowsInserted().

void QListView::scrollTo(const QModelIndex & index, ScrollHint hint = EnsureVisible) [virtual]

Reimplemented from QAbstractItemView::scrollTo().

QModelIndexList QListView::selectedIndexes() const [virtual protected]

Reimplemented from QAbstractItemView::selectedIndexes().

void QListView::selectionChanged(const QItemSelection & selected, const QItemSelection & deselected) [virtual protected]

Reimplemented from QAbstractItemView::selectionChanged().

void QListView::setPositionForIndex(const QPoint & position, const QModelIndex & index) [protected]

Sets the contents position of the item at index in the model to the given position. If the list view's movement mode is Static or its view mode is ListView, this function will have no effect.

This function was introduced in Qt 4.1.

void QListView::setRowHidden(int row, bool hide)

If hide is true, the given row will be hidden; otherwise the row will be shown.

See also isRowHidden().

void QListView::setSelection(const QRect & rect, QItemSelectionModel::SelectionFlags command) [virtual protected]

Reimplemented from QAbstractItemView::setSelection().

void QListView::startDrag(Qt::DropActions supportedActions) [virtual protected]

Reimplemented from QAbstractItemView::startDrag().

void QListView::timerEvent(QTimerEvent * e) [virtual protected]

Reimplemented from QObject::timerEvent().

void QListView::updateGeometries() [virtual protected]

Reimplemented from QAbstractItemView::updateGeometries().

int QListView::verticalOffset() const [virtual protected]

Reimplemented from QAbstractItemView::verticalOffset().

QStyleOptionViewItem QListView::viewOptions() const [virtual protected]

Reimplemented from QAbstractItemView::viewOptions().

QRect QListView::visualRect(const QModelIndex & index) const [virtual]

Reimplemented from QAbstractItemView::visualRect().

QRegion QListView::visualRegionForSelection(const QItemSelection & selection) const [virtual protected]

Reimplemented from QAbstractItemView::visualRegionForSelection().

Since 4.7, the returned region only contains rectangles intersecting (or included in) the viewport.

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 5.0-snapshot
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web