Skip to content

Qt 6

This is where all Qt 6 related questions belong

828 Topics 4.0k Posts
  • Installation Error

    Solved
    5
    0 Votes
    5 Posts
    1k Views
    T

    @jsulm I have managed to get in installed.
    Thks

  • How to disable linking with Qt6EntryPoint in qmake ?

    Solved
    8
    0 Votes
    8 Posts
    1k Views
    C

    Hi,
    i get the same error but in a visual studio project.
    Did anyone know how i can add the -entrypoint in a vs project?

    Thanks!

  • Static build of Qt + Wayland

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    B

    @Herzenschein I've solved it by adding Qt${QT_VERSION_MAJOR}::WaylandClientPrivate
    to target_link_libraries() of the app.
    Also add -system-freetype -fontconfig to configure, to not see squares instead of letters. And -no-prefix instead of -prefix ... makes it easier, since you wont have to install.

  • 0 Votes
    2 Posts
    341 Views
    G

    For the future generations of humanity:

    QJniObject toast = QJniObject::callStaticObjectMethod( "android/widget/Toast", "makeText", "(Landroid/content/Context;Ljava/lang/CharSequence;I)" "Landroid/widget/Toast;", QNativeInterface::QAndroidApplication::context(), displayText.object<jstring>(), timeout ); if (toast.isValid()) { qDebug() << "Toast is valid"; toast.callMethod<void>("show"); } else { qDebug() << "Toast JNI object not valid"; }
  • QMenu location on dual monitor bug

    Unsolved
    3
    0 Votes
    3 Posts
    668 Views
    M

    I am using version 6.5.2. and I also have this bug.

  • qt6 how to compile for 32 bits on windows using mingw 11 20

    Unsolved
    6
    0 Votes
    6 Posts
    2k Views
    cristian-adamC

    gcc -m32 should do the trick. See https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html

    In order to build Qt 6.7 with this, you'll have to use a CMake toolchain file.

    Here is how I've built on Linux 32 bit https://lists.qt-project.org/pipermail/development/2020-November/040702.html

  • Qt6.5.0: Android: Can't create main activity

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    V

    @TheoSys said in Qt6.5.0: Android: Can't create main activity:

    Qt5.15 app for Android to Qt6.5.0

    Exactly the same problem after moving app from Qt5.15 Qt6.5

  • When does Qt6 support iPadOS17 ?

    Unsolved
    1
    0 Votes
    1 Posts
    970 Views
    No one has replied
  • QtMultimedia on Rockchip ARM Boards?

    Solved
    5
    0 Votes
    5 Posts
    826 Views
    W

    @SGaist

    Thank you for your suggestion! It took some fiddling but it worked! Want to post my findings here to possibly help others in case they run into something like this.

    What I did was I used

    apt-cache search ffmpeg

    to get a list of all the ffmpeg related packages. (Note: Run this on your board not your host machine and make sure to have done apt-get update && apt-get upgrade before hand)

    From there I transferred the list into a simple apt-get install command and installed all the libs. After rsyncing everything over and reconfiguring/recompiling it worked like a dream on the board. No need to set an extra switch or anything.

    Thank you for your help and I hope this helps someone else out!

  • Building Qt6 manually from source

    Solved
    4
    0 Votes
    4 Posts
    321 Views
    D

    CMake's ExternalProject_Add works with the bare minimum CMakeLists.txt shown below:

    cmake_minimum_required(VERSION ...) project(...) include(ExternalProject) ExternalProject_Add(QtBase SOURCE_DIR ${CMAKE_SOURCE_DIR}/...)
  • When does it actually become false

    Unsolved
    3
    0 Votes
    3 Posts
    255 Views
    S

    The source code for SignalVector::at states:

    ConnectionList &at(int i) { return reinterpret_cast<ConnectionList *>(this + 1)[i + 1]; }

    So, basically signalVector->at(-1) could be something like the first element of the array. Because Qt uses a lot of tricks (e.g. this+1) in this internal code, I am not willing to figure it out exactly. Have a look at the source yourself if you want to figure this out.

  • Access NSApplicationDelegate qnativeinterface on MacOs

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    SGaistS

    Hi,

    If I am not mistaken, something like described in this bug report should be enough.

    Hope it helps

  • 0 Votes
    32 Posts
    94k Views
    A

    Thanks corebonts the solution to install '^libxcb' worked for me my application is running smoothly in ubuntu

  • 怎么播放音频(QT6.5.2)

    Unsolved
    8
    0 Votes
    8 Posts
    405 Views
    JoeCFDJ

    @Christian-Ehrlicher Right. Changed it.

  • Store information for screen readers at QAction

    Unsolved
    3
    0 Votes
    3 Posts
    177 Views
    P

    @SGaist okay. Thank you for your fast answer.

  • 0 Votes
    34 Posts
    4k Views
    P

    I also had this issue today, I followed https://medium.com/swlh/setting-opengl-for-windows-d0b45062caf to install opengl/glew/freeglut and added win32: LIBS += -lfreeglut -lglew32 -lopengl32 in the .pro file. Now everything is working.
    PS, I strongly recommend to install libs via https://www.msys2.org/. It's quite simple and convenient.

  • How to re-use Window icons?

    Unsolved
    9
    0 Votes
    9 Posts
    761 Views
    Chris KawaC

    @JonB said in How to re-use Window icons?:

    So MingGW comes with all the Windows header files which might be wanted already included in the distro?

    I'm guessing it's optional if you're building and deploying MinGW yourself, but it is included in the Qt distributed version (and all the major ones otherwise). I'm not sure which version of the SDK it specifically mimics and it's certainly not all of it, but most of the usual stuff is there.

  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Building with stylesheet support on GNU/Linux

    Unsolved
    7
    0 Votes
    7 Posts
    404 Views
    jsulmJ

    @Christian-Ehrlicher @elazul Including their -dev packages.

  • Qt6 QML QtMultimedia : using custom gstreamer pipeline

    Unsolved
    8
    1 Votes
    8 Posts
    2k Views
    JoeCFDJ

    @JoeCFD You can simply build qml6sink. Its source code is under /gstreamer/subprojects/gst-plugins-good/ext/qt6. Only a few files.