Skip to content
  • 143k Topics
    719k Posts
    J
    When i open the program, it doesn't load anything and crashes back to desktop. Trying to run it through the command line gives me these errors: Failed to create Vulkan instance: -9 Failed to create platform Vulkan instance Unable to detect GPU vendor The following paths were searched for Qt WebEngine resources: /share/qt6/resources /share/qt6 /usr/bin /home/jjbbss/.anglefish but could not find any. You may override the default paths by using the QTWEBENGINE_RESOURCES_PATH environment variable Aborted (core dumped) Any ideas
  • Jobs, project showcases, announcements - anything that isn't directly development
    4k 23k
    4k Topics
    23k Posts
    Christian EhrlicherC
    So you only registered to cry about cmake? Wow... Please stop this spam.
  • Everything related to designing and design tools

    129 391
    129 Topics
    391 Posts
    J
    In QT Design Studio, Tab Buttons are mostly for navigation within the UI, but each tab doesn’t automatically hide other content. Usually, a StackView or Loader is needed to switch visible content depending on the active tab.
  • Everything related to the QA Tools

    83 223
    83 Topics
    223 Posts
    Z
    @JonB Thank you!
  • Everything related to learning Qt.

    389 2k
    389 Topics
    2k Posts
    jeremy_kJ
    @Lopher said in Are the example images of padding and inset correct?: Shouldn't the padding area be between the red Background and the blue Content item? Why does it here refer to the distance directly from the outside to the content area? Is this correct? Or is my understanding correct? Inset is the distance between a component and the outside, while padding is the distance between the Background and the Content item. Is that the Control layout diagram? If not, I'm out of wild guesses. The diagram is correct. The documentation for Control.padding appears to have been written without considering non-0 insets. test.qml: import QtQuick import QtQuick.Controls Window { width: 200 height: 100 visible: true Control { id: control anchors.fill: parent leftInset: 10 leftPadding: leftInset * 2 contentItem: Rectangle { color: "light blue" Text { text: "contentItem.width:" + control.contentItem.width + "\nbackground.width:" + control.background.width + "\ncontrol.width:" + control.width } } background: Rectangle { color: "red" } } } [image: 24a08f53-8b8e-4010-96c2-36a64ff9c6e2.png]
  • 2k Topics
    13k Posts
    Chris KawaC
    It is syntactically correct (just an expression of type void), but it's a case of what I would call "clever code" (not a compliment). It lessens readability and kinda hides the real action in a side effect of an operator for the sake of... yeah, being clever I guess, as it's not even shorter or anything. Another example of this I've seen is the "clever" use of comma operator: std::cout << calculate42(), calculate43(); Without looking it up - do you remember what gets printed?
  • 4k Topics
    18k Posts
    GrecKoG
    Le [=] n'étant pas nécessaire ici vu qu'il n'y a rien à capturer dans la lambda. connect(obj1, &MyObject::mySignal , this, [](int arg1){ qDebug() << arg1; });
  • This is where all the posts related to the Qt web services go. Including severe sillyness.
    1k 10k
    1k Topics
    10k Posts
    N
    Please kindly change it to “ntninja”. The old name has SHA-256 hash “27f1e1e6277cc13bfc65294c7af80d2d6bbe23c42eb2ed426547fbe6311e55c4” (no newline in input) and shall not be named, thank you.