Author Topic: Qt6 Development  (Read 210785 times)

Jochen Schäfer

  • Sr. Member
  • ****
  • Posts: 306
  • Karma: +27/-0
    • View Profile
Re: Qt6
« Reply #120 on: November 21, 2022, 08:27:08 am »
@Paul:
Can you please include the translations in your build, too? It's missing from the Qt5 and there is an issue open for it.

TeLLie

  • Full Member
  • ***
  • Posts: 226
  • Karma: +11/-0
    • View Profile
Re: Qt6
« Reply #121 on: November 21, 2022, 08:31:01 am »
F:\qt6\lib>helloworldgui.exe
qt.qpa.plugin: Could not find the Qt platform plugin "os2" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Is the information in this ticket maybe useful? https://github.com/bitwiseworks/qtbase-os2/issues/77

Nope, there was just something wrong with Tellie's environment. Most likely, he didnt rerun the configuration script to pickup changes that had been made to correctly detect dlopen support on OS/2.

Cheers,

Paul.

Yes where the env....


Paul Smedley

  • Hero Member
  • *****
  • Posts: 2092
  • Karma: +159/-0
    • View Profile
Re: Qt6
« Reply #122 on: November 21, 2022, 09:36:33 am »
@Paul:
Can you please include the translations in your build, too? It's missing from the Qt5 and there is an issue open for it.

I can look at this - do you have any idea how these are enabled on other platforms?

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2092
  • Karma: +159/-0
    • View Profile
Re: Qt6
« Reply #123 on: November 21, 2022, 09:42:18 am »
Quick update to say there's no update today. I had some other business to attend to this evening, so all I can tease with is that the inital setup of https://github.com/psmedley/qt6-webengine-os2

Jochen Schäfer

  • Sr. Member
  • ****
  • Posts: 306
  • Karma: +27/-0
    • View Profile
Re: Qt6
« Reply #124 on: November 21, 2022, 10:27:27 am »
@Paul:
Can you please include the translations in your build, too? It's missing from the Qt5 and there is an issue open for it.

I can look at this - do you have any idea how these are enabled on other platforms?
TBH, I have no clue.
All I know is, that it is its own module QtTranslations, which BWW hadn't cloned, so I have to bundle the translations with FeatherPad and FeatherNote, which is less than ideal.
It also concerns the shortcuts and its translations. Without it and any other locale than en, shortcuts can fail to be recognized. I had this issue with my de locale. Eg. CTRL will be translated to STRG in German and the CTRL shortcuts will not work.


Paul Smedley

  • Hero Member
  • *****
  • Posts: 2092
  • Karma: +159/-0
    • View Profile
Re: Qt6
« Reply #125 on: November 21, 2022, 11:03:33 am »
Hi Jochen,

I think you answered my question :) it's the module QtTranslations - https://download.qt.io/official_releases/qt/6.2/6.2.4/submodules/qttranslations-everywhere-src-6.2.4.tar.xz should be easy enough to build. I might even try it before I start looking at QtWebEngine.

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2092
  • Karma: +159/-0
    • View Profile
Re: Qt6
« Reply #126 on: November 22, 2022, 02:25:20 am »
Hi All,

Wondering if anyone has tried to port any Qt6 apps using either the zip I provided or their own self build from git? I'm curious how apps that are more complicated than the 'hello world' example might perform.

Cheers,

Paul.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4786
  • Karma: +99/-1
    • View Profile
Re: Qt6
« Reply #127 on: November 22, 2022, 05:43:42 am »
I tried qt-creator as that is how it is recommended to build the examples. Too much missing I think.
Code: [Select]
-- Could NOT find Qt6Qml (missing: Qt6Qml_DIR)
-- Could NOT find Qt6Core5Compat (missing: Qt6Core5Compat_DIR)
CMake Error at cmake/FindQt5.cmake:57 (find_package):
  Found package configuration file:

    h:/tmp/qt6/lib/cmake/Qt6/Qt6Config.cmake

  but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT
  FOUND.  Reason given by package:

  Failed to find Qt component "Qml".

  Expected Config file at "h:/tmp/qt6/lib/cmake/Qt6Qml/Qt6QmlConfig.cmake"
  does NOT exist

  Failed to find Qt component "Core5Compat".

  Expected Config file at
  "h:/tmp/qt6/lib/cmake/Qt6Core5Compat/Qt6Core5CompatConfig.cmake" does NOT
  exist



Call Stack (most recent call first):
  CMakeLists.txt:68 (find_package)


