Build TeXmacs with Qt6

see https://github.com/XmacsLabs/mogan/pull/136 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

TODO

There are no equivalent replacements for the following changes.

  • QPrinter::setPaperSize

no QPrinter::DevicePixel in QPageSize

  • QWheelEvent::delta

  • QApplication::globalStrut

snapshot

After merge https://github.com/XmacsLabs/mogan/pull/135

We can see

2 Likes

Nice work @pikachuhy!
There’s another branch for Qt6 here: https://github.com/texmacs/texmacs/commits/qt6
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!