Skip to content

Qt 6

This is where all Qt 6 related questions belong

842 Topics 4.1k Posts
  • 0 Votes
    1 Posts
    281 Views
    No one has replied
  • QtConcurrent::mappedReduced without mapped

    Locked Unsolved
    3
    0 Votes
    3 Posts
    255 Views
    R

    Hello @SGaist
    Thank you for your message. We can continue here.

  • 0 Votes
    2 Posts
    296 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).

  • 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
    3
    0 Votes
    3 Posts
    517 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
    545 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
    734 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
    647 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
    314 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]

  • 0 Votes
    3 Posts
    331 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]

  • 0 Votes
    1 Posts
    864 Views
    No one has replied
  • 0 Votes
    17 Posts
    1k Views
    R

    @VRonin just reported it here https://bugreports.qt.io/browse/QTBUG-93731

    Thank you everyone for your help.

  • 0 Votes
    3 Posts
    547 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
    739 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
    337 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
    349 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
    241 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 )