13 quitAction->setShortcut(
tr(
"Ctrl+Q"));
38void MainWindow::setupTableItems()
56void MainWindow::changeWidth()
60 int newWidth = QInputDialog::getInteger(
this,
tr(
"Change table width"),
61 tr(
"Input the number of columns required (1-20):"),
68void MainWindow::changeHeight()
72 int newHeight = QInputDialog::getInteger(
this,
tr(
"Change table height"),
73 tr(
"Input the number of rows required (1-20):"),
void setSelectionMode(QAbstractItemView::SelectionMode mode)
The QAction class provides an abstraction for user commands that can be added to different user inter...
void triggered(bool checked=false)
This signal is emitted when an action is activated by the user; for example, when the user clicks a m...
void setCentralWidget(QWidget *widget)
Sets the given widget to be the main window's central widget.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
GLenum GLenum GLsizei void GLsizei void * column
GLenum GLenum GLsizei void * row