Styling Qt Widgets Using Qt Stylesheets

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ต.ค. 2024

ความคิดเห็น • 12

  • @TimGrob
    @TimGrob ปีที่แล้ว

    the library qt-material for Pyside, which also uses qt advanced stylesheet, seems to give you a lot of flexibility where you can also add padding etc.

  • @JDguimaraes88
    @JDguimaraes88 ปีที่แล้ว +1

    Hi!
    Is it possible to use QtQuick.Controls.Styles of Qt5 in the new Qt6?

    • @KDABtv
      @KDABtv  ปีที่แล้ว +1

      Hi!
      In short: no. QtQuick.Controls.Styles is part of QtQuick Controls 1, which have been deprecated in Qt 5 and removed in Qt 6. Take a look at doc.qt.io/qt-5/qtquickcontrols2-differences.html for the differences, and doc.qt.io/qt-6/qtquickcontrols-changes-qt6.html for what is new regarding Controls in Qt 6.

    • @JDguimaraes88
      @JDguimaraes88 ปีที่แล้ว

      @@KDABtv thanks ;)

  • @sergeygrechishnikov282
    @sergeygrechishnikov282 ปีที่แล้ว

    Hi David, thanks for the video.
    Please tell me, is it possible to use Qt Stylesheets for QGraphicsObject objects?

    • @DavidFaure
      @DavidFaure ปีที่แล้ว

      QGraphicsObject is a graphics item that can be put into a layout. Graphics items define their own painting (see their paint method), so the answer would be no, no support for widget styles or stylesheets there. The only relation between QGraphicsView and widget styles is QGraphicsScene::setStyle, which defines the widget styles to apply to QGraphicsWidgets (which are QWidgets embedded into the QGraphicsView scene). And in fact this method only support widget styles, not stylesheets.

  • @desarrollou71x72
    @desarrollou71x72 ปีที่แล้ว

    i can´t find a video-tutorial or even a text-based tutorial about creating a web site using Qt for WebAssembly, i mean, creating headers, banners, carrousels, and such... im pretty sure all of these items can be done in Qt, but is a bit tricky to get all well arranged in browser!. do you plan to create some content like this someday?.. thanks..

    • @KDABtv
      @KDABtv  11 หลายเดือนก่อน +1

      Hi
      Thank you for taking the time to suggest this video idea. We're always open to feedback and new content suggestions from our audience. We'll definitely do some research on your idea, but please understand that we can't guarantee the production of a specific video in the immediate future. Our content creation process is influenced by several factors, including audience interest and available resources. Your input is valuable to us, and we'll continue striving to create content that resonates with our viewers. We appreciate your support and hope you'll stay tuned for future updates! :)

    • @desarrollou71x72
      @desarrollou71x72 11 หลายเดือนก่อน

      @@KDABtv thanks so much, i will be in tune.. greetings..!

  • @goodday4564
    @goodday4564 9 หลายเดือนก่อน

    thank you, David!

  • @desarrollou71x72
    @desarrollou71x72 ปีที่แล้ว

    Merci beacoup!