Styling Qt Widgets Using Qt Stylesheets

Поделиться
HTML-код
  • Опубликовано: 13 дек 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.

  • @goodday4564
    @goodday4564 11 месяцев назад

    thank you, David!

  • @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 Год назад

    Merci beacoup!

  • @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  Год назад +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 Год назад

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

  • @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 ;)