Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.5k Posts
  • noexcept build errors after updating to 6.9.0

    Unsolved
    7
    0 Votes
    7 Posts
    651 Views
    jsulmJ
    @GregB Install gcc 10, add that compiler in QtCreator and then create a new Kit where you select that compiler
  • Why does QProcess fail to execute the.bat command to open .exe in QService?

    Solved
    4
    0 Votes
    4 Posts
    192 Views
    jsulmJ
    @mirro Please post code as text, not pictures. In your code you're not waiting after calling exec() and you did not add any error handling as @JonB suggested. And did you check Windows logs as it was also suggested? You should use startDetached instead of execute if you're not waiting for the process to finish. command variable should be a QStringList, not QString.
  • Component Search for an app - Infinite selector carousel

    Unsolved
    2
    0 Votes
    2 Posts
    83 Views
    SGaistS
    Hi and welcome to devnet, This Wiki article might be worth a look. Hope it helps
  • Where are the .ui files?

    Unsolved
    21
    0 Votes
    21 Posts
    1k Views
    Pl45m4P
    @SimonSchroeder said in Where are the .ui files?: I am so vocal about it because I was taught to use pointers and new everywhere when I started with C++. Turns out that this was the source of most bugs. So, using stack variables almost everywhere (except for Qt's objects with parents assigned) helps to prevent a lot of bugs. (There are other reasons to use pointers related to OOP and polymorphism, but even then there are fewer cases than I was taught initially.) True. This correlates also with my experience. @Pl45m4 said in Where are the .ui files?: Have seen beginners creating everything, Qt and non-Qt related stuff, on the heap regardless... that could need some optimization :) Could be "bad" teachers, wrong guides or courses... or just the wrong assumptions that it needs to be done this way. People have heard "C++ is hard", "C++ is complicated", "Lots of bad black memory/pointer magic you can do"... which is kinda accurate... so they take the sledgehammer to crack a nut :D And maybe they get "inpired" by other OOP languages like Java, where you don't have to manage your memory yourself and new'ing something does not come with any drawback, therefore it's most used.
  • QTextToSpeech error in Qt 6.9.1

    Unsolved
    7
    0 Votes
    7 Posts
    383 Views
    Lab7L
    I didn't expect this (but admit that I should have checked it earlier...) Using 6.9.0: When selecting "winrt" as engine it output the format error, but using "sapi" it works. Using "winrt" the Application Output shows "QAudioSink::start: QAudioFormat not supported by QAudioDevice" Still don't know how to fix the problem for winrt, but it's a step forward. Also, the application needs to work for alle engines the end user select in order to support all locales and voices. It would be interesting to know if this only applies to my setup or if anyone else using Windows 11 and Qt 6.9.1 experience the same issue with this code I still can't figure out how to set the format of the default output
  • Using different project names results in different UI display speeds

    Unsolved
    5
    0 Votes
    5 Posts
    273 Views
    C
    Hi @SimonSchroeder Nope. I build the projects in Release mode.
  • Where to give the path of Gradle

    Unsolved
    21
    0 Votes
    21 Posts
    13k Views
    Nick BennettN
    It looks like that doc page was updated. A requirement line encompasses all the Android requirements, and it states that QC can download these for you.
  • QString to QString assignment

    Solved
    4
    0 Votes
    4 Posts
    196 Views
    B
    Thanks @Ben-Campbell-Wallis and @JonB for the reply.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • Installing CMake static target with QML module

    Unsolved
    1
    0 Votes
    1 Posts
    71 Views
    No one has replied
  • How to create Bike cluster in qt

    Unsolved
    2
    0 Votes
    2 Posts
    145 Views
    jsulmJ
    @thunder What's your question?
  • Best practice for QTs parent/child memory model and clang-tidy

    Unsolved
    5
    1 Votes
    5 Posts
    377 Views
    S
    You should not change the way you write code based on a linter if the linter is wrong. However, widget should have a parent (maybe that happens when it is added to a layout). If you are using a linter, you shouldn't just turn it off entirely. So, the option that you have is to turn specific linting options off on a per line basis (https://stackoverflow.com/questions/37950439/inline-way-to-disable-clang-tidy-checks): Use NOLINT(...) on specific lines or NOLINTBEGIN(...)/NOLINTEND(...) on the whole section of code creating widgets and layouts. Make sure to just disable that one specific warning.
  • A Question About Two QTableView Share One Model

    Solved
    2
    0 Votes
    2 Posts
    129 Views
    SGaistS
    Hi, Using multiple views on top of the same model is one of the core feature of the model view paradigm. You have one single source of data and present it through different (or similar) means to the user.
  • qmake Segmentation fault on Raspberry Pi Bookworm ARM64

    Solved
    4
    0 Votes
    4 Posts
    315 Views
    D
    It is a problem with the installer's binaries they were build on Ubunto with a different libc or libstdc++ library than on Raspberry. https://bugreports.qt.io/browse/QTBUG-137145 You can build it from the sources, then it works. Install required packages sudo apt install cmake libfontconfig1-dev libdbus-1-dev libfreetype6-dev libicu-dev libinput-dev libxkbcommon-dev libsqlite3-dev libssl-dev libpng-dev libjpeg-dev libglib2.0-dev libgles2-mesa-dev libgbm-dev libdrm-dev libvulkan-dev vulkan-tools Install wayland libs sudo apt install libwayland-dev libwayland-egl1-mesa libwayland-server0 Download and extract https://download.qt.io/official_releases/qt/6.8/6.8.3/submodules/qtbase-everywhere-src-6.8.3.tar.xz, tar -xf qtbase-everywhere-src-6.8.3.tar.xz Switch to the directory where the file is extracted, make a directory for the build inside, switch into the build directory cd /path/to/qtbase-extract, mkdir ./build, cd ./build Build cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/raspifm/Qt/6.8.3-aarch64 -DQT_FEATURE_opengles2=ON -DQT_FEATURE_opengles3=ON -DQT_FEATURE_kms=ON -DQT_AVOID_CMAKE_ARCHIVING_API=ON .. cmake --build . --parallel 4 Install cmake --install . Build modules, e.g.: qtsvg, qtimageformats, qtwayland Download and extract https://download.qt.io/official_releases/qt/6.8/6.8.3/submodules/qt....tar.xz tar -xf qt....tar.xz Switch to the directory where the file is extracted, make a directory for the build inside, switch into the build directory cd /path/to/qt...-extract, mkdir ./build, cd ./build Build /home/raspifm/Qt/6.8.3-aarch64/bin/qt-configure-module .., then cmake --build . --parallel 4 Install cmake --install .
  • invokeMethod is messing up signatures

    Solved
    7
    0 Votes
    7 Posts
    320 Views
    ocgltdO
    That solved it. I'm not sure what happened, but something got messed up my build dir.
  • Qt: Drop-down button?

    15
    0 Votes
    15 Posts
    49k Views
    RokeJulianLockhartR
    @JonB, that's what I was looking for! Thanks.
  • QMediaPlayer with a video with audio codec mp2 (mp3float) causes major loud distortion

    Unsolved
    4
    0 Votes
    4 Posts
    329 Views
    SGaistS
    Hi and welcome to devnet, Does it happen with only a single file or are they all affected ? It there somewhere a sample file that could be used to test this issue ? Which OS are you running your application on ?
  • Qt 6.10 beta: pitchCompensation() example

    Unsolved
    4
    0 Votes
    4 Posts
    256 Views
    SGaistS
    That's how I understood the code.
  • car_interface.h missing from D-Bus Car Example

    Solved
    5
    0 Votes
    5 Posts
    329 Views
    B
    @rcx11 it uses a similar approach to gRPC/QtRemoteObjects in that the files that are compiled are generated using calls to the generators via cmake. I checked Qt6.10.0 on windows 11 and indeed, until you configure the file cannot be found: The file that generated (for reference of others reading this thread): [image: 8bfbacc8-18a1-419d-9f48-7757554d7203.png] I'd recommend marking as resolved with @Paul-Colby 's response.
  • 0 Votes
    7 Posts
    887 Views
    D
    Hello, is there any update for this issue? I'm also facing the problem that the QEnums properties are not loaded by QtDesigner