Re: [Interest] Qt6 fails to compile on linux Ubuntu 22.04

2023-01-05 Thread Thiago Macieira
On Thursday, 5 January 2023 13:24:34 -03 Nuno Santos wrote: > qxcbkeyboard.cpp:(.text._ZNK12QXcbKeyboard12possibleKeysEPK9QKeyEvent+0x2e): > undefined reference to `QXkbCommon::possibleKeys(xkb_state*, QKeyEvent > const*, bool, bool)' You probably didn't install the xkbcommon development libraries

[Interest] Qt6 fails to compile on linux Ubuntu 22.04

2023-01-05 Thread Nuno Santos
Hi, I’m trying to compile Qt 6.4.1 on Linux from source but I’m having the following error: /usr/bin/ld: qtbase/lib/libQt6XcbQpa.a(qxcbkeyboard.cpp.o): in function `QXcbKeyboard::possibleKeys(QKeyEvent const*) const': qxcbkeyboard.cpp:(.text._ZNK12QXcbKeyboard12possibleKeysEPK9QKeyEvent+0x2e):

Re: [Interest] QStringLiteral and UTF-16 string literal "u"

2023-01-05 Thread Cathal Tummon (ctummon) via Interest
Apologies, ignore my last message , I see the issue now... There is a problem with u"" "myString" (like the macro QStringLiteral uses) vs. u"mystring". Thanks for your time! -Original Message- From: Cathal Tummon (ctummon) Sent: 05 January 2023 16:31 To: Thiago Macieira ; interest@qt-pr

Re: [Interest] QStringLiteral and UTF-16 string literal "u"

2023-01-05 Thread Cathal Tummon (ctummon) via Interest
Sorry to drag this out, but even if my compiler is broken. By the looks of it I do not need to manually add the "u" , it seems to be added by the QStringLiteral() macro itself? -Original Message- From: Thiago Macieira Sent: 05 January 2023 16:20 To: interest@qt-project.org Cc: Cathal Tu

Re: [Interest] QStringLiteral and UTF-16 string literal "u"

2023-01-05 Thread Thiago Macieira
On Thursday, 5 January 2023 11:54:58 -03 Cathal Tummon (ctummon) via Interest wrote: > Sorry to clarify, I'm not questing why it is needed, my question is, is the > following redundant: QStringLiteral(u"myText") > > As in the source code for QStringLiteral there is another macro: > #define QT_UNI

Re: [Interest] QStringLiteral and UTF-16 string literal "u"

2023-01-05 Thread Cathal Tummon (ctummon) via Interest
Hi Thiago, Sorry to clarify, I'm not questing why it is needed, my question is, is the following redundant: QStringLiteral(u"myText") As in the source code for QStringLiteral there is another macro: #define QT_UNICODE_LITERAL(str) u"" str Which always seems to be used, is that correct? Thanks

Re: [Interest] QStringLiteral and UTF-16 string literal "u"

2023-01-05 Thread Thiago Macieira
On Thursday, 5 January 2023 11:13:06 -03 Cathal Tummon (ctummon) via Interest wrote: > Hi there, > > I'm trying to figure out if the "u" is still necessary at any point when > using QStringLiteral. It's not and has never been, except for broken compilers that failed to implement C++11 properly

[Interest] QStringLiteral and UTF-16 string literal "u"

2023-01-05 Thread Cathal Tummon (ctummon) via Interest
Hi there, I'm trying to figure out if the "u" is still necessary at any point when using QStringLiteral. It seems to be always prepended according to the source code: https://codebrowser.dev/qt5/qtbase/src/corelib/text/qstringliteral.h.html https://codebrowser.dev/qt6/qtbase/src/corelib/text/qst