Semi-support Qt6 for wxQt port. (PR #24345)

130 views
Skip to first unread message

dsa-t

unread,
Feb 21, 2024, 7:58:58 AM2/21/24
to wx-...@googlegroups.com, Subscribed

Gets wxQt with Qt6 building with CMake, and samples (widgets, cube, pyramid) running.

Sort of implements #24208.

glib-2.0 is needed to work around removal of QAbstractEventDispatcher::hasPendingEvents() in Qt6.


You can view, comment on, or merge this pull request online at:

  https://github.com/wxWidgets/wxWidgets/pull/24345

Commit Summary

File Changes

(23 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/24345@github.com>

Maarten

unread,
Feb 21, 2024, 1:54:19 PM2/21/24
to wx-...@googlegroups.com, Subscribed

@MaartenBent commented on this pull request.

Nice addition.
AppVeyor is still set to Qt 5.11 so requiring 5.15 causes problems there.


In build/cmake/toolkit.cmake:

> @@ -126,14 +126,32 @@ if(UNIX AND NOT APPLE AND NOT WIN32 AND (WXX11 OR WXGTK2 OR (WXGTK AND wxHAVE_GD
 endif()
 
 if(WXQT)
-    set(QT_COMPONENTS Core Widgets Gui OpenGL Test)
+    set(QT_COMPONENTS Core Widgets Gui OpenGL OpenGLWidgets Test)
+
+    find_package(Qt6 COMPONENTS ${QT_COMPONENTS})
+    if (Qt6_FOUND)
+        set(QT_MAJOR_VERSION 6)
+
+        find_package(PkgConfig REQUIRED)
+
+        pkg_check_modules (GLIB2 REQUIRED glib-2.0)
+        include_directories(${GLIB2_INCLUDE_DIRS})

This should be removed. We definitely do not wan't to add them to each target. Is adding them to wxTOOLKIT_INCLUDE_DIRS below not enough?


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/24345/review/1894182184@github.com>

dsa-t

unread,
Feb 22, 2024, 2:38:52 AM2/22/24
to wx-...@googlegroups.com, Push

@dsa-t pushed 3 commits.


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/24345/push/17208215889@github.com>

dsa-t

unread,
Feb 22, 2024, 3:06:23 AM2/22/24
to wx-...@googlegroups.com, Push

@dsa-t pushed 1 commit.

  • f3c2551 Compatibility with older Qt5.


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/24345/push/17208574700@github.com>

dsa-t

unread,
Feb 22, 2024, 3:13:59 AM2/22/24
to wx-...@googlegroups.com, Subscribed

@dsa-t commented on this pull request.


In build/cmake/toolkit.cmake:

> @@ -126,14 +126,32 @@ if(UNIX AND NOT APPLE AND NOT WIN32 AND (WXX11 OR WXGTK2 OR (WXGTK AND wxHAVE_GD
 endif()
 
 if(WXQT)
-    set(QT_COMPONENTS Core Widgets Gui OpenGL Test)
+    set(QT_COMPONENTS Core Widgets Gui OpenGL OpenGLWidgets Test)
+
+    find_package(Qt6 COMPONENTS ${QT_COMPONENTS})
+    if (Qt6_FOUND)
+        set(QT_MAJOR_VERSION 6)
+
+        find_package(PkgConfig REQUIRED)
+
+        pkg_check_modules (GLIB2 REQUIRED glib-2.0)
+        include_directories(${GLIB2_INCLUDE_DIRS})

Seems enough, now fixed.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/24345/review/1895186877@github.com>

dsa-t

unread,
Feb 22, 2024, 4:23:26 AM2/22/24
to wx-...@googlegroups.com, Push

@dsa-t pushed 1 commit.


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/24345/push/17209743594@github.com>

VZ

unread,
May 10, 2025, 12:03:11 PMMay 10
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#24345)

@AliKet Is there anything still worth keeping here or should this one be closed?


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/24345/c2868993203@github.com>

AliKet

unread,
May 10, 2025, 4:13:06 PMMay 10
to wx-...@googlegroups.com, Subscribed
AliKet left a comment (wxWidgets/wxWidgets#24345)

Can safely be closed as everything here is in master now, thanks.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/24345/c2869137704@github.com>

VZ

unread,
May 10, 2025, 4:53:52 PMMay 10
to wx-...@googlegroups.com, Subscribed

Closed #24345.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/24345/issue_event/17603448712@github.com>

Reply all
Reply to author
Forward
0 new messages