Polish letters in issues panel errors/warnings not showing up
-
Hello everyone!
I am currently creating a small qml application and I've stumbled upon a little annoyance that I am not sure how to deal with. Whenever there are some warnings or errors after building, the messages shown in Issues panel in Qt Creator are missing polish letters. For example, in the second warning there is "kt˘rego" instead of "którego".
This is not some big problem but it is annoying. Can someone please help me fix it? -
Hi @Ilethas,
this is a long known problem, please see QTCREATORBUG-316 for possible workarounds.
Regards
-
Hi and welcome to devnet,
Can you show the related code ?
Also, can you translate the error in english ? -
Sure!
C4100: "renderer": parametr formalny, do kt˘rego nie istnieje odwoanie
C4100: "win": parametr formalny, do kt˘rego nie istnieje odwoanie
LNK4042: obiekt określono więcej niż raz; dodatkowe wystąpienia zostały zignorowanewould be:
C4100: "renderer": unreferenced formal parameter
C4100: "win": unreferenced formal parameter
LNK4042: object specified more than once; extras ignoredThe first two warnings are caused by the code below. The functions are temporarily empty and their parameters aren't used yet and give warnings.
void TutorialOpenGLView::setRenderer(TutorialRenderer* renderer) { } void TutorialOpenGLView::handleWindowChanged(QQuickWindow *win) { }
I am not sure what causes the last warning, it just happens after I rebuild my project. Maybe this could be because of my build configuration? After double clicking warning message, it just redirects me to some disassembly in main.obj
-
Sorry for long delay!
I managed to get english warning/error messages by uninstalling polish language pack for visual studio 2017 and leaving english as the only language. I guess Qt Creator just tried to use OS language for the messages even if UI language was set to something else. Other method that worked for me was to create a shortcut forcing Creator to use english:
C:\Windows\System32\cmd.exe /c "set ^"VSLANG=1033^" && start C:\Qt\Tools\QtCreator\bin\qtcreator.exe"
As for the warnings, I've dealt with the first two (never knew about the Q_UNUSED, that's handy!). The last one is visible even if no project is opened, in "Build & run -> Kits -> Desktop (default)". I wanted to use compiler that comes with Visual Studio 2017 to build 32-bit executables, I read that Qt built with MSVC 2015 is compatible, however the configuration shown in my last screenshot gives warning that my compiler may not produce compatible code.
Edit: So, according to QTCREATORBUG-17740 I technically shouldn't worry about this warning? My program runs without problems on this configuration, I just don't like ignoring warnings. After all, they are for a reason, right? :)
-
Technically VS2017 is backward compatible with VS2015 but who knows what may break in a futur update ^^
-
-
For super super safe, indeed. But you shouldn't need to so go on as you are currently :)