You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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*
The text was updated successfully, but these errors were encountered:
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
changed the title
Rxml.name() == "settings" ... error: invalid conversion from 'const char*' to 'char'
Compile error with Qt 6.2.4
Nov 28, 2022
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*
The text was updated successfully, but these errors were encountered: