13 saveAction->setShortcut(
tr(
"Ctrl+S"));
16 quitAction->setShortcut(
tr(
"Ctrl+Q"));
21 calendarAction->setShortcut(
tr(
"Ctrl+I"));
41 tr(
"Save document as:"),
"",
tr(
"XML (*.xml)"));
60 format.setFontFamily(
"Courier");
66 cursor.insertText(
" ", boldFormat);
71 for (
int weekDay = 1; weekDay <= 7; ++weekDay) {
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...
\inmodule QtCore \reentrant
int month() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
int year() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
static QDate currentDate()
Returns the system clock's current date.
int daysInMonth() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
int dayOfWeek() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
static QString getSaveFileName(QWidget *parent=nullptr, const QString &caption=QString(), const QString &dir=QString(), const QString &filter=QString(), QString *selectedFilter=nullptr, Options options=Options())
This is a convenience static function that will return a file name selected by the user.
static QLocale system()
Returns a QLocale object initialized to the system locale.
void setCentralWidget(QWidget *widget)
Sets the given widget to be the main window's central widget.
static StandardButton warning(QWidget *parent, const QString &title, const QString &text, StandardButtons buttons=Ok, StandardButton defaultButton=NoButton)
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
\macro QT_RESTRICTED_CAST_FROM_ASCII
void setFontWeight(int weight)
Sets the text format's font weight to weight.
\reentrant \inmodule QtGui
The QTextEdit class provides a widget that is used to edit and display both plain and rich text.
QTextCursor textCursor() const
Returns a copy of the QTextCursor that represents the currently visible cursor.
GLint GLsizei GLsizei GLenum format
GLenum GLenum GLsizei void GLsizei void * column