12int main(
int argc,
char *argv[])
17 QFileInfo fileInfo1(
"~/examples/191697/.");
18 QFileInfo fileInfo2(
"~/examples/191697/..");
19 QFileInfo fileInfo3(
"~/examples/191697/main.cpp");
27 qDebug() << fileInfo1.fileName();
28 qDebug() << fileInfo2.fileName();
29 qDebug() << fileInfo3.fileName();
30 qDebug() << fileInfo4.fileName();
31 qDebug() << fileInfo5.fileName();
32 qDebug() << fileInfo6.fileName();
The QApplication class manages the GUI application's control flow and main settings.
static int exec()
Enters the main event loop and waits until exit() is called, then returns the value that was set to e...
void addWidget(QWidget *, int stretch=0, Qt::Alignment alignment=Qt::Alignment())
Adds widget to the end of this box layout, with a stretch factor of stretch and alignment alignment.
void addStretch(int stretch=0)
Adds a stretchable space (a QSpacerItem) with zero minimum size and stretch factor stretch to the end...
The QGroupBox widget provides a group box frame with a title.
The QVBoxLayout class lines up widgets vertically.
#define QStringLiteral(str)
QApplication app(argc, argv)
[0]