Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Inner Shadow
Qt 6.11 is out! See what's new in the release blog

Inner Shadow

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
6 Posts 1 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Matt Chaput
    wrote on last edited by
    #1

    MultiEffect does not have an inner shadow effect. However, Effect Maker does have a node for Inner Shadow, and if you create a "custom" shader from just that node, then you can use that inner shadow effect in your project.

    However, this means every single person in the world who wants to use an inner shadow has to find out about Effect Maker, try it out, and find it has an inner shadow node in it. Then they have generate shader code from that node and include it in their project, even though that code will be identical for everyone in the world.

    This can't be how it's meant to work, can it? I feel like I'm missing something here.

    1 Reply Last reply
    1
    • M Offline
      M Offline
      Matt Chaput
      wrote on last edited by
      #2

      Hmm, seems like Designer can add its own an InnerShadow effect (imported from QtQuick.Studio.DesignEffects) separate from the one I created with Effect Maker? But that module doesn't seem to be documented... I am confused.

      But hey, if it's possible to do inner shadows, I'll be happy.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Matt Chaput
        wrote on last edited by Matt Chaput
        #3

        Designer generates this import but it doesn't work...

        module "QtQuick.Studio.DesignEffects" is not installed

        Sigh.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          Matt Chaput
          wrote on last edited by
          #4

          The "inner shadow" node in the effect maker doesn't seem to work at all... it just colors the entire texture with the "shadow color", with no blurring.

          The inner shadow in the DesignEffects module works in Designer, but when you open the same project in Creator, or try to preview the file with the qml runner, it says module "QtQuick.Studio.DesignEffects" is not installed

          There are instructions here for installing the designer components manually (don't understand why you need to do this), but they don't work for me:

          https://doc.qt.io/qtdesignstudio/quick-converting-ui-projects.html#adding-qt-quick-designer-components-to-qt-installations

          When I try to do cmake --install . I get the following error:

          CMake Error at src/imports/compat/Components/cmake_install.cmake:127 (file):
            file INSTALL cannot find
            "/Users/matt/Qt/qdc/build/share/qt/qml/QtQuickUltralite/Studio/Components/libquickultralitestudiocomponentsplugin.dylib":
            No such file or directory.
          Call Stack (most recent call first):
            src/imports/compat/cmake_install.cmake:42 (include)
            src/imports/cmake_install.cmake:42 (include)
            src/cmake_install.cmake:42 (include)
            cmake_install.cmake:42 (include)
          
          1 Reply Last reply
          0
          • M Offline
            M Offline
            Matt Chaput
            wrote on last edited by
            #5

            Tried to "export" the Designer project to Creator as documented here:

            https://doc.qt.io/qtdesignstudio/studio-designer-developer-workflow.html

            Creator fails to import the designer project's cmakelist.txt because it can't find

            /Users/matt/Qt/6.7.2/macos/lib/cmake/Qt6Qml/QmlPlugins/Qt6QuickUltraLiteStudioComponentspluginTargets.cmake
            

            And that file is, indeed, missing from the Qt installation.

            Am I the only one who's ever tried using this? Or is it working for everyone except me?

            1 Reply Last reply
            0
            • M Offline
              M Offline
              Matt Chaput
              wrote on last edited by Matt Chaput
              #6

              Tried manually copying the built Design Studio component files (under build/lib, build/modules. and build/share/qt/qml) to the corresponding places in my Qt install (Qt/6.7.2/macos/lib, Qt/6.7.2/macos/modules, Qt/6.7.2/qml), and now Creator will auto-complete the QtQuick.Studio.DesignEffects module contents, but trying to preview the the QML file with the qml tool still gives an error:

              QQmlApplicationEngine failed to load component
              file:///Users/matt/QtProjects/Test/ShadowTest.qml:2:1: module "QtQuick.Studio.DesignEffects" is not installed
              
              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved