Skip to content
Qt 6.11 is out! See what's new in the release blog
  • Building Qt6 for HarmonyOS

    Solved Qt for HarmonyOS
    1
    2 Votes
    1 Posts
    168 Views
    No one has replied
  • TexStudio ported to Qt 5.12.12 for HarmonyOS

    Solved Qt for HarmonyOS
    1
    1 Votes
    1 Posts
    213 Views
    No one has replied
  • How to hide or disable butons (minimize, maximize, close) MainWindow

    Unsolved Qt for Python
    7
    0 Votes
    7 Posts
    64 Views
    C
    @JonB I did read provided site and I changed command as suggested. As said: Qt.WindowCloseButtonHint … Adds a close button. On some platforms this implies Qt::WindowSystemMenuHint for it to work. in my case: MainWindow.setWindowFlag(QtCore.Qt.WindowSystemMenuHint, False) but stil the same result. No error, Close button in function. I am not sure what I am missing here...
  • Asking clarification about a documentation section

    Unsolved General and Desktop
    5
    0 Votes
    5 Posts
    181 Views
    R
    @Christian-Ehrlicher didn't seen that at first but was wondering about the table containing all default icons and their names and changing their size.
  • How to change a QAction's descriptive text?

    Unsolved General and Desktop
    4
    0 Votes
    4 Posts
    107 Views
    Chris KawaC
    If you have a separate function you probably don't even need a lambda. Just plug that function directly into connect e.g. QObject::connect(startstop, &QAction::triggered, this, &MyClass::myFunction);
  • QObject's QThread from shared library

    Unsolved General and Desktop
    4
    0 Votes
    4 Posts
    132 Views
    S
    Still doesn't know, if this is a correct behaviour (can be logically explained, I mean), but the issue was quite simple. Somehow library's versions were mixed and debug shared library was linked to app's release version and vice versa. In this case QObjects from library (including inherited classes' objects) are created in a different QThread.
  • 0 Votes
    3 Posts
    81 Views
    Joe von HabsburgJ
    @SGaist said in Freezing issue caused by socket and UI updates in the thread and main thread: Remove that infinite loop -> Qt is event driven so grab the data when it arrives then trigger the processing That for check crc void UdpSocket::processIncomingDatagram() { static const QByteArray magic("\x55\xAA\x55\xAA", 4); while (true) { const int pos = m_buffer.indexOf(magic); if (pos < 0) { m_buffer.clear(); break; } if (pos > 0) m_buffer.remove(0, pos); if (m_buffer.size() < 8) break; const quint32 len = qFromBigEndian<quint32>(reinterpret_cast<const uchar*>(m_buffer.constData() + 4)); if (m_buffer.size() < 8 + static_cast<int>(len)) break; const QByteArray frame = m_buffer.left(8 + static_cast<int>(len)); if (!calculateCrc(frame)) { m_buffer.remove(0, 1); continue; } parseData(frame); m_buffer.remove(0, 8 + static_cast<int>(len)); } } @SGaist said in Freezing issue caused by socket and UI updates in the thread and main thread: If the data is "too fast" then there's no sense in trying to show it all the time, your users won't be able to see all these changes (it's like trying to show a billion points -> useless). Batch the updates at a rate that is useful. I also use decimation for points. @SGaist said in Freezing issue caused by socket and UI updates in the thread and main thread: Also, there's no need to subclass QUdpSocket, you just use it thus avoid subclassing in this case. no no no my UdpSocket class is QObject
  • Need help with Pazzles Invue software

    Unsolved 3rd Party Software
    3
    0 Votes
    3 Posts
    138 Views
    C
    @SGaist Thank you! Sadly I don't know anything about reverse engineering the protocol. I'm just a diecut designer for scrapbooking. I've tried the alternative softwares and they're missing things that I'm used to designing with. This is such a great machine and I didn't want to have to buy a Cricut or Silhouette. I was just hoping to find some sort of patch for this software so that it would stop giving me the check usb connection error code. Thank you for your time!!
  • Warning from windeployqt

    Solved Qt Creator and other tools
    3
    0 Votes
    3 Posts
    162 Views
    PerdrixP
    @Chris-Kawa Thank you. This started happening after I rolled back from VS 18.6.2 to 18.5.3, I tried to follow your advice, but the VS Installer complained about missing "stuff". In the end I had to completely uninstall VS and re-install - most annoying! However the good news is that "normal service" has now been resumed!
  • 0 Votes
    3 Posts
    132 Views
    cristian-adamC
    Thank you for posting this. Qt Creator 19.0.2 has a CMake find package dependency provider that checks to see if Qt packages are missing, and if so, then you can get an Issue with a link to automagically install the missing Qt component. But there is an issue when a Qt component has a dependency on other Qt components that might have missing dependencies. I have tried a Qt Widgets "Hello World" with missing system dev packages. With Qt Creator 19.0.2 and a Qt SDK Qt 6.11.1 I get this in General Messages: [cmake] Running /snap/bin/cmake -S /home/cristian/Projects/C++/HelloQtWidgets -B /home/cristian/Projects/C++/HelloQtWidgets/build/Desktop_Qt_6_11_1-Debug -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_COLOR_DIAGNOSTICS:BOOL=ON -DCMAKE_CXX_COMPILER:FILEPATH=/usr/lib/ccache/aarch64-linux-gnu-g++-13 -DCMAKE_C_COMPILER:FILEPATH=/usr/lib/ccache/aarch64-linux-gnu-gcc-13 -DCMAKE_GENERATOR:STRING=Ninja -DCMAKE_MAKE_PROGRAM:STRING=/usr/bin/ninja -DCMAKE_PREFIX_PATH:PATH=/home/cristian/Qt/6.11.1/gcc_arm64 -DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=/home/cristian/Projects/C++/HelloQtWidgets/build/Desktop_Qt_6_11_1-Debug/.qtcreator/cmake-helper/qtcreator-project.cmake -DQT_CREATOR_ENABLE_MAINTENANCE_TOOL_PROVIDER:BOOL=ON -DQT_CREATOR_ENABLE_PACKAGE_MANAGER_SETUP:BOOL=ON -DQT_ENABLE_QML_DEBUG:BOOL=ON -DQT_QMAKE_EXECUTABLE:FILEPATH=/home/cristian/Qt/6.11.1/gcc_arm64/bin/qmake in /home/cristian/Projects/C++/HelloQtWidgets/build/Desktop_Qt_6_11_1-Debug. [cmake] -- The CXX compiler identification is GNU 13.3.0 [cmake] -- Detecting CXX compiler ABI info [cmake] -- Detecting CXX compiler ABI info - done [cmake] -- Check for working CXX compiler: /usr/lib/ccache/aarch64-linux-gnu-g++-13 - skipped [cmake] -- Detecting CXX compile features [cmake] -- Detecting CXX compile features - done [cmake] -- Performing Test HAVE_STDATOMIC [cmake] -- Performing Test HAVE_STDATOMIC - Success [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] CMake Warning at build/Desktop_Qt_6_11_1-Debug/.qtcreator/cmake-helper/maintenance_tool_provider.cmake:190 (message): [cmake] Qt packages are missing: 6.11.1, gcc_arm64, qt.qt6.6111.linux_gcc_arm64 [cmake] [cmake] If you are using the Qt Online Installer, check the Issues view in Qt [cmake] Creator for a link that installs the missing component. [cmake] Call Stack (most recent call first): [cmake] build/Desktop_Qt_6_11_1-Debug/.qtcreator/cmake-helper/maintenance_tool_provider.cmake:241 (qt_maintenance_tool_install) [cmake] CMakeLists.txt:4 (find_package) [cmake] [cmake] [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_INCLUDE_DIR OpenGL) [cmake] CMake Error at build/Desktop_Qt_6_11_1-Debug/.qtcreator/cmake-helper/maintenance_tool_provider.cmake:252 (find_package): [cmake] Found package configuration file: [cmake] [cmake] /home/cristian/Qt/6.11.1/gcc_arm64/lib/cmake/Qt6/Qt6Config.cmake [cmake] [cmake] but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT [cmake] FOUND. Reason given by package: [cmake] [cmake] Failed to find required Qt component "Widgets". [cmake] [cmake] Expected Config file at [cmake] "/home/cristian/Qt/6.11.1/gcc_arm64/lib/cmake/Qt6Widgets/Qt6WidgetsConfig.cmake" [cmake] exists [cmake] [cmake] [cmake] [cmake] Configuring with --debug-find-pkg=Qt6Widgets might reveal details why the [cmake] package was not found. [cmake] [cmake] Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some [cmake] of the path variables that find_package uses to try and find the package. [cmake] [cmake] Call Stack (most recent call first): [cmake] CMakeLists.txt:4 (find_package) [cmake] [cmake] [cmake] CMake Error at CMakeLists.txt:4 (find_package): [cmake] Could not find a configuration file for package "Qt6" that is compatible [cmake] with requested version "6.5". [cmake] [cmake] The following configuration files were considered but not accepted: [cmake] [cmake] /home/cristian/Qt/6.11.1/gcc_arm64/lib/cmake/Qt6/Qt6Config.cmake, version: unknown [cmake] The version found is not compatible with the version requested. [cmake] [cmake] [cmake] [cmake] -- Configuring incomplete, errors occurred! [cmake] [cmake] The command "/snap/bin/cmake -S /home/cristian/Projects/C++/HelloQtWidgets -B /home/cristian/Projects/C++/HelloQtWidgets/build/Desktop_Qt_6_11_1-Debug -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_COLOR_DIAGNOSTICS:BOOL=ON -DCMAKE_CXX_COMPILER:FILEPATH=/usr/lib/ccache/aarch64-linux-gnu-g++-13 -DCMAKE_C_COMPILER:FILEPATH=/usr/lib/ccache/aarch64-linux-gnu-gcc-13 -DCMAKE_GENERATOR:STRING=Ninja -DCMAKE_MAKE_PROGRAM:STRING=/usr/bin/ninja -DCMAKE_PREFIX_PATH:PATH=/home/cristian/Qt/6.11.1/gcc_arm64 -DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=/home/cristian/Projects/C++/HelloQtWidgets/build/Desktop_Qt_6_11_1-Debug/.qtcreator/cmake-helper/qtcreator-project.cmake -DQT_CREATOR_ENABLE_MAINTENANCE_TOOL_PROVIDER:BOOL=ON -DQT_CREATOR_ENABLE_PACKAGE_MANAGER_SETUP:BOOL=ON -DQT_ENABLE_QML_DEBUG:BOOL=ON -DQT_QMAKE_EXECUTABLE:FILEPATH=/home/cristian/Qt/6.11.1/gcc_arm64/bin/qmake" terminated with exit code 1. [cmake] [cmake] Elapsed time: 00:01. which gives a hint that something with OpenGL is missing. The dependency provider can be skipped by using -DQT_CREATOR_ENABLE_MAINTENANCE_TOOL_PROVIDER:BOOL=OFF, which could help in the case that this mechanism has bugs.
  • 0 Votes
    2 Posts
    23 Views
    JonBJ
    @Joe-von-Habsburg I know nothing about OpenGL or QWT. But since 4k resolution is many more pixels than 1920x1080 would you not expect/be unsurprised if the FPS drops? Every graphics game I play has lower FPS as you increase the resolution.... You either reduce the resolution, typically to your 1080p, or buy a better graphics card....
  • Invalid Stylesheet

    Unsolved Installation and Deployment
    2
    0 Votes
    2 Posts
    49 Views
    Axel SpoerlA
    Hi and welcome to the Qt forum, please specify which example/application you are referring to.
  • open ssl for anroid - libcripto.so and libssl.so

    Unsolved Mobile and Embedded
    2
    0 Votes
    2 Posts
    43 Views
    SGaistS
    Hi, Something seems off. The error message suggests that the library are looked for in the system folders rather than your apk. Am I correct ?
  • 0 Votes
    1 Posts
    11 Views
    No one has replied
  • Qt 6 detect TextInput at the bottom. How?

    Unsolved Mobile and Embedded
    1
    0 Votes
    1 Posts
    25 Views
    No one has replied
  • 0 Votes
    1 Posts
    47 Views
    No one has replied
  • Problem with Qt maintance tool

    Unsolved Installation and Deployment
    1
    0 Votes
    1 Posts
    35 Views
    No one has replied
  • QT QML Android Edge-to-Edge (notch screen) setup

    Unsolved QML and Qt Quick
    1
    0 Votes
    1 Posts
    29 Views
    No one has replied
  • 0 Votes
    1 Posts
    70 Views
    No one has replied
  • 0 Votes
    1 Posts
    53 Views
    No one has replied