Skip to content

Qt 6

This is where all Qt 6 related questions belong

860 Topics 4.2k Posts
QtWS25 Last Chance
  • Configuration issue with Qt for Android (Qt 6) --> whitespace in path

    Solved
    2
    0 Votes
    2 Posts
    336 Views
    S
    The main problem was with the whitespace in SDK & NDK path of Android Settings. I moved Android folder directly to C drive i.e. C:\Android. I also uninstalled unnecessary packages & was left with Android 11, Android SDK 30.0.2, NDK (Side by side) 21.3.6528147, Android SDK Command-line Tools (latest), Android Emulator, Android SDK Platform-Tools, Android SDK Tools (obsolete), Google USB Driver & Intel x86 Emulator Accelerator (HAXM installer).
  • Qt 6 on Linux linker error "adding symbols: DSO missing from command line"

    Solved
    3
    0 Votes
    3 Posts
    3k Views
    J
    @Psnarf, Thanks for the tip. On a hunch, instead of using the auto-detected Qt6, I manually created a new kit. This resolved the issue. I looked at both the auto-detected and the manually created kit, but could NOT spot any differences.
  • Is Qt Speech Deprecated?

    Unsolved qt speech qt 6 modules
    3
    0 Votes
    3 Posts
    554 Views
    VRoninV
    Looking at the repo it should ship with Qt 6.2
  • Confusing "Library not loaded" error on macOS.

    Unsolved
    4
    0 Votes
    4 Posts
    623 Views
    jsulmJ
    @davidspry said in Confusing "Library not loaded" error on macOS.: Qt 6.0 doesn't include QtMultimedia This is correct
  • CMake QT Creator Problems

    Moved Unsolved
    4
    0 Votes
    4 Posts
    845 Views
    Christian EhrlicherC
    @bdahl said in CMake QT Creator Problems: and also compiled QT with this You compiled Qt by yourself? So you should know where qmake is and either add the directory to your PATH or point cmake to it (best with cmake-gui). I would prefer the former.
  • Detect Qt version with CMake

    Unsolved
    2
    0 Votes
    2 Posts
    795 Views
    VRoninV
    @Jonas-Kvinge said in Detect Qt version with CMake: it does the opposite, it finds Qt 5 first I tested on windows and it actually finds the first one as listed in PATH. It's anyway a terrible idea to have multiple versions of Qt added to PATH at the same time
  • installing Qt 6.2.0 Preview

    Unsolved
    3
    0 Votes
    3 Posts
    369 Views
    kkoehneK
    This is unfortunately a known issue with the current 6.2 snapshots, see https://bugreports.qt.io/browse/QTBUG-93707 .
  • How to build qtquickcontols2, qtsvg, qtwebsockets?

    Unsolved
    8
    0 Votes
    8 Posts
    1k Views
    L
    You can download prebuilt Qt 6.1.0 modules for Windows, Linux (Unix) is available from Google drive https://drive.google.com/folderview?id=0B2QuZLoe-yiPbmNQRl83M1dTRVE&usp=sharing [Warning: Download binaries from unknown sources at your own risk ~SGaist]
  • What is the status of qtmultimedia and qtpurchasing in QT 6.1.0?

    Solved
    3
    0 Votes
    3 Posts
    392 Views
    L
    You can download prebuilt Qt-6.1.0 for win64 and x86-64 from AdaStudio-2021 Google drive https://drive.google.com/folderview?id=0B2QuZLoe-yiPbmNQRl83M1dTRVE&usp=sharing [Warning: Download binaries from unknown sources at your own risk ~kshegunov]
  • Why there are no libEGL.dll and libGLESv2.dll in QT6.1 anymore?

    Unsolved
    1
    0 Votes
    1 Posts
    931 Views
    No one has replied
  • Text from a QTableView's cell shows through inline QComboBox - OSX

    Unsolved
    17
    0 Votes
    17 Posts
    2k Views
    R
    @VRonin just reported it here https://bugreports.qt.io/browse/QTBUG-93731 Thank you everyone for your help.
  • 0 Votes
    3 Posts
    602 Views
    D
    @Christian-Ehrlicher yes, looks like it compiles better without -DQT_NO_EXCEPTIONS=1 reported the bug: https://bugreports.qt.io/browse/QTBUG-93739
  • Compiler errors while building QT 6.1.0 for Windows

    Moved Solved
    3
    0 Votes
    3 Posts
    804 Views
    D
    @Christian-Ehrlicher I compile QT by myself because I prefer QT with -DQT_NO_EXCEPTIONS=1, it disables try/catch block surrounding QThread's loop. I removed MinGW from the PATH and looks like it started to build.
  • OBJECTIVE_SOURCES for cmake/Qt6

    Solved
    2
    0 Votes
    2 Posts
    382 Views
    Christian EhrlicherC
    You just need cmake 3.16 or higher: https://cmake.org/cmake/help/latest/release/3.16.html#languages
  • "enable_if_t" has no member "type"

    Solved
    4
    0 Votes
    4 Posts
    1k Views
    T
    Thank you guys. Problem solved. Added the flag as Chris suggested. It turns out I was also using icpc as my default compiler and that was also giving my trouble.
  • qt project doesnt start

    Unsolved
    2
    0 Votes
    2 Posts
    390 Views
    sierdzioS
    Add Qt libs to LD_LIBRARY_PATH, or install Qt system-wide (distro packages).
  • Announce : AdaStudio-2021 release 07/05/2021 free edition

    Locked Unsolved
    2
    0 Votes
    2 Posts
    275 Views
    J.HilkJ
    Locked, duplicate of https://forum.qt.io/topic/126424/announce-adastudio-2021-release-07-05-2021-free-edition
  • Setting up the application information in CMake

    Solved
    4
    1 Votes
    4 Posts
    2k Views
    A
    I think I found the way to do this. We need win.rc on windows and Info.plist on mac, these files tell their OS's what to name the application. Windows For example, this is what I have (win.rc): IDI_ICON1 ICON DISCARDABLE "resources/images/datalogger.ico" 1 VERSIONINFO FILEVERSION 0,0,0,0 PRODUCTVERSION 0,0,0,0 { BLOCK "StringFileInfo" { BLOCK "000004B0" { VALUE "CompanyName", "DataLogger\0" VALUE "FileDescription", "DataLogger\0" VALUE "FileVersion", "git\0" VALUE "OriginalFilename", "datalogger.exe\0" VALUE "ProductName", "DataLogger\0" VALUE "ProductVersion", "git\0" } } BLOCK "VarFileInfo" { VALUE "Translation", 0x0000, 0x04B0 } } then I added this filename to CMakeLists.txt before find_package(...) as: if (WIN32) set(APP_ICON_RESOURCE_WINDOWS "${CMAKE_CURRENT_SOURCE_DIR}/win.rc") endif () Finally add this: then add set(PROJECT_SOURCES main.cpp resources.qrc + ${APP_ICON_RESOURCE_WINDOWS} mainwindow.cpp mainwindow.h mainwindow.ui ) macOS I have a file called Info.plist in the root <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeIconFile</key> <string>datalogger.icns</string> <key>CFBundleTypeName</key> <string>DataLogger</string> <key>CFBundleTypeRole</key> <string>Viewer</string> <key>LSIsAppleDefaultForType</key> <true/> </dict> </array> <key>CFBundleIconFile</key> <string>datalogger.icns</string> <key>CFBundlePackageType</key> <string>APPL</string> <key>NSPrincipalClass</key> <string>NSApplication</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleExecutable</key> <string>datalogger</string> <key>NSHumanReadableCopyright</key> <string>Copyright (c) 2021, Akshay Raj Gollahalli</string> <key>CFBundleIdentifier</key> <string>datalogger</string> <key>CFBundleName</key> <string>DataLogger</string> <key>CFBundleShortVersionString</key> <string>3.1.2</string> <key>AppleMagnifiedMode</key> <false/> </dict> </plist> In your CMakeList.txt before find_package(...), add: if (APPLE) set(MACOSX_BUNDLE_ICON_FILE datalogger.icns) # And the following tells CMake where to find and install the file itself. set(app_icon_macos "resources/images/datalogger.icns") set_source_files_properties(${app_icon_macos} PROPERTIES MACOSX_PACKAGE_LOCATION "Resources") endif () then add set(PROJECT_SOURCES + MACOSX_BUNDLE main.cpp resources.qrc + ${app_icon_macos} mainwindow.cpp mainwindow.h mainwindow.ui )
  • iOS Build Error QT6 with Qt6_FOUND to FALSE

    Solved
    2
    0 Votes
    2 Posts
    1k Views
    P
    QTBUG-93384 created to track the problem, solutions are: QT Creator 4.15 release use the 4.15 rc https://www.qt.io/blog/qt-creator-4.15-rc1-released Manually specify the proper configuration options to the prohect, either in the kit cmake settings, or in the project cmake settings (or configure from command line) The required configure options are -DCMAKE_TOOLCHAIN_FILE:PATH=/Volumes/T3/Dev/qt/official_qt/6.0.3/ios/lib/cmake/Qt6/qt.toolchain.cmake -DCMAKE_OSX_ARCHITECTURES:STRING=arm64 -DCMAKE_OSX_SYSROOT:STRING=iphoneos in /Volumes/T3/Dev/projects/builds/build-ios_cmake_empty_quick_project_6_0_3-Qt_6_0_3_for_iOS
  • Qt6 Displaying PDF Files

    Unsolved pdf display qt6
    2
    0 Votes
    2 Posts
    747 Views
    SGaistS
    Hi and welcome to devnet, Based on the Marketplace, I would say not available yet for Qt 6. The build instructions are still Qt 5 only. The module will likely return around the same time QtWebEngine for Qt 6 is released.