Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
51aa0a1
WIP
azeey Feb 21, 2025
e118488
Fix `GzSpinBox` in cases where the value property has a binding
azeey Feb 22, 2025
9e7a0c8
Handle decimal factor changes
azeey Feb 22, 2025
b6f401d
Remove debug logs
azeey Feb 22, 2025
e462f9c
Merge branch 'fix_gridconfig' into azeey/qt6_simple
azeey Feb 22, 2025
2726836
WIP
azeey Feb 26, 2025
c2d720d
Update packages.apt
azeey Feb 26, 2025
9c27bd1
fixes for topic viewer's tree view, file dialogs, qml to cpp prop bin…
iche033 Mar 25, 2025
9d397a4
fix transport plotting, all examples
iche033 Mar 29, 2025
3c3b3cf
fixing tests
iche033 Apr 1, 2025
9fe860e
testing
iche033 Apr 2, 2025
f538d69
test sleeping:
iche033 Apr 3, 2025
e8a346c
fix merge and grid config color dialog
iche033 Apr 3, 2025
39aef4b
testing
iche033 Apr 3, 2025
f96a1a4
increase sleep
iche033 Apr 3, 2025
dd93d98
use Q_DECLARE_OPAQUE_POINTER
iche033 Apr 4, 2025
43bc6aa
create metal texture
iche033 Apr 4, 2025
0ec0b21
deprecation warnings on homebrew
iche033 Apr 4, 2025
54fb00f
merge from main
iche033 Apr 7, 2025
7fcd13d
fix navsat map plugin on mac
iche033 Apr 8, 2025
cd5d6cb
fix title in reset dialog on mac
iche033 Apr 8, 2025
050974a
fix shutdown issue
iche033 Apr 8, 2025
ac61536
fix shutdown issue
iche033 Apr 8, 2025
e483f1f
Merge branch 'ci_matching_branch/iche033/qt6' into iche033/qt6
iche033 Apr 9, 2025
03c2164
style
iche033 Apr 9, 2025
43a4763
update publisher layout
iche033 Apr 17, 2025
8d7e045
fix shutting down minimal scene
iche033 Apr 17, 2025
ddaa4e7
Merge branch 'main' into iche033/qt6
iche033 Apr 17, 2025
5c1aa6a
fix doxygen
iche033 Apr 17, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 22 additions & 18 deletions .github/ci/packages.apt
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,26 @@ libgz-utils3-dev
libprotobuf-dev
libprotoc-dev
libtinyxml2-dev
qml-module-qt-labs-folderlistmodel
qml-module-qt-labs-platform
qml-module-qt-labs-settings
qml-module-qtcharts
qml-module-qtgraphicaleffects
qml-module-qtlocation
qml-module-qtpositioning
qml-module-qtqml-models2
qml-module-qtquick-controls
qml-module-qtquick-controls2
qml-module-qtquick-dialogs
qml-module-qtquick-layouts
qml-module-qtquick-templates2
qml-module-qtquick-window2
qml-module-qtquick2
qtbase5-dev
qtdeclarative5-dev
qtquickcontrols2-5-dev
qml6-module-qt-labs-folderlistmodel
qml6-module-qt-labs-platform
qml6-module-qt-labs-settings
qml6-module-qtcharts
qml6-module-qtpositioning
qml6-module-qtqml-models
qml6-module-qtquick-controls
qml6-module-qtquick-dialogs
qml6-module-qtquick-layouts
qml6-module-qtquick-templates
qml6-module-qtquick-window
qml6-module-qtquick
qml6-module-qtqml
qml6-module-qtcore
qml6-module-qtqml-workerscript
qml6-module-qt5compat-graphicaleffects
libqt6svg6
qt6-5compat-dev
qt6-base-dev
qt6-base-private-dev
qt6-declarative-dev
qt6-declarative-private-dev
xvfb
11 changes: 9 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ set(GZ_TOOLS_VER 2)

