Skip to content

Qt Development

Everything development. From desktop and mobile to cloud. Games, tools, 3rd party libraries. Everything.
144.6k Topics 723.0k Posts

Subcategories


  • This is where all the desktop OS and general Qt questions belong.
    83k 457k
    83k Topics
    457k Posts
    K
    I am facing a similar issue with a QDialog. Touch clicks on pushbuttons does not work some times however the mouse clicks function properly. It is also tnoted that if the dialog window is resized by dragging the window edges the touch clicks are accepted. On catching the QEvent::TouchBegin it is seen that the position() returns the same QPointF as the screenPos() that is the event point is not translated into the widget co-ordinates. On printing the event position it was found that the touch
  • The forum for developing everything embedded: Linux, WinCE, Symbian, MeeGo... you name it.
    14k 63k
    14k Topics
    63k Posts
    NihilishN
    @JKSH Thank you, this is exactly what I'm seeing. As a workaround before we migrate to Qt 6, we tried removing this flag AA_EnableHighDpiScaling and while it does get rid of the white line, it breaks other things
  • Looking for The Bling Thing(tm)? Post here!
    20k 77k
    20k Topics
    77k Posts
    K
    @Nisha_R said in How to access the cover image of mp3 file from its metadata in QML?: what has to be assigned to image source to access its embedded cover image from its metadata What value should be set as the image source to display the embedded cover image from its metadata?
  • Have a question about Qt Creator, our cross-platform IDE, or any of the other tools? Ask here!
    8k 35k
    8k Topics
    35k Posts
    JonBJ
    @AntGP Still not sure what exactly your issue is. For, say, adding "a single box" or some other UI element to an existing project you have a choice of using Designer to produce code or writing the code directly yourself to create UI elements. As for interfacing with C++, if you use Designer from Creator you have that integration.
  • 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 51k
    10k Topics
    51k Posts
    T
    Hi I have a problem I want to create a desktop shortcut for my application I don’t know why it does not work here is my install script.qs function Component() {} Component.prototype.createOperations = function() { component.createOperations(); component.addOperation( "CreateShortcut", "@TargetDir@/notepad.exe", "@DesktopDir@/My App.lnk" ); }
  • What can we say - we like games. And you can use Qt to write some. Questions? Ask here.
    873 4k
    873 Topics
    4k Posts
    M
    Hi everyone, I'm currently working on a small hobby project inspired by "Totally Accurate Battle Simulator" but adapted for mobile devices using Qt 6 and QML. The working title is TABS Pocket Edition — it's just a fun prototype to test ragdoll physics, AI pathfinding, and multiplayer sync in a mobile context. One challenge I'm facing right now is optimizing the physics simulation when multiple ragdoll entities are colliding in close proximity. On some devices, the frame rate drops significantly once there are more than ~20 active units. So far, I've tried: Reducing the physics tick rate from 60Hz to 30Hz. Switching from per-bone collision to simplified capsule colliders. Disabling physics for off-screen units. These help a bit, but large battles still cause spikes. My questions: Has anyone implemented ragdoll physics efficiently in Qt/QML for mobile? Is there a way to offload part of the simulation or use a hybrid approach between keyframe animation and real physics? If anyone wants to see the current prototype in action, I've uploaded a playable build here: https://modhello.com/tabs-pocket-edition Thanks in advance for any tips!
  • Questions about Qt WebKit and related topics? Post here!
    2k 6k
    2k Topics
    6k Posts
    JonBJ
    @Vbrg So in a word Qt only offers integrated browser with chromium/Qt web engine.
  • Discussions and questions on QtWebEngine
    1k 4k
    1k Topics
    4k Posts
    P
    @Christian-Ehrlicher Thank you, I compiled the source code as you said, it works
  • You're using Qt with other languages than C++, eh? Post here!
    865 3k
    865 Topics
    3k Posts
    PedromixP
    Brand new release QtJambi 6.9.1 is out now🥂. Create sophisticated Java apps for Desktop and Mobile or refactor your legacy code using Qt as UI framework! https://www.qtjambi.io [image: cb78556c-b761-467b-b005-119e3643175c.png]
  • Combining Qt with 3rd party libraries or components? Ask here!
    1k 6k
    1k Topics
    6k Posts
    S
    you shoule choose Quick Scenes> Items. [image: 171d9f7c-ca85-4766-9747-fde06ca3a995.png]
  • For discussion and questions about Qt for Python (PySide & Shiboken)

    3k 15k
    3k Topics
    15k Posts
    K
    @JonB Thanks for the suggestion. That kinda seems to work and the checkbox is no longer overlapped with the text, but the resizeColumnstoContents() still seems to be taking into account of only the size of the text and I'm not sure how to recalculate that as I dont see sectionSizeHint() or sectionSize() being called. I added this right before the super() call: if logicalIndex in self.checkboxes: rect.adjust(23, 0, 0, 0) [image: 28b099a9-8165-4bc2-9547-74044338bd8e.png]
  • Specific issues when using Qt for WebAssembly

    456 2k
    456 Topics
    2k Posts
    KyefK
    Thank you @jsulm for the response. Here is my CMakeLists.txt below: CMakeLists.txt cmake_minimum_required(VERSION 3.16) project(demoApp VERSION 0.1 LANGUAGES CXX) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_AUTOMOC ON) set(QT_QML_GENERATE_QMLLS_INI ON) find_package(Qt6 6.4 REQUIRED COMPONENTS Quick Network Sql WebSockets ) # find_package(MySQL REQUIRED) qt_standard_project_setup(REQUIRES 6.4) qt_policy(SET QTP0001 NEW) qt_add_executable(appdemoApp main.cpp ) qt_add_qml_module(appdemoApp URI demoApp VERSION 1.0 RESOURCE_PREFIX / SOURCES mainworker.h mainworker.cpp applogger.h applogger.cpp icons/Resource.qrc QML_FILES Main.qml Login.qml Userreg.qml ) # Qt for iOS sets MACOSX_BUNDLE_GUI_IDENTIFIER automatically since Qt 6.1. # If you are developing for iOS or macOS you should consider setting an # explicit, fixed bundle identifier manually though. set_target_properties(appdemoApp PROPERTIES # MACOSX_BUNDLE_GUI_IDENTIFIER com.example.appdemoApp MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION} MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR} MACOSX_BUNDLE TRUE WIN32_EXECUTABLE TRUE ) target_link_libraries(appdemoApp PRIVATE Qt6::Quick PRIVATE Qt6::Network PRIVATE Qt6::Sql PRIVATE Qt6::WebSockets ) include(GNUInstallDirs) install(TARGETS appdemoApp BUNDLE DESTINATION . LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} ) I was thinking I could be linking to a wrong library and mysql include directory however, Cmake runs the configurations very well and indicated MYSQL:MYSQL is found.
  • Discussions and questions about Qt Quick Ultralite and using Qt on microcontrollers in general

    142 445
    142 Topics
    445 Posts
    jsulmJ
    @Vishal-Biradar said in Code is getting reset.: But after certain period code is resting means display is getting off again restart Do you mean your app is crashing? The OS is restarting? Please say exactly what happens. Regarding your code: using an endless loop in an event driven application is a no-go...
  • The forum for discussing the Qt Digital Advertising Platform

    17 40
    17 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

    10 19
    10 Topics
    19 Posts
    jsulmJ
    @Alejandro_qt_ Here is an example how to build qtbase module: https://stackoverflow.com/questions/50022325/building-qt-module-from-source