Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
window.h
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
4
#ifndef WINDOW_H
5
#define WINDOW_H
6
7
#include <QItemSelection>
8
#include <QMainWindow>
9
#include <QModelIndex>
10
#include <QWidget>
11
#include <QTableView>
12
13
class
MainWindow
:
public
QMainWindow
14
{
15
Q_OBJECT
16
public
:
17
MainWindow
(
QWidget
*
parent
=
nullptr
);
18
19
public
slots
:
20
void
updateSelection
(
const
QItemSelection
&selected,
21
const
QItemSelection
&deselected);
22
void
changeCurrent
(
const
QModelIndex
¤t,
const
QModelIndex
&previous);
23
24
private
:
25
QAbstractItemModel
*model;
26
QItemSelectionModel
*selectionModel;
27
QTableView
*
table
;
28
};
29
30
#endif
MainWindow
[5]
Definition
src_corelib_kernel_qobject.cpp:52
MainWindow::MainWindow
MainWindow(QWidget *parent=nullptr)
MainWindow::changeCurrent
void changeCurrent(const QModelIndex ¤t, const QModelIndex &previous)
MainWindow::updateSelection
void updateSelection(const QItemSelection &selected, const QItemSelection &deselected)
[0]
Definition
window.cpp:40
QAbstractItemModel
\inmodule QtCore
Definition
qabstractitemmodel.h:234
QItemSelectionModel
[38]
Definition
src_corelib_kernel_qobject.cpp:337
QItemSelection
\inmodule QtCore
Definition
qitemselectionmodel.h:181
QMainWindow
The QMainWindow class provides a main application window.
Definition
qmainwindow.h:25
QModelIndex
\inmodule QtCore
Definition
qabstractitemmodel.h:124
QObject::parent
QObject * parent() const
Returns a pointer to the parent object.
Definition
qobject.h:346
QTableView
The QTableView class provides a default model/view implementation of a table view.
Definition
qtableview.h:18
QWidget
The QWidget class is the base class of all user interface objects.
Definition
qwidget.h:99
table
GLenum GLenum GLsizei void * table
Definition
qopenglext.h:2745
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:119
slots
#define slots
Definition
qtmetamacros.h:40
qtbase
src
widgets
doc
snippets
updating-selections
window.h
Generated by
1.10.0