Skip to content

Qt Development

Everything development. From desktop and mobile to cloud. Games, tools, 3rd party libraries. Everything.
143.7k Topics 718.3k Posts
QtWS25 Last Chance

Subcategories


  • This is where all the desktop OS and general Qt questions belong.
    83k Topics
    454k Posts
    Y

    Hello, I have a question regarding a difference in the behaviour of QWidget::raise () between Windows / MacOS. On MacOS, calling the method gives focus to the widget, but on Windows this is not the case.

    It can be tested by periodically calling raise () on a QWidget, and trying to write on a text editor while the Qt application is running. On Windows one is able to continue writing indefinitely, whereas on MacOS focus is taken out of the text editor and given to the QWidget.

    Is this a known / accepted difference of behaviour across the two OS? Is it a bug?

    Thanks in advance.

  • The forum for developing everything embedded: Linux, WinCE, Symbian, MeeGo... you name it.
    14k Topics
    62k Posts
    G

    Hello, I've started creating mobile apps for android, via QtCreator's inbuilt SDK manager.

    It's a CMake Qt Widgets application that has not been modified in any meaningful way. I wanted to test out the emulator, just in case it doesn't work.

    It didn't.

    In particular, the error message is:

    BUILD SUCCESSFUL in 10s 33 actionable tasks: 33 up-to-date Android package built successfully in 11.260 ms. -- File: U:/repos/StudyGo2/build/Android_Qt_6_9_0_Clang_arm64_v8a-Debug/android-build-StudyGo2//build/outputs/apk/debug/android-build-StudyGo2-debug.apk 04:15:51: The process "C:\Qt\6.9.0\mingw_64\bin\androiddeployqt.exe" exited normally. 04:16:21: The deployment AVD "GalaxyNexus" cannot be started. 04:16:21: Error while building/deploying project StudyGo2 (kit: Android Qt 6.9.0 Clang arm64-v8a) 04:16:21: When executing step "Deploy to Android device" 04:16:21: Elapsed time: 00:42.

    AVD config:

    Device Name: Galaxy Nexus Device Type: Emulator for "" Serial Number: Unknown CPU architecture: arm64-v8a OS version: Unknown Android Version. API Level: 36 (SDK 36) Android target flavour: Unknown SD card size: Unknown Skin Type: Unknown OpenGL status: Unknown

    Projects mode config:
    Build and Run for Android Qt 6.9.0 Clang arm64-v8a.
    Everything here is set to the default configurations. Since the app compiled correctly, and the deployment fails before actually doing the deployment, I don't think this is the problem.

    I have HyperV turned on. I've also tried restarting in case it's an issue with the environment variables. I have not tried using ADB to deploy to a physical device, because I do not have an android device at the moment.

    I think a possible reason is SD card size being Unknown despite having selected the default option of 512MiB when creating the configuration. However, I don't know if this is normal, nor how to test it.

  • Looking for The Bling Thing(tm)? Post here!
    20k Topics
    77k Posts
    KH-219DesignK

    Please also review this older (but still very relevant thread): https://forum.qt.io/topic/158013/what-s-the-most-beautiful-creative-interesting-software-made-with-qt-you-ve-seen

  • Have a question about Qt Creator, our cross-platform IDE, or any of the other tools? Ask here!
    7k Topics
    35k Posts
    SGaistS

    Since you wrote that the example is building successfully, what about copying it and the gradually replace its content with the one from your project ?

  • Your Qt just doesn't want to build? Your compiler can't find the libs? Here's where you find comfort and understanding. And help.
    10k Topics
    51k Posts
    SGaistS

    Hi and welcome to devnet,

    What was the issue ? It might help someone else in the future :-)

  • What can we say - we like games. And you can use Qt to write some. Questions? Ask here.
    864 Topics
    4k Posts
    ?

    I added -x instead of x and It is working better.

  • Questions about Qt WebKit and related topics? Post here!
    2k Topics
    6k Posts
    SGaistS

    Hi and welcome to devnet,

    The first thing to do would be to update Qt. 5.7.1 has reached end of life a long time ago. Also, that outdated WebKit version is likely too old to support the modern JavaScript stuff.

  • Discussions and questions on QtWebEngine
    1k Topics
    4k Posts
    SGaistS

    Hi,

    Did you also try with a less recent version of Qt such as 6.8 ?

  • You're using Qt with other languages than C++, eh? Post here!
    862 Topics
    3k Posts
    PedromixP

    QtJambi_release.png
    New version QtJambi 6.9.0 is out now 🎉. Try QtJambi to create sophisticated user interfaces in Java. https://www.qtjambi.io

  • Combining Qt with 3rd party libraries or components? Ask here!
    1k Topics
    6k Posts
    S

    Aha! found what I was looking for on a old blog post!

    Qt OPC UA will be available directly from the Qt installer for those holding a Qt for Automation license. [...] Users of one of the Open Source licenses will need to compile Qt OPC UA themselves. See here for a list of build recipes.

    this really should be clearly stated on documentation...

  • For discussion and questions about Qt for Python (PySide & Shiboken)

    3k Topics
    14k Posts
    SGaistS

    Hi and welcome to devnet,

    How are you setting up your label ?

    On a side note, I would recommend you take the time to re-evaluate your architecture. Your chain of dialogs is currently pretty brittle.
    There are other ways to switch from one widget to another that does not involve creating a new widget every time.
    Check for example QStackedWidget.
    You might want to also consider QMainWindow which provides a status bar.
    Depending on the error you might want to consider a QMessageBox using the appropriate level of urgency to show the message.

  • Specific issues when using Qt for WebAssembly

    452 Topics
    2k Posts
    JonBJ

    @Caro
    You might start by Googling webassembly memory () could not allocate memory and read through the other reports and comments.

  • Discussions and questions about Qt Quick Ultralite and using Qt on microcontrollers in general

    140 Topics
    461 Posts
    R

    Hi Qt team,

    I am new to Qt. Is there any general guidance to set up Qt environment for Nordic MCUs or development boards?

    Kind regards,
    Remo

  • The forum for discussing the Qt Digital Advertising Platform

    16 Topics
    40 Posts
    E

    @nayka Can I use QtDigitalAdvertising on PC applications? Or is it only allowed for use on Android or iOS mobile devices?

  • For discussion and questions about Qt Insight

    9 Topics
    12 Posts
    vicnguyenV

    Qt Insight 1.9 has been released. Qt Insight has new additions to the funnels and filters, allowing you to make deeper discoveries about your application usage. Two different funnel analytics, finer-grained geographic filtering options for regions, and many smaller improvements and bug fixes will enhance your insight.

    Read more details in the 1.9 release blog post.