#--------------------------------------
# Find QT
set(QT_MAJOR_VERSION 5)
set(QT_MINOR_VERSION 15)
set(QT_MAJOR_VERSION 6)
set(QT_MINOR_VERSION 4)
gz_find_package (Qt${QT_MAJOR_VERSION}
VERSION ${QT_MAJOR_VERSION}.${QT_MINOR_VERSION}
COMPONENTS
Expand All @@ -93,7 +93,14 @@ gz_find_package (Qt${QT_MAJOR_VERSION}
REQUIRED
PKGCONFIG_VER_COMPARISON >=
PKGCONFIG "Qt${QT_MAJOR_VERSION}Core Qt${QT_MAJOR_VERSION}Quick Qt${QT_MAJOR_VERSION}QuickControls2 Qt${QT_MAJOR_VERSION}Widgets")

add_compile_definitions(QT_DISABLE_DEPRECATED_UP_TO=0x050F00)
set(CMAKE_AUTOMOC TRUE)
set(CMAKE_AUTOUIC TRUE)
set(CMAKE_AUTORCC TRUE)
if(POLICY CMP0100)
cmake_policy(SET CMP0100 NEW)
endif()

set(GZ_GUI_PLUGIN_RELATIVE_INSTALL_DIR
${GZ_LIB_INSTALL_DIR}/gz-${GZ_DESIGNATION}-${PROJECT_VERSION_MAJOR}/plugins
Expand Down
1 change: 0 additions & 1 deletion examples/config/scene3d.config
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
<property type="bool" key="showTitleBar">false</property>
<property type="bool" key="resizable">false</property>
<property type="double" key="height">72</property>
<property type="double" key="width">121</property>
<property type="double" key="z">1</property>

<property type="string" key="state">floating</property>
Expand Down
2 changes: 1 addition & 1 deletion examples/plugin/custom_context_menu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ endif()
set (CMAKE_AUTOMOC ON)

# Find Qt5
find_package (Qt5 5.15
find_package (Qt6 6.4
COMPONENTS
Core
Quick
Expand Down
2 changes: 1 addition & 1 deletion examples/plugin/dialog_from_plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ endif()

set (CMAKE_AUTOMOC ON)

find_package (Qt5
find_package (Qt6 6.4
COMPONENTS
Core
Quick
Expand Down
2 changes: 1 addition & 1 deletion examples/plugin/dialog_from_plugin/DialogFromPlugin.qml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick.Dialogs 1.0
import QtQuick.Dialogs
import QtQuick.Window 2.2

Rectangle {
Expand Down
2 changes: 1 addition & 1 deletion examples/plugin/gz_components/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ endif()

set (CMAKE_AUTOMOC ON)

find_package (Qt5 5.15
find_package (Qt6 6.4
COMPONENTS
Core
Quick
Expand Down
2 changes: 1 addition & 1 deletion examples/plugin/hello_plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ endif()

set (CMAKE_AUTOMOC ON)

find_package (Qt5 5.15
find_package (Qt6 6.4
COMPONENTS
Core
Quick
Expand Down
2 changes: 1 addition & 1 deletion examples/plugin/multiple_qml/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ endif()

set (CMAKE_AUTOMOC ON)

find_package (Qt5
find_package (Qt6 6.4
COMPONENTS
Core
Quick
Expand Down
4 changes: 2 additions & 2 deletions examples/standalone/custom_drawer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ endif()

set (CMAKE_AUTOMOC ON)

# Find Qt5
find_package (Qt5
# Find Qt6
find_package (Qt6 6.4
COMPONENTS
Core
Quick
Expand Down
2 changes: 1 addition & 1 deletion examples/standalone/dialogs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ endif()

set (CMAKE_AUTOMOC ON)

find_package (Qt5 5.15
find_package (Qt6 6.4
COMPONENTS
Core
Quick
Expand Down
2 changes: 1 addition & 1 deletion examples/standalone/start_dialog/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ find_package(gz-gui REQUIRED)

set(EXEC_NAME "start_dialog")

QT5_ADD_RESOURCES(resources_RCC ${EXEC_NAME}.qrc)
QT_ADD_RESOURCES(resources_RCC ${EXEC_NAME}.qrc)

add_executable(${EXEC_NAME}
${EXEC_NAME}.cc
Expand Down
4 changes: 2 additions & 2 deletions examples/standalone/window/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ endif()

set (CMAKE_AUTOMOC ON)

# Find Qt5
find_package (Qt5 5.15
# Find Qt6
find_package (Qt6 6.4
COMPONENTS
Core
Quick
Expand Down
8 changes: 4 additions & 4 deletions include/gz/gui/qml/Chart.qml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import QtQuick 2.9
import QtCharts 2.2
import QtQuick.Controls 2.2
import QtQuick.Controls.Styles 1.4

import QtQuick.Controls.Material 2.1
import QtQuick.Layouts 1.3

Expand Down Expand Up @@ -291,7 +291,7 @@ Rectangle {

DropArea {
anchors.fill: parent
onDropped:
onDropped: (drop) =>
{
var text = drop.getDataAsString("text/plain");
infoRect.onDrop(text);
Expand Down Expand Up @@ -636,7 +636,7 @@ Rectangle {
/**
Zoom
*/
onWheel:{
onWheel: (wheel) => {
if (multiChartsMode)
return

Expand Down Expand Up @@ -677,7 +677,7 @@ Rectangle {

DropArea {
anchors.fill: parent
onDropped:
onDropped: (drop) =>
{
var text = drop.getDataAsString("text/plain");
infoRect.onDrop(text);
Expand Down
20 changes: 10 additions & 10 deletions include/gz/gui/qml/GzCard.qml
Original file line number Diff line number Diff line change
Expand Up @@ -124,23 +124,23 @@ Pane {
* Tool bar background color
*/
property string pluginToolBarColor:
typeof MainWindow === "undefined" ||
MainWindow.pluginToolBarColorLight === "" ||
MainWindow.pluginToolBarColorDark === "" ?
typeof _MainWindow === "undefined" ||
_MainWindow.pluginToolBarColorLight === "" ||
_MainWindow.pluginToolBarColorDark === "" ?
Material.accent :
(Material.theme === Material.Light) ?
MainWindow.pluginToolBarColorLight : MainWindow.pluginToolBarColorDark
_MainWindow.pluginToolBarColorLight : _MainWindow.pluginToolBarColorDark

/**
* Tool bar text color
*/
property string pluginToolBarTextColor:
typeof MainWindow === "undefined" ||
MainWindow.pluginToolBarTextColorLight === "" ||
MainWindow.pluginToolBarTextColorDark === "" ?
typeof _MainWindow === "undefined" ||
_MainWindow.pluginToolBarTextColorLight === "" ||
_MainWindow.pluginToolBarTextColorDark === "" ?
Material.background :
(Material.theme === Material.Light) ?
MainWindow.pluginToolBarTextColorLight : MainWindow.pluginToolBarTextColorDark
_MainWindow.pluginToolBarTextColorLight : _MainWindow.pluginToolBarTextColorDark

/**
* Close signal
Expand All @@ -164,7 +164,7 @@ Pane {
// Stop scroll propagation to widgets below
MouseArea {
anchors.fill: parent
onWheel: {
onWheel: (wheel) => {
wheel.accepted = true
}
}
Expand Down Expand Up @@ -253,7 +253,7 @@ Pane {
*/
function enterDockedState()
{
// It's possible to enter the docking state when not floating
// It's possible to enter the docking state when not floating
// (e.g. at initialization or when transitioning from docked_collapsed).
// Do the actual docking only if the card is floating currently.
if (cardPane.floating)
Expand Down
4 changes: 2 additions & 2 deletions include/gz/gui/qml/GzCardSettings.qml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.3
import QtQuick.Window 2.2
import QtQuick.Dialogs 1.0
import QtQuick.Dialogs
import "qrc:/qml"

Dialog {
Expand Down Expand Up @@ -208,7 +208,7 @@ Dialog {
ColorDialog {
id: colorDialog
title: "Please choose a color"
showAlphaChannel : true
options: ColorDialog.ShowAlphaChannel
onAccepted: {
content.color = colorDialog.color
bgColor.color = colorDialog.color
Expand Down
13 changes: 7 additions & 6 deletions include/gz/gui/qml/GzColor.qml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
*/
import QtQuick 2.9
import QtQuick.Controls 2.1
import QtQuick.Dialogs 1.0
import QtQuick.Dialogs
import QtQuick.Layouts 1.3
import QtQuick.Controls.Material 2.1
import Qt.labs.platform


// RGBA using range 0 - 1.0
Expand Down Expand Up @@ -56,12 +57,12 @@ Item {
id: gzColorDialog
title: "Choose a color"
visible: false
showAlphaChannel: true
options: ColorDialog.ShowAlphaChannel
onAccepted: {
r = gzColorDialog.color.r
g = gzColorDialog.color.g
b = gzColorDialog.color.b
a = gzColorDialog.color.a
gzColorRoot.r = gzColorDialog.color.r
gzColorRoot.g = gzColorDialog.color.g
gzColorRoot.b = gzColorDialog.color.b
gzColorRoot.a = gzColorDialog.color.a
gzColorRoot.gzColorSet()
gzColorDialog.close()
}
Expand Down
1 change: 0 additions & 1 deletion include/gz/gui/qml/GzPose.qml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick.Controls.Material 2.1
import QtQuick.Layouts 1.3
import QtQuick.Controls.Styles 1.4

/**
* Item displaying 3D pose information.
Expand Down
4 changes: 2 additions & 2 deletions include/gz/gui/qml/GzSnackBar.qml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
*
*/

import QtGraphicalEffects 1.0
import Qt5Compat.GraphicalEffects
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick.Controls.Material 2.2
import QtQuick.Dialogs 1.0
import QtQuick.Dialogs
import QtQuick.Layouts 1.3
import QtQuick.Window 2.2

Expand Down
1 change: 1 addition & 0 deletions include/gz/gui/qml/GzSpinBox.qml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Item {
}

implicitHeight: spinBox.implicitHeight
implicitWidth: 70

readonly property int kMaxInt: Math.pow(2, 31) - 1

Expand Down
2 changes: 1 addition & 1 deletion include/gz/gui/qml/GzSplit.qml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Item
Rectangle
{
id: startLabel;
visible: MainWindow.pluginCount === 0
visible: _MainWindow.pluginCount === 0
anchors.fill: parent
color: Material.background
Label {
Expand Down
Loading