Skip to content

Qt Development

Everything development. From desktop and mobile to cloud. Games, tools, 3rd party libraries. Everything.
144.3k Topics 723.3k Posts
Qt 6.11 is out! See what's new in the release blog

Subcategories


  • This is where all the desktop OS and general Qt questions belong.
    84k 460k
    84k Topics
    460k Posts
    V
    Hi all, I'm looking into implementing drag'n'drop defaults and customization points in QRangeModel. In the spirit of QRangeModel, the logic to "do stuff with data" should be close to the data type, rather than land in a subclass of QRangeModel. Drag'n'drop in QAIM manifests itself in 4 virtual functions: QStringList mimeTypes() returns a list of mime types that the model can "work with" in both directions QMimeDate *mimeData(const QModelIndexList &indexes) const encodes the data at indexes into one, some, or all of the mimeTypes - that's up to the model bool canDropMimeData(data, action, row, column, parent) and dropMimeData(..) then handle the drop into a specific location, the interpretation of which is documented convention rather than an enforced rule In addition there are relevant flags in Qt::ItemFlags, and then of course the interaction with the views, which is not relevant for this work (or at least out of scope for now). If you have overridden those APIs for your own models, what did you find difficult, what did you find most limiting, and what stood out as straight forward and easy to do? Customization of QRangeModel is done by specialising the QRangeModel::RowOptions and/or QRangeModel::ItemAccess templates for your own row- and item- types. So we have some flexibility to come up with a better set of APIs, as long as we can map the 4 virtual functions to whatever we end up with. Drop a comment here or at https://qt-project.atlassian.net/browse/QTBUG-145800 Cheers, Volker
  • Looking for The Bling Thing(tm)? Post here!
    20k 78k
    20k Topics
    78k Posts
    C
    The program we develop can open/handle different projects, these projects are loaded via a Loader {} The loaded QML project files access other project specific QMLs with locally imported directories e.g. import "devices" as Devices Where devices is a folder relative to the QML file that uses the import. This kind of import works for weeks(the program is running 24/7 at a customer) and the code can access the QML files inside the import e.g. Devices.Lan etc... However sometimes after a long time for some reason the Devices import will be undefined and all other local folder imports as well. These local folders only have qmldir file in them if there are Singleton QML files e.g. singleton Lan 1.0 Lan.qml The projects and their QMLs are not included during build Qt 6.7.3, mingw 11.20, Windows 11 Have anyone experienced this? Some AI suggestion for this problem was (I couldn't find anything about this problem): Creating proper qmldir files for each folder Build the program with QML_DISABLE_DISK_CACHE=1 flag Add every folder path to qml import paths I haven't tried the above suggestions yet as I haven't been able to reproduce the problem locally. But just in case someone has some insights/ideas I wanted to post here, any kind of discussion might help.
  • The forum for developing everything embedded: Linux, WinCE, Symbian, MeeGo... you name it.
    14k 63k
    14k Topics
    63k Posts
    G
    My project develop used widget C++. I am portting the program to Android. I have an issue with QComboBox on Android:when the dropdown list pops up, touching the list items has no response and cannot select any option.
  • This is a discussion space for

    • for audio / video playback and recording
    • media formats and codecs
    • camera and screen sharing functionality
    51 222
    51 Topics
    222 Posts
    V
    I have been having this same issue with my Bluetooth headset not being detected
  • Have a question about Qt Creator, our cross-platform IDE, or any of the other tools? Ask here!
    8k 36k
    8k Topics
    36k Posts
    K
    @galkinvv Thanks for your workaround for this. It got me up and running. According to this We should be able to use mount-libexec and libexec-mount-point for this. However, I tried them and they don't work. Have you found out anything more about this? Kevin
  • 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
    SGaistS
    Hi, Glad you found out and thanks for sharing the solution ! You can close the thread yourself by using the Topic Tools button or the three dotted menu beside the answer you deem correct :-)
  • What can we say - we like games. And you can use Qt to write some. Questions? Ask here.
    875 4k
    875 Topics
    4k Posts
    K
    Okay, thank you for your efforts. I will close this issue now as "Not possible to support legacy hardware with a Qt6.8 Setup". Minimum requirements: Direct3D11 or GLSL best regards, kevin_d
  • Discussions and questions on QtWebEngine
    1k 4k
    1k Topics
    4k Posts
    T
    @SGaist the cross compilation of the libraries fixed the prob
  • You're using Qt with other languages than C++, eh? Post here!
    869 3k
    869 Topics
    3k Posts
    PedromixP
    [image: bdbda216-f9b8-469f-b90d-0e6b273560de.png] New version QtJambi 6.10.2 is available now πŸŽ‰. For all who want to create smart UIsπŸš€ in Java or Kotlin based upon the latest Qt release. https://www.qtjambi.io/
  • For discussion and questions about Qt for Python (PySide & Shiboken)

    3k 15k
    3k Topics
    15k Posts
    SGaistS
    Hi and welcome to devnet, This module would rather go into the PySide6-Addons package. I would start by checking whether it's available there. From a quick look at the package page, it seems that this is not the case. If not, check whether the bug tracker already contains something related. If not, open a feature request to track the work. Then you can follow the Qt Contribution guidelines to submit a patch. Thanks for your contribution !
  • Specific issues when using Qt for WebAssembly

    465 2k
    465 Topics
    2k Posts
    Joe von HabsburgJ
    You can try this : QNetworkAccessManager _manager; _manager.setAutoDeleteReplies(true);
  • Discussions and questions about Qt Quick Ultralite and using Qt on microcontrollers in general

    156 476
    156 Topics
    476 Posts
    G
    I am working on a Qt for MCUs application and currently using OTF font files with the Static font engine. The font quality is good with OTF, but internal flash usage becomes very high. When I use FMP fonts, flash usage is low, but some glyphs do not render properly. Any guidance on the correct approach to move OTF font storage to external memory would be very helpful. Thank you.
  • Combining Qt with 3rd party libraries or components? Ask here!
    1k 6k
    1k Topics
    6k Posts
    GrecKoG
    /edit by moderator: removed spam link Should have removed the whole post, those are most likely not actual problems occuring to OP, too vague and generic.
  • The forum for discussing the Qt Digital Advertising Platform

    16 41
    16 Topics
    41 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

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