Build TeXmacs with Qt6

see for more detail.

maybe some bugs, we need more tests.

All changes do not affect the Qt5 version.

How to test

set CMAKE_PREFIX_PATH to Qt6 cmake path

mkdir build
cd build
cmake -DCMAKE_PREFIX_PATH=/Users/pikachu/Qt/6.3.0/macos/lib/cmake ..
make -j4


There are no equivalent replacements for the following changes.

  • QPrinter::setPaperSize

no QPrinter::DevicePixel in QPageSize

  • QWheelEvent::delta

  • QApplication::globalStrut


After merge

We can see


Nice work @pikachuhy!
There’s another branch for Qt6 here:
It would be interesting to compare.

ok, I will check it.

create the issue first and then start coding!

It will save you a lot of time!