Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.3k Topics 455.7k Posts
  • 3 Votes
    29 Posts
    33k Views
    Thank you for the report. I have banned the user, which got rid of the spam posting. Not a loss, as this user did not post any other content on the site. Just deleting this one posting was not possible. Thanks for reporting this.
  • 0 Votes
    5 Posts
    61 Views
    @JonB I would like to do what many text editors do when the user selects "Show Spaces" or "Show Line Endings" (like Geany, for example). I believe that Notepad++ and UltraEdit also offer this capability. I know that QTextEdit does not show anything by itself for LF, etc. so I would use other characters instead of the real CR, LF, etc. which can be visualized. As to HTML, I am trying to stick to the API offered by QTextDocument, QTextBlock and QTextCursor if possible.
  • Where are the .ui files?

    Unsolved a day ago
    0 Votes
    15 Posts
    178 Views
    @Kent-Dorfman no fault, really. Personally the whole silent parent switching/assigning a bunch of QWidget/QWidgetreleated objects do, never set well with me. And it has been a source of bizarre errors in my past. @JonB said in Where are the .ui files?: How many times do we look at people's code here and say "your error is that you have allowed a stack allocated object to go out of scope while still using the object elsewhere"? that is almost always because the person dereferenced a stack variable because a function explicitly expects a pointer. At which point all kinds of alarm bells should be start running in your head. Too bad, -Wstack-address-passing is not a thing. :(
  • Where to give the path of Gradle

    Unsolved 1 Mar 2017, 16:48
    0 Votes
    21 Posts
    12k Views
    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 about 5 hours ago
    0 Votes
    4 Posts
    45 Views
    Thanks @Ben-Campbell-Wallis and @JonB for the reply.
  • This topic is deleted!

    Unsolved about 2 hours ago
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • 0 Votes
    4 Posts
    86 Views
    Is one of the projects built in debug mode and the other in release mode?
  • Installing CMake static target with QML module

    Unsolved about 9 hours ago
    0 Votes
    1 Posts
    22 Views
    No one has replied
  • QTextToSpeech error in Qt 6.9.1

    Unsolved 2 days ago
    0 Votes
    4 Posts
    77 Views
    @Lab7 That can happen from time to time. What were you trying to post ?
  • How to create Bike cluster in qt

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

    Unsolved 5 days ago
    1 Votes
    5 Posts
    191 Views
    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 a day ago
    0 Votes
    2 Posts
    52 Views
    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 23 May 2025, 10:14
    0 Votes
    4 Posts
    235 Views
    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 .
  • Segmentation fault when exiting when linked against Qt 6.9.1

    Unsolved 9 days ago
    0 Votes
    30 Posts
    1k Views
    @l3u_ Could you mark this thread as solved, please?
  • invokeMethod is messing up signatures

    Solved 4 days ago
    0 Votes
    7 Posts
    133 Views
    That solved it. I'm not sure what happened, but something got messed up my build dir.
  • Qt and Apple 'Glass' UI in macOS 26

    Unsolved 12 days ago
    1 Votes
    2 Posts
    181 Views
    @AndyBrice I'm using the latest version of Qt and macOS/iOS 26. Nothing is compatible with Qt 6.9 and everything renders in the old version style.
  • Qt: Drop-down button?

    21 Apr 2011, 18:38
    0 Votes
    15 Posts
    49k Views
    @JonB, that's what I was looking for! Thanks.
  • 0 Votes
    4 Posts
    227 Views
    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 6 days ago
    0 Votes
    4 Posts
    127 Views
    That's how I understood the code.
  • car_interface.h missing from D-Bus Car Example

    Solved 30 Apr 2025, 02:17
    0 Votes
    5 Posts
    199 Views
    @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.