Skip to content

Commit 4acf280

Browse files
committed
Reformatted miscellaneous files.
1 parent d35f102 commit 4acf280

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Qt/Console/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ start ./ConsoleApplication.sln
1717
```
1818

1919
#### References
20-
> https://github.com/ArthurSonzogni/cmake-Qt5-example
20+
> https://github.com/ArthurSonzogni/cmake-Qt5-example<br>
2121
> https://github.com/miurahr/cmake-qt-packaging-example

Qt/Console/main.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*****************************************************************//**
2+
* \file main.cpp
3+
* \brief Qt console application with CMake example
4+
*
5+
* \author Xuhua Huang
6+
* \date January 31, 2021
7+
*********************************************************************/
8+
19
#include <iostream>
210

311
#include <QTextStream>
@@ -24,6 +32,7 @@ int main(void)
2432
std::getline(std::cin, tempName); // use getline() function with std::istream
2533

2634
// convert std::string to QString and print to console
35+
// with static factory function fromStdString
2736
QString Name = QString::fromStdString(tempName); // convert
2837
out << "Hello " << Name << "!" << "\n"; // print
2938
out.flush();

0 commit comments

Comments
 (0)