Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • So tell me why.....(MQTT)

    Unsolved
    4
    0 Votes
    4 Posts
    348 Views
    sierdzioS
    @ThirdStrand I see "Qt MQTT" in my installer (so under commercial license) for Qt 6 - it is under "Additional Libraries". So either it is missing from Open Souce installer (which would be weird) or maybe you are looking at Qt 5?
  • Configuring Qt5.15.2 for Linux '-no-xinput2' error?

    Unsolved
    2
    0 Votes
    2 Posts
    297 Views
    Christian EhrlicherC
    @yygk said in Configuring Qt5.15.2 for Linux '-no-xinput2' error?: ERROR: Unknown command line option '-no-xinput2'. This means that this configure option is not available - see configure --help to find out which options it provides.
  • Position in itemChange

    Unsolved
    5
    0 Votes
    5 Posts
    461 Views
    S
    @SGaist Yes, if the doc snippet is copypasted, and everything else is commented out, - same issue. I'll try on new project, maybe got any new ideas.
  • QMenu Crashed On win10 sometimes, Why?

    Unsolved
    4
    0 Votes
    4 Posts
    339 Views
    JoeCFDJ
    @MayEnjoy Did you try a lower version or a higher version to see if the issue is fixed?
  • Cross-compiling Qt 6.6.0 with EGLFS, mali not detected

    Solved
    8
    0 Votes
    8 Posts
    2k Views
    R
    I ended up leaving out EGLFS_DEVICE_INTEGRATION from the mkspec and compiling as-is, works fine.
  • Mach to Qt standard

    Unsolved
    10
    0 Votes
    10 Posts
    702 Views
    JonBJ
    @Damian7546 We don't know since we don't know what this->GetCRC16(buffer, buffer.size()) does or returns. If I had to guess, I would say this is not right. If you are passing buffer, buffer.size() to GetCRC16() what does that do in buffer and why would you want to append the result to CRC if you have already called something which perhaps/at a guess already appends there? [Actually, it may be correct, provided GetCRC16() reads buffer.size() bytes from buffer and returns a new QByteArray, does not write into buffer.]
  • Qt Regular expresssion example - how to use it?

    Unsolved
    10
    0 Votes
    10 Posts
    2k Views
    JonBJ
    @AnneRanch said in Qt Regular expresssion example - how to use it?: QRegularExpression expressions for multiple matches DOES NOT WORK As answered in your https://forum.qt.io/topic/152003/how-to-retrieve-match-at-least-next-pair-regular-expression, for your case you must use QRegularExpression::globalMatch() instead of QRegularExpression::match(). That is what you are looking for in your case. Like the following: QRegularExpression re("hci[0-9]+\t[0-9A-F:]+"); QRegularExpressionMatchIterator i = re.globalMatch(yourVariableOfTheInputString); while (i.hasNext()) { QRegularExpressionMatch match = i.next(); qDebug() << match.captured(); } So from your input string in that other post, complete program: #include <QCoreApplication> #include <QDebug> #include <QRegularExpression> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QString input ( "Devices:\n\thci8\t00:50:B6:80:4D:5D\n\thci0\t00:15:83:15:A2:CB\n" \ "Devices:\n\thci8\t00:50:B6:80:4D:5D\n\thci0\t00:15:83:15:A2:CB\n" \ " SUCCESS test_contains Devices:Devices:\n\thci8\t00:50:B6:80:4D:5D\n\thci0\t00:15:83:15:A2:CB\n DEBUG TASK START Bluetooth " \ " MATCH result " \ "hci8\t00:50:B6:80:4D:5D" \ " MATCH result " \ " SCAN results hci8\t00:50:B6:80:4D:5D" ); QRegularExpression re("hci[0-9]+\t[0-9A-F:]+"); QRegularExpressionMatchIterator i = re.globalMatch(input); while (i.hasNext()) { QRegularExpressionMatch match = i.next(); qDebug() << match.captured(); } return a.exec(); } produces output "hci8\t00:50:B6:80:4D:5D" "hci0\t00:15:83:15:A2:CB" "hci8\t00:50:B6:80:4D:5D" "hci0\t00:15:83:15:A2:CB" "hci8\t00:50:B6:80:4D:5D" "hci0\t00:15:83:15:A2:CB" "hci8\t00:50:B6:80:4D:5D" "hci8\t00:50:B6:80:4D:5D" which is just what you wanted, right?
  • qt6.6 network get "The credentials were not recognized "

    Solved
    23
    0 Votes
    23 Posts
    5k Views
    L
    i think it may be effect for me。the question can close now。if has problem, i will ask again。thanks for all of you。
  • QT undefined reference to tesseract::TessBaseAPI::TessBaseAPI()

    Unsolved
    4
    0 Votes
    4 Posts
    922 Views
    C
    @kapabahwuk tesseract3.02.02.dll and llept.dll can you share? 1721849726@qq.com Thank you
  • How to get y Position from a cubic bezeir curve

    Solved
    3
    0 Votes
    3 Posts
    239 Views
    S
    @Chris-Kawa Thank you very much , this is what i needed.
  • Dialog issues on macOS

    Unsolved
    2
    0 Votes
    2 Posts
    230 Views
    jsulmJ
    @mitchSyd said in Dialog issues on macOS: can you tell me if there is an upgrade Without any code others can only guess what you are doing...
  • QSignalSpy crashed the test executable when testing a static lib.

    Unsolved
    9
    0 Votes
    9 Posts
    1k Views
    CKurduC
    The problem was solved after I reinstalled Qt 6.6.0. However, I am still unsure of what caused the issue in the first place. Thank You @Christian-Ehrlicher
  • Use qt installer framework in a windows docker container

    Unsolved
    13
    0 Votes
    13 Posts
    2k Views
    R
    @apalomer said in Use qt installer framework in a windows docker container: I have solved the issue myself. Although I do not understand why, everything works if I use FROM mcr.microsoft.com/windows:20H2 instead of FROM mcr.microsoft.com/dotnet/framework/runtime:4.8-windowsservercore-ltsc2019. I tried that but got this error: (8007052E The user name or password is incorrect)
  • QClipboard's setMimeData() does not work

    Unsolved
    10
    0 Votes
    10 Posts
    2k Views
    T
    I couldn't find a solution, but as a workaround I used QProcess running wl-copy
  • Avoiding warnings about int <=> qsizetype on Windows with MSVC

    Solved
    10
    0 Votes
    10 Posts
    2k Views
    KenAppleby 0K
    @jsulm Where? Here: I had written C-style casts are forbidden where I come from! :-) he wrote away to jail with you than!(sic) int y = (int)x; and int y = int(x); are functionally the same in C++ I had not written "anything functionally the same as a C-style cast is forbidden" [which would forbid all named casts, so I'm unlikely to say that.] The "away to jail" jibe makes sense only if it is asserting that int(x) isa C-style cast. Enough.
  • QMenuBar, QMenu and QAction

    Unsolved
    21
    0 Votes
    21 Posts
    3k Views
    Pl45m4P
    @SPlatten said in QMenuBar, QMenu and QAction: pobjMenu->show(); pobjMenuBar->show(); Still weird that this seems to fix it because usually you dont have to show a QMenuBar explicitly. Or what fixed it in the end? QMainWindow::menuBar() says: Returns the menu bar for the main window. This function creates and returns an empty menu bar if the menu bar does not exist. And this, either existing QMenuBar or the newly created one, is already a child of QMainWindow. So I wouldn't expect that you have to show it or apply it to your mainWindow manually again. Dont know if this is somewhat relevant for you but reading the documentation further, it says: If you want all windows in a Mac application to share one menu bar, don't use this function to create it, because the menu bar created here will have this QMainWindow as its parent. Instead, you must create a menu bar that does not have a parent, which you can then share among all the Mac windows. Create a parent-less menu bar this way: QMenuBar *menuBar = new QMenuBar(0);
  • ScrollBar not working properly QML

    Unsolved
    2
    0 Votes
    2 Posts
    371 Views
    JoeCFDJ
    @roditu add this in your code for debugging. Then you may know why the size is so big. ScrollBar.vertical: ScrollBar { id: vscrollBar } Component.onCompleted: { console.log( "size = ",vscrollBar.size ) }
  • open62541 server -- probelm with UA_Server_readValue

    Solved
    3
    0 Votes
    3 Posts
    527 Views
    gfxxG
    @gfxx for bool var only solution seems easy ... retval = UA_Server_readValue(this->m_server, this->m_StopCiclo, &val2); if((retval == UA_STATUSCODE_GOOD) && (val2.type == &UA_TYPES[UA_TYPES_BOOLEAN])) {Stop_bv = (((UA_Boolean*)val2.data)[0]); Stop = Stop_bv; } where Stop_bv and is bool var used for manipulate gui .... Stop is bool var used for write server node;
  • 0 Votes
    1 Posts
    589 Views
    No one has replied
  • Qt D-Bus on Windows

    Unsolved
    11
    0 Votes
    11 Posts
    6k Views
    J
    May be you can try this(Windows port) freedesktop.org