Skip to content

Repository files navigation

MyQtEditor

A lightweight Markdown editor built with Qt/C++ featuring live preview, search & replace, and i18n support.

Features

  • 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 & ReplaceCtrl+F to 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

Screenshot

┌─────────────────────┬─────────────────────┐
│                     │                     │
│   Markdown Editor   │   HTML Preview      │
│                     │                     │
│   # Hello World     │   Hello World       │
│   Some text here    │   Some text here    │
│                     │                     │
└─────────────────────┴─────────────────────┘

Prerequisites

  • Qt 5 or Qt 6 (Widgets module)
  • CMake >= 3.16
  • C++17 compiler

Build

mkdir build && cd build
cmake ..
make

On Windows with Qt installed:

mkdir build && cd build
cmake -G "MinGW Makefiles" ..
mingw32-make

Usage

./MyQtFirstApp
  • Ctrl+N — New file
  • Ctrl+O — Open file
  • Ctrl+S — Save file
  • Ctrl+F — Find & Replace

Project Structure

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

Tech Stack

  • Language: C++17
  • Framework: Qt 5/6 (Widgets)
  • Build System: CMake

License

MIT

About

Do a new Editor

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages