Skip to content
  • 144k Topics
    722k Posts
    S
    I wrote an app using Qt5 Designer without layouts. It works fine, but resizing the screen does not reposition and resize the individual widgets. They stay in the upper left corner. I would like them to resize. I understand that I will need to use nested layouts to get the look that I want. My problem is with textboxes in layouts: I have a line of 5 labels. I can select them and add a horizontal layout to them and it does what I expect. I get 5 columns, each with a label of close to the same size as the originals. I have a row containing buttons, labels and a date selector. If I select them and apply a horizontal layout it also does what I would expect. I will need to add a spacer, or two, to get exactly what I want, but that is easy to do. I have ten rows of five textboxes each. If I select a row of textboxes and apply a horizontal layout, all of the textboxes change size to 256 x 192 (they were 60 x 26 before applying the layout). The same thing happens if I select a column of textboxes and apply a vertical layout, or if I select all of the textboxes and apply a grid layout. What do I need to do, either to the textboxes before I apply the layout, or to the layout after application, to get the textboxes to keep their original size (like every other control seems to) and yet resize when the program is running and I resize the window?
  • Jobs, project showcases, announcements - anything that isn't directly development
    4k 23k
    4k Topics
    23k Posts
    JKSHJ
    @raulgd It helps to identify the purpose and composition of each channel. This forum is a community forum for Qt users to help each other to use the existing Qt API. Questions are mainly answered by community volunteers in their spare time. The Development mailing list (https://lists.qt-project.org/listinfo/development) is where stakeholders discuss the details of implementing new features in the Qt framework itself (such as Apple Liquid Glass styling). The Support Center (https://account.qt.io/s/support-center) is where commercial license holders can talk to support engineers whose job is to provide technical support for Qt Company customers. getting replies from someone from Qt @jsulm is a community member who is unaffiliated with the Qt Company. Anyway, as for your original question, please see https://forum.qt.io/topic/162394/qt-and-apple-glass-ui-in-macos-26/9 (Tor Arne is an engineer from the Qt Company)
  • Everything related to designing and design tools

    127 382
    127 Topics
    382 Posts
    R
    I see this is an old thread and I see several unresolved threads on this topic. I'm leaving this incase it helps someone else who ends up here. The solution was twofold for me. Go to File > Export Project and select Enable Python Generator. This will create a main.py. Make sure you pip install PySide6-DS Hope this helps someone.
  • Everything related to the QA Tools

    76 212
    76 Topics
    212 Posts
    A
    Hello, we're using the squish teamcity plugin and were wondering whether it was possible to configure the test report a bit more to our liking. We'd like the JUnit XML report and disable the other reports. It seems that in the TC build step it isn't possible to add/override the --reportgen option: [image: 8219c95e-dd8d-4dd6-93e9-72024cd65943.png] What are our options? Cheers, Adam
  • Everything related to learning Qt.

    379 2k
    379 Topics
    2k Posts
    T
    I can't edit my previous message now but I finally managed to run the program. It seems that the file path was too long, and by renaming my project to "Challenge1" (it was previously called "QML-for-Beginners-Challenges-Intro-to-QML"), it worked.
  • 2k Topics
    13k Posts
    SGaistS
    Hi, I think you went the too complicated road: quint16 calculateCrc16Arc(const QByteArray &data) { quint16 crc = 0x0000; const quint16 poly = 0xA001; for (char byte : data) { crc ^= (static_cast<quint8>(byte)); for (int i = 0; i < 8; i++) { crc = (crc & 0x0001) > 0 ? (crc >> 1) ^ poly : (crc >> 1); } } return crc; }
  • 4k Topics
    18k Posts
    SGaistS
    Excellent ! Merci pour le pointeur La gestion des écrans n'est jamais chose aisée. Spécialement depuis l'avènement des DPis de hautes valeurs.
  • This is where all the posts related to the Qt web services go. Including severe sillyness.
    1k 10k
    1k Topics
    10k Posts
    SGaistS
    @RokeJulianLockhart to the best of my knowledge, no. The first release of Discourse was in 2014 and the forum is several years older than that.