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
Sorry for the late reply. There is no known issue compiling with the latest version of Qt 6. Perhaps provide which version you're compiling with so we can better investigate?
I tried to build SIEdit from source, but got this instead:
/home/zerocool32/SIEdit/app/mainwindow.cpp: In member function ‘void MainWindow::InitializeMenuBar()’:
/home/zerocool32/SIEdit/app/mainwindow.cpp:130:23: error: no matching function for call to ‘QMenu::addAction(QString, QString, MainWindow*, void (MainWindow::)())’
130 | file_menu->addAction(tr("&New"), tr("Ctrl+N"), this, &MainWindow::NewFile);
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenubar.h:44,
from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/QMenuBar:1,
from /home/zerocool32/SIEdit/app/mainwindow.cpp:6:
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:107:9: note: candidate: ‘template<class Obj, class Func1> typename std::enable_if<((! std::is_same<const char, Func1>::value) && QtPrivate::IsPointerToTypeDerivedFromQObject<T*>::Value), QAction*>::type QMenu::addAction(const QString&, const Obj*, Func1, const QKeySequence&)’
107 | addAction(const QString &text, const Obj object, Func1 slot
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:107:9: note: template argument deduction/substitution failed:
/home/zerocool32/SIEdit/app/mainwindow.cpp:130:23: note: mismatched types ‘const Obj’ and ‘QString’
130 | file_menu->addAction(tr("&New"), tr("Ctrl+N"), this, &MainWindow::NewFile);
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenubar.h:44,
from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/QMenuBar:1,
from /home/zerocool32/SIEdit/app/mainwindow.cpp:6:
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:122:21: note: candidate: ‘template QAction* QMenu::addAction(const QString&, Func1, const QKeySequence&)’
122 | inline QAction addAction(const QString &text, Func1 slot
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:122:21: note: template argument deduction/substitution failed:
/home/zerocool32/SIEdit/app/mainwindow.cpp:130:23: note: candidate expects 3 arguments, 4 provided
130 | file_menu->addAction(tr("&New"), tr("Ctrl+N"), this, &MainWindow::NewFile);
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenubar.h:44,
from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/QMenuBar:1,
from /home/zerocool32/SIEdit/app/mainwindow.cpp:6:
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:139:9: note: candidate: ‘template<class Obj, class Func1> typename std::enable_if<((! std::is_same<const char, Func1>::value) && QtPrivate::IsPointerToTypeDerivedFromQObject<T*>::Value), QAction*>::type QMenu::addAction(const QIcon&, const QString&, const Obj*, Func1, const QKeySequence&)’
139 | addAction(const QIcon &actionIcon, const QString &text, const Obj object, Func1 slot
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:139:9: note: template argument deduction/substitution failed:
/home/zerocool32/SIEdit/app/mainwindow.cpp:130:26: note: cannot convert ‘MainWindow::tr(const char, const char*, int)(0, -1)’ (type ‘QString’) to type ‘const QIcon&’
130 | file_menu->addAction(tr("&New"), tr("Ctrl+N"), this, &MainWindow::NewFile);
| ~~^~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenubar.h:44,
from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/QMenuBar:1,
from /home/zerocool32/SIEdit/app/mainwindow.cpp:6:
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:155:21: note: candidate: ‘template QAction* QMenu::addAction(const QIcon&, const QString&, Func1, const QKeySequence&)’
155 | inline QAction addAction(const QIcon &actionIcon, const QString &text, Func1 slot
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:155:21: note: template argument deduction/substitution failed:
/home/zerocool32/SIEdit/app/mainwindow.cpp:130:26: note: cannot convert ‘MainWindow::tr(const char, const char*, int)(0, -1)’ (type ‘QString’) to type ‘const QIcon&’
130 | file_menu->addAction(tr("&New"), tr("Ctrl+N"), this, &MainWindow::NewFile);
| ~~^~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenubar.h:44,
from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/QMenuBar:1,
from /home/zerocool32/SIEdit/app/mainwindow.cpp:6:
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:79:14: note: candidate: ‘QAction* QMenu::addAction(const QString&)’
79 | QAction addAction(const QString &text);
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:79:14: note: candidate expects 1 argument, 4 provided
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:80:14: note: candidate: ‘QAction QMenu::addAction(const QIcon&, const QString&)’
80 | QAction addAction(const QIcon &icon, const QString &text);
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:80:14: note: candidate expects 2 arguments, 4 provided
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:82:14: note: candidate: ‘QAction QMenu::addAction(const QString&, const QObject*, const char*, const QKeySequence&)’
82 | QAction addAction(const QString &text, const QObject receiver, const char member
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:82:60: note: no known conversion for argument 2 from ‘QString’ to ‘const QObject’
82 | QAction addAction(const QString &text, const QObject receiver, const char member
| ~~~~~~~~~~~~~~~^~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:87:14: note: candidate: ‘QAction QMenu::addAction(const QIcon&, const QString&, const QObject*, const char*, const QKeySequence&)’
87 | QAction addAction(const QIcon &icon, const QString &text, const QObject receiver, const char member
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:87:37: note: no known conversion for argument 1 from ‘QString’ to ‘const QIcon&’
87 | QAction addAction(const QIcon &icon, const QString &text, const QObject receiver, const char member
| ~~~~~~~~~~~~~^~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qframe.h:44,
from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qgroupbox.h:44,
from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/QGroupBox:1,
from /home/zerocool32/SIEdit/app/mainwindow.h:6,
from /home/zerocool32/SIEdit/app/mainwindow.cpp:1:
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qwidget.h:566:10: note: candidate: ‘void QWidget::addAction(QAction)’
566 | void addAction(QAction action);
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qwidget.h:566:10: note: candidate expects 1 argument, 4 provided
/home/zerocool32/SIEdit/app/mainwindow.cpp:132:23: error: no matching function for call to ‘QMenu::addAction(QString, QString, MainWindow, void (MainWindow::)())’
132 | file_menu->addAction(tr("&Open"), tr("Ctrl+O"), this, &MainWindow::OpenFile);
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenubar.h:44,
from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/QMenuBar:1,
from /home/zerocool32/SIEdit/app/mainwindow.cpp:6:
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:107:9: note: candidate: ‘template<class Obj, class Func1> typename std::enable_if<((! std::is_same<const char*, Func1>::value) && QtPrivate::IsPointerToTypeDerivedFromQObject<T*>::Value), QAction*>::type QMenu::addAction(const QString&, const Obj*, Func1, const QKeySequence&)’
107 | addAction(const QString &text, const Obj object, Func1 slot
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:107:9: note: template argument deduction/substitution failed:
/home/zerocool32/SIEdit/app/mainwindow.cpp:132:23: note: mismatched types ‘const Obj’ and ‘QString’
132 | file_menu->addAction(tr("&Open"), tr("Ctrl+O"), this, &MainWindow::OpenFile);
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenubar.h:44,
from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/QMenuBar:1,
from /home/zerocool32/SIEdit/app/mainwindow.cpp:6:
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:122:21: note: candidate: ‘template QAction* QMenu::addAction(const QString&, Func1, const QKeySequence&)’
122 | inline QAction addAction(const QString &text, Func1 slot
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:122:21: note: template argument deduction/substitution failed:
/home/zerocool32/SIEdit/app/mainwindow.cpp:132:23: note: candidate expects 3 arguments, 4 provided
132 | file_menu->addAction(tr("&Open"), tr("Ctrl+O"), this, &MainWindow::OpenFile);
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenubar.h:44,
from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/QMenuBar:1,
from /home/zerocool32/SIEdit/app/mainwindow.cpp:6:
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:139:9: note: candidate: ‘template<class Obj, class Func1> typename std::enable_if<((! std::is_same<const char, Func1>::value) && QtPrivate::IsPointerToTypeDerivedFromQObject<T*>::Value), QAction*>::type QMenu::addAction(const QIcon&, const QString&, const Obj*, Func1, const QKeySequence&)’
139 | addAction(const QIcon &actionIcon, const QString &text, const Obj object, Func1 slot
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:139:9: note: template argument deduction/substitution failed:
/home/zerocool32/SIEdit/app/mainwindow.cpp:132:26: note: cannot convert ‘MainWindow::tr(const char, const char*, int)(0, -1)’ (type ‘QString’) to type ‘const QIcon&’
132 | file_menu->addAction(tr("&Open"), tr("Ctrl+O"), this, &MainWindow::OpenFile);
| ~~^~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenubar.h:44,
from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/QMenuBar:1,
from /home/zerocool32/SIEdit/app/mainwindow.cpp:6:
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:155:21: note: candidate: ‘template QAction* QMenu::addAction(const QIcon&, const QString&, Func1, const QKeySequence&)’
155 | inline QAction addAction(const QIcon &actionIcon, const QString &text, Func1 slot
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:155:21: note: template argument deduction/substitution failed:
/home/zerocool32/SIEdit/app/mainwindow.cpp:132:26: note: cannot convert ‘MainWindow::tr(const char, const char*, int)(0, -1)’ (type ‘QString’) to type ‘const QIcon&’
132 | file_menu->addAction(tr("&Open"), tr("Ctrl+O"), this, &MainWindow::OpenFile);
| ~~^~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenubar.h:44,
from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/QMenuBar:1,
from /home/zerocool32/SIEdit/app/mainwindow.cpp:6:
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:79:14: note: candidate: ‘QAction* QMenu::addAction(const QString&)’
79 | QAction addAction(const QString &text);
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:79:14: note: candidate expects 1 argument, 4 provided
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:80:14: note: candidate: ‘QAction QMenu::addAction(const QIcon&, const QString&)’
80 | QAction addAction(const QIcon &icon, const QString &text);
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:80:14: note: candidate expects 2 arguments, 4 provided
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:82:14: note: candidate: ‘QAction QMenu::addAction(const QString&, const QObject*, const char*, const QKeySequence&)’
82 | QAction addAction(const QString &text, const QObject receiver, const char member
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:82:60: note: no known conversion for argument 2 from ‘QString’ to ‘const QObject’
82 | QAction addAction(const QString &text, const QObject receiver, const char member
| ~~~~~~~~~~~~~~~^~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:87:14: note: candidate: ‘QAction QMenu::addAction(const QIcon&, const QString&, const QObject*, const char*, const QKeySequence&)’
87 | QAction addAction(const QIcon &icon, const QString &text, const QObject receiver, const char member
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:87:37: note: no known conversion for argument 1 from ‘QString’ to ‘const QIcon&’
87 | QAction addAction(const QIcon &icon, const QString &text, const QObject receiver, const char member
| ~~~~~~~~~~~~~^~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qframe.h:44,
from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qgroupbox.h:44,
from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/QGroupBox:1,
from /home/zerocool32/SIEdit/app/mainwindow.h:6,
from /home/zerocool32/SIEdit/app/mainwindow.cpp:1:
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qwidget.h:566:10: note: candidate: ‘void QWidget::addAction(QAction)’
566 | void addAction(QAction action);
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qwidget.h:566:10: note: candidate expects 1 argument, 4 provided
/home/zerocool32/SIEdit/app/mainwindow.cpp:134:23: error: no matching function for call to ‘QMenu::addAction(QString, QString, MainWindow, bool (MainWindow::)())’
134 | file_menu->addAction(tr("&Save"), tr("Ctrl+S"), this, &MainWindow::SaveFile);
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenubar.h:44,
from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/QMenuBar:1,
from /home/zerocool32/SIEdit/app/mainwindow.cpp:6:
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:107:9: note: candidate: ‘template<class Obj, class Func1> typename std::enable_if<((! std::is_same<const char*, Func1>::value) && QtPrivate::IsPointerToTypeDerivedFromQObject<T*>::Value), QAction*>::type QMenu::addAction(const QString&, const Obj*, Func1, const QKeySequence&)’
107 | addAction(const QString &text, const Obj object, Func1 slot
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:107:9: note: template argument deduction/substitution failed:
/home/zerocool32/SIEdit/app/mainwindow.cpp:134:23: note: mismatched types ‘const Obj’ and ‘QString’
134 | file_menu->addAction(tr("&Save"), tr("Ctrl+S"), this, &MainWindow::SaveFile);
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenubar.h:44,
from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/QMenuBar:1,
from /home/zerocool32/SIEdit/app/mainwindow.cpp:6:
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:122:21: note: candidate: ‘template QAction* QMenu::addAction(const QString&, Func1, const QKeySequence&)’
122 | inline QAction addAction(const QString &text, Func1 slot
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:122:21: note: template argument deduction/substitution failed:
/home/zerocool32/SIEdit/app/mainwindow.cpp:134:23: note: candidate expects 3 arguments, 4 provided
134 | file_menu->addAction(tr("&Save"), tr("Ctrl+S"), this, &MainWindow::SaveFile);
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenubar.h:44,
from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/QMenuBar:1,
from /home/zerocool32/SIEdit/app/mainwindow.cpp:6:
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:139:9: note: candidate: ‘template<class Obj, class Func1> typename std::enable_if<((! std::is_same<const char, Func1>::value) && QtPrivate::IsPointerToTypeDerivedFromQObject<T*>::Value), QAction*>::type QMenu::addAction(const QIcon&, const QString&, const Obj*, Func1, const QKeySequence&)’
139 | addAction(const QIcon &actionIcon, const QString &text, const Obj object, Func1 slot
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:139:9: note: template argument deduction/substitution failed:
/home/zerocool32/SIEdit/app/mainwindow.cpp:134:26: note: cannot convert ‘MainWindow::tr(const char, const char*, int)(0, -1)’ (type ‘QString’) to type ‘const QIcon&’
134 | file_menu->addAction(tr("&Save"), tr("Ctrl+S"), this, &MainWindow::SaveFile);
| ~~^~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenubar.h:44,
from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/QMenuBar:1,
from /home/zerocool32/SIEdit/app/mainwindow.cpp:6:
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:155:21: note: candidate: ‘template QAction* QMenu::addAction(const QIcon&, const QString&, Func1, const QKeySequence&)’
155 | inline QAction addAction(const QIcon &actionIcon, const QString &text, Func1 slot
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:155:21: note: template argument deduction/substitution failed:
/home/zerocool32/SIEdit/app/mainwindow.cpp:134:26: note: cannot convert ‘MainWindow::tr(const char, const char*, int)(0, -1)’ (type ‘QString’) to type ‘const QIcon&’
134 | file_menu->addAction(tr("&Save"), tr("Ctrl+S"), this, &MainWindow::SaveFile);
| ~~^~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenubar.h:44,
from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/QMenuBar:1,
from /home/zerocool32/SIEdit/app/mainwindow.cpp:6:
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:79:14: note: candidate: ‘QAction* QMenu::addAction(const QString&)’
79 | QAction addAction(const QString &text);
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:79:14: note: candidate expects 1 argument, 4 provided
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:80:14: note: candidate: ‘QAction QMenu::addAction(const QIcon&, const QString&)’
80 | QAction addAction(const QIcon &icon, const QString &text);
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:80:14: note: candidate expects 2 arguments, 4 provided
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:82:14: note: candidate: ‘QAction QMenu::addAction(const QString&, const QObject*, const char*, const QKeySequence&)’
82 | QAction addAction(const QString &text, const QObject receiver, const char member
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:82:60: note: no known conversion for argument 2 from ‘QString’ to ‘const QObject’
82 | QAction addAction(const QString &text, const QObject receiver, const char member
| ~~~~~~~~~~~~~~~^~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:87:14: note: candidate: ‘QAction QMenu::addAction(const QIcon&, const QString&, const QObject*, const char*, const QKeySequence&)’
87 | QAction addAction(const QIcon &icon, const QString &text, const QObject receiver, const char member
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:87:37: note: no known conversion for argument 1 from ‘QString’ to ‘const QIcon&’
87 | QAction addAction(const QIcon &icon, const QString &text, const QObject receiver, const char member
| ~~~~~~~~~~~~~^~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qframe.h:44,
from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qgroupbox.h:44,
from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/QGroupBox:1,
from /home/zerocool32/SIEdit/app/mainwindow.h:6,
from /home/zerocool32/SIEdit/app/mainwindow.cpp:1:
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qwidget.h:566:10: note: candidate: ‘void QWidget::addAction(QAction)’
566 | void addAction(QAction action);
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qwidget.h:566:10: note: candidate expects 1 argument, 4 provided
/home/zerocool32/SIEdit/app/mainwindow.cpp:136:23: error: no matching function for call to ‘QMenu::addAction(QString, QString, MainWindow, bool (MainWindow::)())’
136 | file_menu->addAction(tr("Save &As"), tr("Ctrl+Shift+S"), this, &MainWindow::SaveFileAs);
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenubar.h:44,
from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/QMenuBar:1,
from /home/zerocool32/SIEdit/app/mainwindow.cpp:6:
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:107:9: note: candidate: ‘template<class Obj, class Func1> typename std::enable_if<((! std::is_same<const char*, Func1>::value) && QtPrivate::IsPointerToTypeDerivedFromQObject<T*>::Value), QAction*>::type QMenu::addAction(const QString&, const Obj*, Func1, const QKeySequence&)’
107 | addAction(const QString &text, const Obj object, Func1 slot
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:107:9: note: template argument deduction/substitution failed:
/home/zerocool32/SIEdit/app/mainwindow.cpp:136:23: note: mismatched types ‘const Obj’ and ‘QString’
136 | file_menu->addAction(tr("Save &As"), tr("Ctrl+Shift+S"), this, &MainWindow::SaveFileAs);
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenubar.h:44,
from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/QMenuBar:1,
from /home/zerocool32/SIEdit/app/mainwindow.cpp:6:
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:122:21: note: candidate: ‘template QAction* QMenu::addAction(const QString&, Func1, const QKeySequence&)’
122 | inline QAction addAction(const QString &text, Func1 slot
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:122:21: note: template argument deduction/substitution failed:
/home/zerocool32/SIEdit/app/mainwindow.cpp:136:23: note: candidate expects 3 arguments, 4 provided
136 | file_menu->addAction(tr("Save &As"), tr("Ctrl+Shift+S"), this, &MainWindow::SaveFileAs);
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenubar.h:44,
from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/QMenuBar:1,
from /home/zerocool32/SIEdit/app/mainwindow.cpp:6:
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:139:9: note: candidate: ‘template<class Obj, class Func1> typename std::enable_if<((! std::is_same<const char, Func1>::value) && QtPrivate::IsPointerToTypeDerivedFromQObject<T*>::Value), QAction*>::type QMenu::addAction(const QIcon&, const QString&, const Obj*, Func1, const QKeySequence&)’
139 | addAction(const QIcon &actionIcon, const QString &text, const Obj object, Func1 slot
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:139:9: note: template argument deduction/substitution failed:
/home/zerocool32/SIEdit/app/mainwindow.cpp:136:26: note: cannot convert ‘MainWindow::tr(const char, const char*, int)(0, -1)’ (type ‘QString’) to type ‘const QIcon&’
136 | file_menu->addAction(tr("Save &As"), tr("Ctrl+Shift+S"), this, &MainWindow::SaveFileAs);
| ~~^~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenubar.h:44,
from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/QMenuBar:1,
from /home/zerocool32/SIEdit/app/mainwindow.cpp:6:
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:155:21: note: candidate: ‘template QAction* QMenu::addAction(const QIcon&, const QString&, Func1, const QKeySequence&)’
155 | inline QAction addAction(const QIcon &actionIcon, const QString &text, Func1 slot
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:155:21: note: template argument deduction/substitution failed:
/home/zerocool32/SIEdit/app/mainwindow.cpp:136:26: note: cannot convert ‘MainWindow::tr(const char, const char*, int)(0, -1)’ (type ‘QString’) to type ‘const QIcon&’
136 | file_menu->addAction(tr("Save &As"), tr("Ctrl+Shift+S"), this, &MainWindow::SaveFileAs);
| ~~^~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenubar.h:44,
from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/QMenuBar:1,
from /home/zerocool32/SIEdit/app/mainwindow.cpp:6:
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:79:14: note: candidate: ‘QAction* QMenu::addAction(const QString&)’
79 | QAction addAction(const QString &text);
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:79:14: note: candidate expects 1 argument, 4 provided
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:80:14: note: candidate: ‘QAction QMenu::addAction(const QIcon&, const QString&)’
80 | QAction addAction(const QIcon &icon, const QString &text);
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:80:14: note: candidate expects 2 arguments, 4 provided
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:82:14: note: candidate: ‘QAction QMenu::addAction(const QString&, const QObject*, const char*, const QKeySequence&)’
82 | QAction addAction(const QString &text, const QObject receiver, const char member
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:82:60: note: no known conversion for argument 2 from ‘QString’ to ‘const QObject’
82 | QAction addAction(const QString &text, const QObject receiver, const char member
| ~~~~~~~~~~~~~~~^~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:87:14: note: candidate: ‘QAction QMenu::addAction(const QIcon&, const QString&, const QObject*, const char*, const QKeySequence&)’
87 | QAction addAction(const QIcon &icon, const QString &text, const QObject receiver, const char member
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:87:37: note: no known conversion for argument 1 from ‘QString’ to ‘const QIcon&’
87 | QAction addAction(const QIcon &icon, const QString &text, const QObject receiver, const char member
| ~~~~~~~~~~~~~^~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qframe.h:44,
from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qgroupbox.h:44,
from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/QGroupBox:1,
from /home/zerocool32/SIEdit/app/mainwindow.h:6,
from /home/zerocool32/SIEdit/app/mainwindow.cpp:1:
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qwidget.h:566:10: note: candidate: ‘void QWidget::addAction(QAction)’
566 | void addAction(QAction action);
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qwidget.h:566:10: note: candidate expects 1 argument, 4 provided
/home/zerocool32/SIEdit/app/mainwindow.cpp:140:23: error: no matching function for call to ‘QMenu::addAction(QString, QString, MainWindow, void (MainWindow::)())’
140 | file_menu->addAction(tr("&View SI File"), tr("Ctrl+I"), this, &MainWindow::ViewSIFile);
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenubar.h:44,
from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/QMenuBar:1,
from /home/zerocool32/SIEdit/app/mainwindow.cpp:6:
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:107:9: note: candidate: ‘template<class Obj, class Func1> typename std::enable_if<((! std::is_same<const char*, Func1>::value) && QtPrivate::IsPointerToTypeDerivedFromQObject<T*>::Value), QAction*>::type QMenu::addAction(const QString&, const Obj*, Func1, const QKeySequence&)’
107 | addAction(const QString &text, const Obj object, Func1 slot
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:107:9: note: template argument deduction/substitution failed:
/home/zerocool32/SIEdit/app/mainwindow.cpp:140:23: note: mismatched types ‘const Obj’ and ‘QString’
140 | file_menu->addAction(tr("&View SI File"), tr("Ctrl+I"), this, &MainWindow::ViewSIFile);
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenubar.h:44,
from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/QMenuBar:1,
from /home/zerocool32/SIEdit/app/mainwindow.cpp:6:
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:122:21: note: candidate: ‘template QAction* QMenu::addAction(const QString&, Func1, const QKeySequence&)’
122 | inline QAction addAction(const QString &text, Func1 slot
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:122:21: note: template argument deduction/substitution failed:
/home/zerocool32/SIEdit/app/mainwindow.cpp:140:23: note: candidate expects 3 arguments, 4 provided
140 | file_menu->addAction(tr("&View SI File"), tr("Ctrl+I"), this, &MainWindow::ViewSIFile);
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenubar.h:44,
from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/QMenuBar:1,
from /home/zerocool32/SIEdit/app/mainwindow.cpp:6:
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:139:9: note: candidate: ‘template<class Obj, class Func1> typename std::enable_if<((! std::is_same<const char, Func1>::value) && QtPrivate::IsPointerToTypeDerivedFromQObject<T*>::Value), QAction*>::type QMenu::addAction(const QIcon&, const QString&, const Obj*, Func1, const QKeySequence&)’
139 | addAction(const QIcon &actionIcon, const QString &text, const Obj object, Func1 slot
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:139:9: note: template argument deduction/substitution failed:
/home/zerocool32/SIEdit/app/mainwindow.cpp:140:26: note: cannot convert ‘MainWindow::tr(const char, const char*, int)(0, -1)’ (type ‘QString’) to type ‘const QIcon&’
140 | file_menu->addAction(tr("&View SI File"), tr("Ctrl+I"), this, &MainWindow::ViewSIFile);
| ~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenubar.h:44,
from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/QMenuBar:1,
from /home/zerocool32/SIEdit/app/mainwindow.cpp:6:
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:155:21: note: candidate: ‘template QAction* QMenu::addAction(const QIcon&, const QString&, Func1, const QKeySequence&)’
155 | inline QAction addAction(const QIcon &actionIcon, const QString &text, Func1 slot
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:155:21: note: template argument deduction/substitution failed:
/home/zerocool32/SIEdit/app/mainwindow.cpp:140:26: note: cannot convert ‘MainWindow::tr(const char, const char*, int)(0, -1)’ (type ‘QString’) to type ‘const QIcon&’
140 | file_menu->addAction(tr("&View SI File"), tr("Ctrl+I"), this, &MainWindow::ViewSIFile);
| ~~^~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenubar.h:44,
from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/QMenuBar:1,
from /home/zerocool32/SIEdit/app/mainwindow.cpp:6:
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:79:14: note: candidate: ‘QAction* QMenu::addAction(const QString&)’
79 | QAction addAction(const QString &text);
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:79:14: note: candidate expects 1 argument, 4 provided
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:80:14: note: candidate: ‘QAction QMenu::addAction(const QIcon&, const QString&)’
80 | QAction addAction(const QIcon &icon, const QString &text);
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:80:14: note: candidate expects 2 arguments, 4 provided
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:82:14: note: candidate: ‘QAction QMenu::addAction(const QString&, const QObject*, const char*, const QKeySequence&)’
82 | QAction addAction(const QString &text, const QObject receiver, const char member
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:82:60: note: no known conversion for argument 2 from ‘QString’ to ‘const QObject’
82 | QAction addAction(const QString &text, const QObject receiver, const char member
| ~~~~~~~~~~~~~~~^~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:87:14: note: candidate: ‘QAction QMenu::addAction(const QIcon&, const QString&, const QObject*, const char*, const QKeySequence&)’
87 | QAction *addAction(const QIcon &icon, const QString &text, const QObject receiver, const char member
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qmenu.h:87:37: note: no known conversion for argument 1 from ‘QString’ to ‘const QIcon&’
87 | QAction addAction(const QIcon &icon, const QString &text, const QObject receiver, const char member
| ~~~~~~~~~~~~~^~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qframe.h:44,
from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qgroupbox.h:44,
from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/QGroupBox:1,
from /home/zerocool32/SIEdit/app/mainwindow.h:6,
from /home/zerocool32/SIEdit/app/mainwindow.cpp:1:
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qwidget.h:566:10: note: candidate: ‘void QWidget::addAction(QAction)’
566 | void addAction(QAction *action);
| ^~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtWidgets/qwidget.h:566:10: note: candidate expects 1 argument, 4 provided
make[2]: *** [app/CMakeFiles/si-edit.dir/build.make:160: app/CMakeFiles/si-edit.dir/mainwindow.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:144: app/CMakeFiles/si-edit.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
Is there a solution or a workaround for this issue?
The text was updated successfully, but these errors were encountered: