Skip to content
Qt 6.12 LTS is out! See what's new in the release blog
  • 145k Topics
    725k Posts
    L
    @KH-219Design said in How to get current file name with extension?: From this older post: https://forum.qt.io/topic/122818/get-file-name-line-number-and-function-name-in-qml-javascript-how I learned that this is possible in QML: const e = new Error() console.log(e.stack) Sample output: expression for myCustomPropertyName@file:///long/path/to/my/qml/VersionLabel.qml:28 The older forum thread has additional ideas for parsing the string if you prefer to see only a substring of what is in Error().stack or here is how it looks when the QML file is compiled into the C++ app binary: expression for myCustomPropertyName@qrc:/qml/VersionLabel.qml:28 Took a look but it seems that if you have a file that does this and is called by another QML file it'll stack the expression to that file as well. For example if I call it from a file called Page.qml but the error stack is called from Settings.qml I'd get Debug: expression for onCompleted@file:///Settings.qml:14 expression for onCompleted@file:///Page.qml:103 So I'd guess I'd need to some how parse the first line of the stack
  • Jobs, project showcases, announcements - anything that isn't directly development
    4k 23k
    4k Topics
    23k Posts
    P
    The app is out of public beta. The link to download is: https://storyserver.polywickstudio.net/downloads/ Roadmap: https://storyserver.polywickstudio.net/docs/roadmap/ Version History: https://storyserver.polywickstudio.net/docs/roadmap/briefhistory/ The software is off-line first, the databases (the application creates) is stored on your local computer. Note: links updated.
  • Everything related to designing and design tools

    133 403
    133 Topics
    403 Posts
    A
    Thanks a lot for all this information. It has helped me get clarity on the questions that have been bugging me for weeks. I can now decide better what I want to do, and why. I will definitely share these with them ideas about unifying the UI for mobile and desktop with Qt, as it seems like it doesn't necessarily warrant replacing starting their application from scratch, only their UI code will get replaced (and its bindings).
  • Everything related to the Software Quality Tools

    97 272
    97 Topics
    272 Posts
    C
    @VerEng can you try to perform the click on the actual computer, instead of through remote control? I seem to recall cases where use of remote control tools interfered with the click that is meant to pick.
  • Everything related to learning Qt.

    402 2k
    402 Topics
    2k Posts
    M
    [image: 01776ece-1308-4e3c-98fd-2749b3a4e221.png] Challenges faced: So when it came to building the d-pad, I was absolutely lost and was trying to approach this problem by drawing and arc instead and so I was reading about PathArc, and so it was getting so complicated, then I did see how it was implemented in the solution. repo: https://github.com/Meehir5907/QML-for-Beginners-Challenges/tree/Intro-Qt-Quick-My-Sol/StartingProject
  • 2k Topics
    13k Posts
    SGaistS
    Please check with the Gerrit admins if that is doable.
  • 4k Topics
    18k Posts
    JonBJ
    @lacombe said in Création de fenêtres avec des widget: return QCoreApplication::exec(); QCoreApplication Class The QCoreApplication class provides an event loop for Qt applications without UI. ? QApplication a(argc, argv); ... return a.exec();
  • This is where all the posts related to the Qt web services go. Including severe sillyness.
    1k 10k
    1k Topics
    10k Posts
    M
    I had the same “You are not authorized” error when trying to create a Jira ticket. AlexBlasche’s fix works perfectly, use the direct login URL first