A lightweight Markdown editor built with Qt/C++ featuring live preview, search & replace, and i18n support.
- Live Preview — Split-view with Markdown editor on the left and HTML preview on the right
- Markdown Support — Real-time conversion of headings (
#,##,###), paragraphs, and line breaks - Search & Replace —
Ctrl+Fto open search dialog with find next, replace one, and replace all - File Operations — New, Open (
.txt,.md), Save with file dialog - i18n Ready — Chinese (zh_CN) translation support via Qt Linguist
- Cross-platform — Builds on Windows, macOS, and Linux
┌─────────────────────┬─────────────────────┐
│ │ │
│ Markdown Editor │ HTML Preview │
│ │ │
│ # Hello World │ Hello World │
│ Some text here │ Some text here │
│ │ │
└─────────────────────┴─────────────────────┘
- Qt 5 or Qt 6 (Widgets module)
- CMake >= 3.16
- C++17 compiler
mkdir build && cd build
cmake ..
makeOn Windows with Qt installed:
mkdir build && cd build
cmake -G "MinGW Makefiles" ..
mingw32-make./MyQtFirstAppCtrl+N— New fileCtrl+O— Open fileCtrl+S— Save fileCtrl+F— Find & Replace
MyQtEditor/
├── CMakeLists.txt # Build configuration
├── main.cpp # Entry point
├── mainwindow.h/cpp/ui # Main window with editor & preview
├── searchdialog.h/cpp/ui # Search & replace dialog
└── MyQtFirstApp_zh_CN.ts # Chinese translation file
- Language: C++17
- Framework: Qt 5/6 (Widgets)
- Build System: CMake
MIT