Skip to content
  • 0 Votes
    1 Posts
    1 Views
    No one has replied
  • Valeur des variables QString en déboggage

    Unsolved French about 3 hours ago
    0 Votes
    2 Posts
    18 Views
    @Max Pour moi ca marche bien: [image: cbb6ebe6-9f82-4a6b-b773-e618e6ce400d.png] J'utilise le Qt 6.4 ou 6.5 qui vient avec Ubuntu 24.04. Je n'ai ni votre _empty ni votre d sous un QString lorsque je le vois. Je ne sais pas pourquoi nos situations diffèrent.
  • 0 Votes
    1 Posts
    10 Views
    No one has replied
  • I hear crickets chirping

    Unsolved C++ Gurus about 7 hours ago
    0 Votes
    8 Posts
    62 Views
    @J.Hilk How come "C++26" is "6 years away"? Not 2026? Or does it get "adopted" next year but not "rolled out fully" for another 6 years/you are being ironic?
  • 0 Votes
    1 Posts
    15 Views
    No one has replied
  • 0 Votes
    2 Posts
    34 Views
    @Shap said in Textboxes change size when layout added in Qt5 Designer: What do I need to do Add a spacer to the right and at the bottom of the layout with these text boxes
  • 0 Votes
    1 Posts
    26 Views
    No one has replied
  • 0 Votes
    2 Posts
    41 Views
    @AndyE0 said in Qt6 and QT_ENABLE_HIGHDPI_SCALING: When I say all scaling disappears, I mean the Windows Scale setting in System->Display (Windows 11 by the way) Do you mean that setting in Windows settings is disabled? You did not say what problem you're trying to solve. Also, keep in mind that QT_ENABLE_HIGHDPI_SCALING is for testing purposes only as stated in the doc you cited.
  • Add resource file (*.qrc) to static library. How?

    Unsolved General and Desktop a day ago
    0 Votes
    3 Posts
    67 Views
    @bogong said in Add resource file (*.qrc) to static library. How?: How to add *.qrc files to library and how to use it in the main project? You would use qt_add_resources() for *.qrc files: https://doc.qt.io/qt-6/qt-add-resources.html However, if your *.qml files are inside a *.qrc then you won't get the full benefits of qt_add_qml_module() (such as optimization via the Qt Quick Compiler: https://www.qt.io/blog/the-numbers-performance-benefits-of-the-new-qt-quick-compiler). It is better to move all your files out of the *.qrc, and directly into the qt_add_qml_module(): qt_add_qml_module(${A_NAME_TARGET} URI Library_v1 QML_FILES ATestQML.qml BTestQML.qml RESOURCES myimage.png myotherimage.png )
  • 0 Votes
    4 Posts
    59 Views
    @jsulm Yes my app should send this file via email or a messanger.
  • Web Engine not working and Qt6_FOUND to FALSE

    Unsolved QtWebEngine 2 days ago
    0 Votes
    2 Posts
    33 Views
    Mingw does not provide webengine. You have to use msvc
  • 0 Votes
    3 Posts
    55 Views
    @Kent-Dorfman Thank you for your very practical suggestion. You're right—Qt or Python would mostly serve for data display or the user interface, while the core simulation engine itself would not really depend on the chosen platform. Regarding best practices in simulation, I fully agree with your point about having an internal “clock” or “counter” to ensure determinism and the ability to restore the simulation to a specific state. This is indeed a fundamental principle in serious simulation systems. As for the NKTg Law, its formulas are inherently tied to time and the rate of change of mass (dm/dt). That’s why, during my experimental tests, I also pay close attention to specific time points to ensure accuracy and repeatability. In fact, the rate of inertia variation in NKTg itself naturally acts as an “internal clock” for the system. Thank you again for your valuable input—I’ll continue refining the simulation aspect further.
  • 0 Votes
    7 Posts
    109 Views
    @Perdrix said in QProcess::terminate() or QProcess::close(): All well and good but that presumes that the process in question accepts input asking it nicely to close (probably on re-directed stdin). In this case the help display process doesn't support that. I've now changed to use start() instead of startDetached() Actually that's not entirely true. For a normal command line program it would terminate on its own, such as "ls, ps ax, df,...whatever", but in your case it's a little different. The POSIX way to tell a child to die gracefully is to send it a kill signal, which is different from using close/terminate. kill(pid, SIGTERM) kills a process, and can be trapped by the child to do cleanup. But in all fairness the QProcess::close() probably does that implicitly, whereas QProcess::terminate() is not "nice" about it.
  • 0 Votes
    5 Posts
    53 Views
    And why do you don't use english in the bug report? Please fix.
  • WebEngine doing stuff I don't think it should be.

    Unsolved QtWebEngine 2 days ago
    0 Votes
    1 Posts
    18 Views
    No one has replied
  • ChartView LineSeries and model data

    Unsolved QML and Qt Quick 3 days ago
    0 Votes
    2 Posts
    46 Views
    Have you looked at HXYModelMapper/VXYModelMapper? I haven't used these yet myself but from what I understand, they should fit with your use case. There is a widgets example here https://doc.qt.io/qt-6/qtcharts-modeldata-example.html, which might be adaptable to QML.
  • 0 Votes
    6 Posts
    93 Views
    @SMF-Qt I linked my test app against the missing library and it got included in the APK (hack). Now on the many occasions that the debugger does not end up on my break point in main() the following output is noted: D/qt.core.plugin.factoryloader: Got keys from plugin meta data QList("QMYSQL", "QMARIADB") D/qt.core.library: "/data/app/~~_QyhJ1cKweD6lRFr4k41Ew==/org.qtproject.example.QtTest2-ePOSiRm0FDBZIpSntSqqtQ==/base.apk!/lib/x86_64/libplugins_sqldrivers_qsqlmysql_x86_64.so" loaded library I/default : main() returned -1 D/VRI[QtActivity]: visibilityChanged oldVisibility=true newVisibility=false F/libc : FORTIFY: pthread_mutex_lock called on a destroyed mutex (0x71a943802ab8) F/libc : FORTIFY: pthread_mutex_lock called on a destroyed mutex (0x71a943802ab8) F/libc : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 4670 (hwuiTask1), pid 4443 (example.QtTest2) F/crash_dump64: crash_dump.cpp:627] failed to attach to thread 4670, already traced by 4562 (/data/user/0/org.qtproject.example.QtTest2/lldb-server) F/libc : crash_dump helper failed to exec, or was killed 19:31:41: Debugging of has finished. 19:31:42: Android target "org.qtproject.example.QtTest2" died.
  • How to create a TableView in QML

    Unsolved General and Desktop 4 days ago
    0 Votes
    2 Posts
    53 Views
    in fact you need two structures : one core structure containing all the data, called the model, and a UI component displaying the data from the model. It is bit more complex and time consuming to setup than an excel/libreoffice spreadsheet, but much more lightweight and offers you more control and more protection on how data are displayed or edited, which cells are editable. creating a view in TableView { id: tableView anchors.fill: parent // or whatever anchoring/positionning/layout you want model: yourTableModel // should be declared nearby } Please note that TableView on it's own doesn't provide horizontal and vertical headers, you have to add VerticalHeaderView and HorizontalHeaderView manually. https://doc.qt.io/qt-6/qml-qtquick-controls-verticalheaderview.html for the model, you have two options : either you subclass QAbstractTableModel, adding a QML_ELEMENT macro after Q_OBJECT, and declaring those source files in a qt_add_qml_module directive in CMakeLists.txt The TableView documentation provides a minimal example of a model that can be used in a QML view : https://doc.qt.io/qt-6/qml-qtquick-tableview.html or you can use the ListModel QML element if your model isn't much complex. Option one is usually advised for production. Option two is often used by UI dev to supply a sample model to work on the view itself.
  • 0 Votes
    6 Posts
    123 Views
    @Kent-Dorfman, yeah, it would be if these were part of a program. However, these are my own files manually-created files in my own data drive. Being able to manage them in a Qt-based file manager (like KDE's Dolphin) would be useful. A human can't feasibly interface with a database for every file transfer, and I don't want to fork Dolphin to add something so niche to it just for me, since that really wouldn't help anyone else.
  • Shadow around an Item

    Unsolved QML and Qt Quick 4 days ago
    0 Votes
    7 Posts
    83 Views
    Solved via RectangularGlow from Qt5Compat.GraphicalEffects for now as MultiEffect is buggy and unusable now: RectangularGlow { anchors.fill: item glowRadius: 15 spread: 0.4 color: "#9B9B9B" cornerRadius: 12 /* item radius */ + glowRadius }