Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.7k Topics 457.9k Posts
  • Mqtt

    Unsolved
    27
    0 Votes
    27 Posts
    6k Views
    SGaistS
    @kiru hi and welcome to devnet, It's seems to be working here at the time of writing. If it's still not, you can use the GitHub mirror.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • Help in debugging QNetworkReply::ProtocolInvalidOperationError

    Solved
    3
    0 Votes
    3 Posts
    118 Views
    R
    No wonder, there was a formatting error in the form upload data -- mea culpa! Problem solved.
  • QtWebEngineCore.dll SOMETIMES not found

    Unsolved
    6
    0 Votes
    6 Posts
    2k Views
    V
    I fixed the problem! :-) The trick is to disable the sandbox mode of the webengine. It looks like this problem was introduced since it was running remote on Windows Citrix. The only problem now is, that the resolution of print looks low. It looks like maybe 100 dpi even it looks fine on normal windows computers. Any idea how to fix that?
  • How to integrate QML UI into a custom Vulkan renderer without using a separate window

    Unsolved
    3
    1 Votes
    3 Posts
    193 Views
    S
    If you need some clarifications let me know
  • Qt creator autosave issue

    Unsolved
    4
    0 Votes
    4 Posts
    162 Views
    J.HilkJ
    @icebergenergy How did you add the files to your project — manually in Qt Creator, or did you rely on automatic folder parsing / globbing? Either way, if you delete a file via the file manager instead via QtCreator Project Manager, you'll have to rerun cmake.
  • QFileDialog name filter on Linux

    Unsolved
    7
    0 Votes
    7 Posts
    479 Views
    Christian EhrlicherC
    When the platform plugin provides a native file dialog then it is used, otherwise the Qt one is shown.
  • macos universal build of Qt sources

    Solved mac os universal
    3
    0 Votes
    3 Posts
    120 Views
    G
    @IgKh I had no idea what that double dash was for. Adding it solved thevproblem. Thanks.
  • Cross compiling x86_64 to Arm64

    Unsolved cross compile cross platform cross compiles cross-compiling arm64
    5
    0 Votes
    5 Posts
    245 Views
    SGaistS
    @Joe-von-Habsburg Taking into account the good pointers @Bonnie provided, you really should provide information about what you want to achieve. Which device do you want to target ? What are its spec ? Etc. Just stating it's arm based is not enough.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    20 Views
    No one has replied
  • clipping plane for qscatter3dseries?

    Unsolved
    1
    0 Votes
    1 Posts
    49 Views
    No one has replied
  • Problem with Groupbox in ScrollArea

    Unsolved
    5
    0 Votes
    5 Posts
    160 Views
    PerdrixP
    @Chris-Kawa Thanks for checking the ui file. OK I'll do that tomorrow. David
  • Cross-compiling Qt for Linux on Windows

    Solved
    8
    0 Votes
    8 Posts
    11k Views
    N
    Hi @Donald-Duck, I know it has been a long time ago, but could you post your solution please? I agree that this is probably not the right way but it certainly a way to make a windows to linux cross-compiler work. I assume you made a fake qmake which relays between windows and the wsl qmake and converts paths in the process.
  • Create a simple managment application, where to start?

    Unsolved
    2
    0 Votes
    2 Posts
    115 Views
    Pl45m4P
    Hi and welcome to the forum :) @Singed said in Create a simple managment application, where to start?: My question is: what would be your recommendations for this project? For example, which tools or approaches should I start with, and which ones should I avoid because they might give me a hard time later? In example, start absolutely using this "xxxxx" because you will have hard times instead and similar. In general: To re-build a UI design similar to the one shown in your screenshot, I would go for a QtQuick/QML app. It is more modern looking and easier to integrate fancy animations, visualizations etc.... ... unless something prevents you from using QML or you want to go for a more native OS looking desktop QtWidgets app. Are you targeting one platform only or should it work on multiple?! Then, depending on your knowledge, the next question is: C++ Qt or one of the Qt wrappers like PySide or PyQt (Python)? Also, I would like to know if there are modern, free graphics or UI templates that I could use as a starting point or even as a final design. Some ready-made designs look very nice, but they are not free. Is there a free database or repository of Qt designs that I could access? There are some, but mostly you will find more like "parts" online, that you can put together. If you are looking for some nice stylesheet, you will find examples. Or if you are looking for sidebar widgets, you will also find examples on GitHub or DIY tutorials online. But not "your" complete design free to use. Haven't seen something like that. Most of the UI can be done using Qt's standard widgets (or QML elements): Different Views, Menus, Buttons and other controls etc....
  • Referencing to a qrc file via QUrl for QAudioDecoder

    Solved
    11
    0 Votes
    11 Posts
    674 Views
    SeDiS
    @Bonnie This! Yes, this is the easiest drop-in workaround. Just works. Cool, thank you for the idea!
  • Using Qt GRPC on Ubuntu 24.04.3 LTS x86_64

    Unsolved
    2
    0 Votes
    2 Posts
    85 Views
    SGaistS
    Hi and welcome to devnet, That module is available since Qt 6.5. You have basically two options: Try to build it yourself against 6.4 Use the online Qt installer and install a more recent version of Qt in your home folder. Using gRPC directly means that you will have to implemented all the low-level details and integration with the event loop done by the QtGRPC module.
  • Detect when webcam is unplugged

    Unsolved
    14
    0 Votes
    14 Posts
    5k Views
    M
    Hey Chris, this is a common issue with QCameraViewfinder. The viewfinder freezing on the last frame when the camera disconnects is pretty standard behavior. Here are a few approaches you can try: You can connect to the QCamera's stateChanged signal and watch for when it goes to QCamera::UnloadedState or QCamera::UnavailableState. That's usually the most reliable way to detect disconnection. Another option is to monitor the QCamera's statusChanged signal for QCamera::UnavailableStatus. This specifically tells you when the camera becomes unavailable. If those don't work perfectly for your case, you could implement a simple watchdog timer that checks if the frame has been updated recently. If no new frames arrive for a certain period (like 2-3 seconds), you can assume the camera disconnected like Michigan county map. Here's a basic example of watching the state: cpp connect(camera, &QCamera::stateChanged, this, [this](QCamera::State state) { if (state == QCamera::UnloadedState || state == QCamera::UnavailableState) { // Show your error display here showCameraError(); } }); The watchdog approach might be more reliable though, since sometimes the state changes can be a bit delayed depending on the camera driver. Hope this helps you get the detection working!
  • QString::localeAwareCompare() incorrect for å, ä and ö in Swedish

    Unsolved
    8
    1 Votes
    8 Posts
    523 Views
    AndyBriceA
    Apparently, QString::localeAwareCompare() doesn't take account of the default locale. That wasn't obvious to me from reading the documentation.
  • Strange delay of keyboard input

    Unsolved
    8
    0 Votes
    8 Posts
    503 Views
    H
    @Kent-Dorfman said in Strange delay of keyboard input: You had a malformed connect() statement Why malformed? Used form allowed in docs. @Kent-Dorfman said in Strange delay of keyboard input: The framework is fine for general user interfaces but not for high framerate game development Is Qt Quick more suitable for it, or has same delays?
  • Problem with getting a keyPressEvent for arrow keys

    Unsolved
    4
    0 Votes
    4 Posts
    127 Views
    SGaistS
    Are you using a custom Qt build ? One thing you can do is check the Qt Logging Category. There are multiple used in Qt's own code.