Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.3k Topics 455.8k Posts
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • Concept for analyze several XML messages, sometimes incomplete.

    Unsolved
    6
    0 Votes
    6 Posts
    315 Views
    R
    @JonB said in Concept for analyze several XML messages, sometimes incomplete.: What exactly do you mean by this? I send and receive XML messages via socket, which I have to evaluate. There may be 0000 between the messages, other characters that are not necessary for XML. Presumably buffer with 000 The idea is to read <Root> XXXXXX </Root>. It may be that two messages come at once, too fast. How can I solve this? RingBuffer? Do you have a good example of how to solve this?
  • Ubuntu - prevent taskbar icon groupding for child windows

    Unsolved
    6
    0 Votes
    6 Posts
    1k Views
    N
    If anyone comes across this, you can also achieve this by changing X11's WM_CLIENT_MACHINE property of your widget. Gnome will treat this as a different application. You can also see how gnome matches windows to applications here: https://github.com/GNOME/gnome-shell/blob/main/src/shell-window-tracker.c#L388.
  • QTranslator and qtbase_en.qm

    Locked Unsolved
    6
    0 Votes
    6 Posts
    920 Views
    J.HilkJ
    @bokun the OP's problem was most likely a lifetime issue of the stack allocated QTranslator, if I had to guess This topic is 2 years old, please create a new one for your specific issue. Closing this topic now
  • Migrating from QMake to CMake UNICODE definition issue

    Solved
    4
    0 Votes
    4 Posts
    240 Views
    A
    @JoeCFD Thanks a lot, your solution works! @Christian-Ehrlicher thank you too! Problem solved.
  • Bounding size of QTableView to parent widget

    Unsolved
    8
    0 Votes
    8 Posts
    532 Views
    Christian EhrlicherC
    @vivaat said in Bounding size of QTableView to parent widget: But is it possible to limit such a behavior? Maybe by overriding the mouseMove event.
  • undefined reference errors using QtMultimedia in qt 6.8.3 c++

    Solved
    8
    0 Votes
    8 Posts
    587 Views
    A
    Thanks for the answers. I figured it out for the cmake build system. For anyone who stumbles across a similar problem. I had to edit three lines in CMakeLists.txt, i.e., essentially add the keyword "Multimedia" to them: find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets Multimedia) find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets Multimedia) target_link_libraries(Countdown PRIVATE Qt${QT_VERSION_MAJOR}::Widgets Qt${QT_VERSION_MAJOR}::Multimedia) After that compiler and linker do find the corresponding files.
  • Combo box (or equivalent) - "one click" behavior

    Unsolved
    9
    0 Votes
    9 Posts
    573 Views
    jeremy_kJ
    @gbettega said in Combo box (or equivalent) - "one click" behavior: One of the authors also explains how the drop down is immediately hidden after a mouse release event (as in your case), but at the end no conclusive solution exposed to the word. This went off in a tangent that I didn't expect. The intent was move from abstract discussion into a brief code example that cab be tested, and discussed in more concrete terms suggest looking at the implemented item view functionality before overriding lower level mechanisms Yes, the CurrentChanged edit trigger can have unexpected behavior. SelectedClicked is probably easier to work with. That takes one to two clicks (one to select a cell, one to edit the selection) to display the combo box popup, and doesn't appear to have the unintended popup close behavior. Sometimes it fails to create the editor, possibly when interpreting the second click on the newly selected cell as a double click.
  • qt-designer options greyed out

    Unsolved
    1
    0 Votes
    1 Posts
    104 Views
    No one has replied
  • QMediaPlayer in 6.6.3

    Unsolved
    2
    0 Votes
    2 Posts
    180 Views
    SGaistS
    Hi and welcome to devnet, Do you expérience the same if you use ffmpeg directly ?
  • Windows deployment extra files

    Unsolved windeployqt deployment
    4
    0 Votes
    4 Posts
    283 Views
    Z
    My app is translatable to a single language so far, not 31 as qtdeployer suggests. Anyway no options to skip collecting all available dlls "just in case" to deploy folder are available in documentations.
  • Can't run a project downloaded from GitHub

    Solved
    3
    0 Votes
    3 Posts
    240 Views
    G
    @Christian-Ehrlicher Thank you. It's fixed.
  • Is it possible to have duplicate in QSet/Hash ?

    Solved qset qhash duplicate
    7
    0 Votes
    7 Posts
    364 Views
    A
    To be honnest, looking more deeply in Qhash than i'v done before, it appered that it was the perfect tool for a bit later. Once my thing is working and I have fixed my own mess, I'll take a look at improving what mess have been made before me.
  • General architectural questions

    Unsolved
    8
    0 Votes
    8 Posts
    504 Views
    JoeCFDJ
    @SGaist It is true. I guess few people would like to do that. We have MQTT, but do not use QMqtt module. There are other ways to implement mqtt with Qt.
  • Where to find qt-opensource-windows-x64-5.15.2.exe for Windows 7?

    Moved Solved
    5
    0 Votes
    5 Posts
    311 Views
    SGaistS
    @garlicbox as already written: the offline installers have not been available for open source users since before 5.15.2. So no.
  • deprecation of QProcess::start and execute without argument list...

    Solved
    11
    1 Votes
    11 Posts
    4k Views
    M
    See also QProcess::startCommand(), which seems to be equivalent to passing the results from splitCommand() into start(). This was introduced in Qt 6.0.
  • start and programmatically stop a thread

    Unsolved
    15
    0 Votes
    15 Posts
    1k Views
    J.HilkJ
    Like previously stated, the only real option you have is to start a separate process from your Qt application. This process loads the DLL and performs the calculations. You can then terminate that process at any time, and the operating system will take care of cleaning up memory, handles, and other resources. The only potential downside is the risk of corrupted files, if the DLL performs file operations. Communication between your main application and the second process can be handled via QSharedMemory, QLocalSocket, or standard input/output piping.
  • QSqlRelationalModel Editable Issue

    Solved
    2
    0 Votes
    2 Posts
    167 Views
    Z
    Ah, found this issue right after posting while doing some more thorough review of my overridden methods. Hopefully it helps someone else. For those converting QSqlTableModels to QSqlRelationalTableModels be careful what methods you're calling! In the below code I forgot to update the base function call to QSqlRelationalTableModel so it was still calling QSqlTableModel::insertRowIntoTable(const QSqlRecord &values) which led to these issues. bool PolicyModel::insertRowIntoTable(const QSqlRecord &values) { QSqlRecord rec = values; rec.setGenerated(Policy::DataRole::Id, false); return QSqlRelationalTableModel::insertRowIntoTable(rec); } I had overridden this method because the primary key is an AUTO_INCREMENT field.
  • QScreenRayCaster not picking object re-added to graph

    Unsolved
    4
    0 Votes
    4 Posts
    400 Views
    J
    Hi - did you manage solve your issue? I'm working on some sort of 3d level editor and will be implementing undo/redo soon, so I may come across the exact same problem...
  • QLabel with custom word wrap mode

    Unsolved qlabel wordwrap painteevent
    5
    0 Votes
    5 Posts
    421 Views
    V
    @Christian-Ehrlicher said in QLabel with custom word wrap mode: I would not override the paint event. Don't see why it would be needed. Maybe I miss something, but how then I can make QLabel support wordwrap not only on word-breaks or add elided text support?