-- Configuring incomplete, errors occurred!
See also "K:/work/qt-creator/qtcreator_build/CMakeFiles/CMakeOutput.log".
See also "K:/work/qt-creator/qtcreator_build/CMakeFiles/CMakeError.log".

I found the missing QT6Core5Compat error interesting but had other stuff to do so didn't follow up yet.

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2092
  • Karma: +159/-0
    • View Profile
Re: Qt6
« Reply #128 on: November 22, 2022, 06:27:09 am »
How did you try and configure it?

TeLLie

  • Full Member
  • ***
  • Posts: 226
  • Karma: +11/-0
    • View Profile
Re: Qt6
« Reply #129 on: November 22, 2022, 07:15:49 am »
Hi Paul

I compile several progs
Some worked some didn't but what i notice to the ones that compiled with qt6 so far is that the tabs from the menubar Are not looking fine, as it's not showing all lines.
Look add linguïst or designer. When home i put some here so peeps can test...

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4786
  • Karma: +99/-1
    • View Profile
Re: Qt6
« Reply #130 on: November 22, 2022, 07:28:51 am »
How did you try and configure it?

Followed the instructions,
Code: [Select]
    mkdir qtcreator_build
    cd qtcreator_build

    cmake -DCMAKE_BUILD_TYPE=Debug -G Ninja "-DCMAKE_PREFIX_PATH=/path/to/Qt;/path/to/llvm" /path/to/qtcreator_sources
    cmake --build .

with the -G Ninja removed as recommended if not having Ninja, along with path to llvm also removed. It died almost immediately before the --build stage
« Last Edit: November 22, 2022, 07:31:01 am by Dave Yeo »

Jochen Schäfer

  • Sr. Member
  • ****
  • Posts: 306
  • Karma: +27/-0
    • View Profile
Re: Qt6
« Reply #131 on: November 22, 2022, 08:51:55 am »
Hi All,

Wondering if anyone has tried to port any Qt6 apps using either the zip I provided or their own self build from git? I'm curious how apps that are more complicated than the 'hello world' example might perform.

Cheers,

Paul.
Not yet. When I find some time, I will try to compile something.

BTW, now that you also ported Python 3, how probable is a port of PyQt6?

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2092
  • Karma: +159/-0
    • View Profile
Re: Qt6
« Reply #132 on: November 22, 2022, 09:43:32 am »
Hi All,

Wondering if anyone has tried to port any Qt6 apps using either the zip I provided or their own self build from git? I'm curious how apps that are more complicated than the 'hello world' example might perform.
Not yet. When I find some time, I will try to compile something.

BTW, now that you also ported Python 3, how probable is a port of PyQt6?

Anything is possible, but qtwebengine is the next target. Only 166 source files with rejected diffs, let along the ones that patch couldn't find (moved or renamed)  :o

We're away for the weekend, so not sure how much progress there will be.

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2092
  • Karma: +159/-0
    • View Profile
Re: Qt6
« Reply #133 on: November 22, 2022, 09:44:43 am »
Hi Jochen,

I think you answered my question :) it's the module QtTranslations - https://download.qt.io/official_releases/qt/6.2/6.2.4/submodules/qttranslations-everywhere-src-6.2.4.tar.xz should be easy enough to build. I might even try it before I start looking at QtWebEngine.

Had a quick look, not as trivial as the other modules, it will have to wait until after I get stuck/bored with QtWebEngine :)

Edit: had a look at CmakeLists.txt for qtwebengine, Needs cmake >=3.19 - so guess I'd better look at that...
« Last Edit: November 22, 2022, 10:32:06 am by Paul Smedley »

Jochen Schäfer

  • Sr. Member
  • ****
  • Posts: 306
  • Karma: +27/-0
    • View Profile
Re: Qt6
« Reply #134 on: November 22, 2022, 02:40:55 pm »
Hi All,

Wondering if anyone has tried to port any Qt6 apps using either the zip I provided or their own self build from git? I'm curious how apps that are more complicated than the 'hello world' example might perform.
Not yet. When I find some time, I will try to compile something.

BTW, now that you also ported Python 3, how probable is a port of PyQt6?

Anything is possible, but qtwebengine is the next target. Only 166 source files with rejected diffs, let along the ones that patch couldn't find (moved or renamed)  :o

We're away for the weekend, so not sure how much progress there will be.
Hi Paul.

No pressure here. We all can be happy, that you do that work. If at some time, PyQt6 falls from the sky ;-), some tools will be possible.