Skip to content

initial support for Qt 6 - #136

Merged
da-liii merged 38 commits into
MoganLab:mainfrom
PikachuHy:qt6
Apr 15, 2022
Merged

da-liii merged 38 commits into
MoganLab:mainfrom
PikachuHy:qt6

Conversation

@PikachuHy

@PikachuHy PikachuHy commented Apr 5, 2022 •

Copy link
Copy Markdown

Build TeXmacs with Qt6

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

on TeXmacs qt6 branch, it just print log

if (DEBUG_CONVERT) debug_convert << "no dpi or size informations!!" << LF;
  • QWheelEvent::delta

  • QApplication::globalStrut

on TeXmacs qt6 branch, a fixed value assigned

calcSize = QSize(2, 2);

snapshot

After merge #135

We can see

image

@PikachuHy
PikachuHy requested a review from da-liii April 5, 2022 09:00
use QApplication::primaryScreen()
@da-liii

da-liii commented Apr 5, 2022

Copy link
Copy Markdown
Contributor

What's the main difference between Qt 5 and Qt 6 for GNU TeXmacs?

@da-liii

da-liii commented Apr 5, 2022 •

Copy link
Copy Markdown
Contributor

Personally, I do not want to develop on two Qt versions. I suggest that we should use only one of the Qt version.

How about switching to Qt 6? Is there any blocking issues?

@da-liii

da-liii commented Apr 15, 2022

Copy link
Copy Markdown
Contributor

@da-liii
da-liii merged commit f5dde77 into MoganLab:main Apr 15, 2022
@PikachuHy
PikachuHy deleted the qt6 branch April 17, 2022 02:16
da-liii pushed a commit that referenced this pull request May 29, 2022
da-liii pushed a commit that referenced this pull request Apr 30, 2023
Oyyko pushed a commit that referenced this pull request Aug 1, 2023
da-liii pushed a commit that referenced this pull request Sep 22, 2023
da-liii pushed a commit that referenced this pull request Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants