Skip to content
  • 142k Topics
    710k Posts
    cristian-adamC

    Just add --verbose to the CMake build step. See below for details:

    qtcreator-makefiles-verbose.png

  • Jobs, project showcases, announcements - anything that isn't directly development
    4k Topics
    22k Posts
    PedroP

    Is it a friend of yours?
    A work colleague?
    Someone who helped you on the Qt Forum?
    Who deserves the title of Qt Champion of 2024? 🏆

    As the end of the year approaches, it is time to look back and recognise those people who have significantly contributed to the Qt Project and its community.
    Here are some of the categories and reasons you can nominate someone:

    Fixer: periodically contributing with quality patches and fixing the nastiest of bugs

    Rookie: started contributing this year and has already been noticed by other contributors and maintainers

    Community Builder: those who contribute to a better sense of belonging in the community, be it by helping newcomers, organising community meetups or managing channels.

    The full list of categories can be found on the nomination page.

    How does the nomination process work?
    First, you can go to our wiki and nominate someone.
    Make sure to include their name, the category (or categories!), and the reason why you are nominating them.
    Nominations will be open until the 15th of December 2024.
    After that, the Community team and our Lifetime Champions will get together and validate the nominations.
    Soon after you should expect an official announcement from us.

    What's in it for our Qt Champions?
    The title comes with its perks.
    Our 2024 Qt Champions will receive Qt Champion items and a full Qt license for a year. So yeah, nominating someone is a great way to reward members for their contributions!

    We are looking forward to your nominations.

    Ready? Nominate someone now.

  • Everything related to designing and design tools

    109 Topics
    338 Posts
    J

    @James-Gallegos It works, Thanks

  • Everything related to the QA Tools

    63 Topics
    182 Posts
    V

    Hello, I'm trying to generate the profiling results for the NXP S32K3XX MCU using Coco with GHS compiler and I can only generate the .csmes and .csexe file containing the code coverage data (by the way, the code coverage results are perfect). It seems that only adding the "--cs-function-profiler=all" command line parameter is not enough to generate the profiling data or this platform is not yet supported for profiling. Could you please clarify if this platform is supported or not? If it is supported, could you please help me figure it out why the profiling results are not being collected and stored in the .csexe file? Thank you in advance.

  • Everything related to learning Qt.

    380 Topics
    2k Posts
    Ash_QtA

    Hey Everyone!

    Let's go through some of the new courses on Qt Academy, what updates have been made, and what to look forward to moving forward!

    Model View Delegate with QML

    Get to grips with the Model View Delegate (MVD) pattern in QML and the Qt framework, gaining the skills to manage and display complex data effectively. Through hands-on projects, you’ll explore the relationship between Models, Views, and Delegates, using Qt’s built-in and custom components to present dynamic data in a structured format. By course end, you’ll create a functional weather app that showcases real-time data interaction, integrating live weather data into an intuitive user interface.

    Basic Views in Qt Design Studio

    Take your first steps and explore the basics of Qt Design Studio, learning to navigate its UI, essential tools, and various workspaces. By course end, you’ll confidently navigate the Qt Design Studio workspace, gaining familiarity with its interface and essential tool locations. This course is ideal for newcomers to Qt Design Studio with some background in design tools.

    Creating Responsive Layouts in QML with LayoutItemProxy

    In this course, you’ll delve into Proxy Layouts, a technique for building responsive layouts in QML. Starting with an overview of responsive design principles, you’ll explore the LayoutItemProxy Type and learn to apply it in various practical scenarios. Ideal for those eager to advance their UI development skills in QML, this course covers using Proxy Layouts to create adaptable, responsive interfaces.

    This course was developed by Spyrosoft, experts in delivering successful Qt projects across industries. Published on Qt Academy with Spyrosoft’s permission, this material showcases their depth of expertise in Qt technologies, including Qt/QML, Qt 3D, and more.

    Let's Get Thready! Multithreading with Qt

    The course has been updated with new explanations and improved examples, to help you better understand atomic_flag and RAII. Some quiz questions and answers have been updated to reflect these changes.

    How to Install Qt

    Screenshots and instructions have been updated to reflect changes to the installion process.

    General Polishing

    We have been working on polishing the courses, updating the content and improving the overall experience with code examples, code snippets and quizzes based on your feedback!

    Please make sure you leave reviews on the courses you take, as it helps us improve the content and make it more relevant to you.

    More content is always in progress, we have upcoming courses on QML, Qt Design Studio, and more! We are always looking for feedback on what you would like to see, and looking for great people within the community to help us grow.

    If you want to stay in touch, visit the academy homepage and sign up for the newsletter! qt.io/academy. You can view the whole catalog here too.

    ~ Ash

  • 2k Topics
    12k Posts
    S

    It might work right now, but will not in the future.

    There is a new feature coming to C++26 (https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2795r3.html) which addresses a problem related to this. Currently if you do something like this

    void f() { const char password[] = "secret"; } void g() { char str[7]; std::cout << str << '\n'; } int main() { f(); g(); }

    it will most likely print secret. Both functions will use the same stack space and reuse the same memory. The proposal for C++26 is to handle uninitialized variables explicitly to avoid this problem.

    On the other hand this also means in your concrete case if some other function reuses the same stack space it will overwrite \x11\x01\x1E\xD0.

    Someone should check the following with the standard, but I believe there is a difference between

    char serialNumberCommand[] = "\x11\x01\x1E\xD0";

    and

    char *serialNumberCommand = "\x11\x01\x1E\xD0";

    I would expect the first version to copy the string into the serialNumberCommand array. In the latter case you are just holding a pointer to an existing string in static storage. This pointer can then be handed safely to QByteArray::fromRawData as QByteArray will not hold the pointer handed to it, but the thing it points to. The thing it points to should be permanent. (I am not sure it the C++ standard guarantees this, but it is the general implementation of C strings.)

    If you want something more fancy, there is not only constexpr but also constinit (since C++20). cppreference (https://en.cppreference.com/w/cpp/language/constinit) mentions that constinit declares a variable with static or thread storage duration. However, as the example on that page shows, you need to write static constinit inside a function. Just constinit alone will not do.

  • 4k Topics
    17k Posts
    V

    各位先進前輩好,

    小的近期在windows作業系統上研究用Qt開發觸控軟體,

    其中一個需求是希望可以做到像windows的Kiosk模式,不論軟體發生甚麼錯誤 (除了crash和硬體錯誤之外),都可以不彈出與顯示錯誤提醒視窗

    研究到目前為止,所收集到的資訊與測試結果,好像可以做到但不是很確定。

    因此想請問一個問題:Qt是不是可以在不使用任何QMessageBox/QDebug或其他win32 Message API的狀況下,達到像Kiosk模式不顯示任何的錯誤提醒視窗 (除了crash和硬體錯誤之外) ???

    Vance Wang

  • This is where all the posts related to the Qt web services go. Including severe sillyness.
    1k Topics
    10k Posts
    S

    @JonB said in Frequent unresponsiveness of this site:

    heroku

    Oh well, I remember that one! About two or three weeks ago I had trouble opening the webpage at all on two different days. It just wouldn't load. I used different websites to check if it was just down for me and the majority of those pages claimed that the Qt forum was up an running. Pinging forum.qt.io would would send a response from heroku. Didn't have any problems recently (no slow downs, no unresponsive/unreachable webpage).