Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error with Qt 6.2.4 #3

Open
bhamadicharef opened this issue Nov 28, 2022 · 2 comments
Open

Compile error with Qt 6.2.4 #3

bhamadicharef opened this issue Nov 28, 2022 · 2 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@bhamadicharef
Copy link

MainWindow.cpp line 368 if( Rxml.isStartElement() && Rxml.name() == "settings" )

C:\Users\bhama\Downloads\Qt-SysexLive-master\SysexLive\MainWindow.cpp:368: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
In file included from C:/Qt/Qt5.12.6/6.2.4/mingw_64/include/QtCore/qstring.h:50,
from C:/Qt/Qt5.12.6/6.2.4/mingw_64/include/QtCore/qobject.h:47,
from C:/Qt/Qt5.12.6/6.2.4/mingw_64/include/QtWidgets/qwidget.h:45,
from C:/Qt/Qt5.12.6/6.2.4/mingw_64/include/QtWidgets/qmainwindow.h:44,
from C:/Qt/Qt5.12.6/6.2.4/mingw_64/include/QtWidgets/QMainWindow:1,
from ..\SysexLive\MainWindow.h:11,
from ..\SysexLive\MainWindow.cpp:8:
C:/Qt/Qt5.12.6/6.2.4/mingw_64/include/QtCore/qchar.h:126:45: note: candidate: 'constexpr QChar::QChar(char)' (near match)
126 | QT_ASCII_CAST_WARN constexpr Q_IMPLICIT QChar(char c) noexcept : ucs(uchar(c)) { }
| ^~~~~
C:/Qt/Qt5.12.6/6.2.4/mingw_64/include/QtCore/qchar.h:126:45: note: conversion of argument 1 would be ill-formed:
..\SysexLive\MainWindow.cpp:368:54: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
368 | if( Rxml.isStartElement() && (Rxml.name() == "settings") )
| ^~~~~~~~~~
| |
| const char*

@masc4ii masc4ii self-assigned this Nov 28, 2022
@masc4ii masc4ii added the help wanted Extra attention is needed label Nov 28, 2022
@masc4ii
Copy link
Owner

masc4ii commented Nov 28, 2022

What is the Qt version you use to compile? Your installation looks very strange! It looks you installed v6.2.4 inside a 5.12.6 installation. SysexLive compiles fine with Qt 5.12.6, but will not compile with 6.2.4, because Qt changed the API.

@masc4ii masc4ii changed the title Rxml.name() == "settings" ... error: invalid conversion from 'const char*' to 'char' Compile error with Qt 6.2.4 Nov 28, 2022
@bhamadicharef
Copy link
Author

Noted thanks. Yeah never realised that about my configuration!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants