https://github.com/gil9red/ascii_table
Ascii table (#c++ #qt #qt5)
https://github.com/gil9red/ascii_table
ascii-table cpp qt
Last synced: 2 months ago
JSON representation
Ascii table (#c++ #qt #qt5)
- Host: GitHub
- URL: https://github.com/gil9red/ascii_table
- Owner: gil9red
- Created: 2017-02-27T20:37:28.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-27T20:53:34.000Z (over 8 years ago)
- Last Synced: 2025-02-08T22:25:43.589Z (4 months ago)
- Topics: ascii-table, cpp, qt
- Language: C++
- Size: 3.91 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ascii_table
Ascii table (#c++ #qt #qt5)#### Example:
```
QList rows;
rows << (QStringList() << "ID" << "NAME" << "AGE");
rows << (QStringList() << "1" << "Ivan Petrov" << "42");
rows << (QStringList() << "2" << "LORD DESTRUCTOR" << "14");
rows << (QStringList() << "3" << "Petya" << "22");QString table = ascii_table(rows);
qDebug().nospace().noquote() << table;
```#### Console:
```
ID | NAME | AGE
----+-----------------+----
1 | Ivan Petrov | 42
2 | LORD DESTRUCTOR | 14
3 | Petya | 22
```