Skip to content
  • 0 Votes
    3 Posts
    841 Views
    B

    It's the same with me...

  • 0 Votes
    10 Posts
    803 Views
    J

    For the purpouse of people who might search for an find this forum post, I put in a request with QT support and received the following.

    Hi Joe,

    Thank you for contacting Qt Support and for providing your sample project.

    There are 2 broad ways to specify the fragmentShader property, depending on which version of Qt you want to target:

    The Qt 5 way is to specify the shader's source code as a string. The Qt 6 way is to pre-compile your shader source code into a .qsb file, and specify a URL to that .qsb file

    See:

    https://doc.qt.io/qt-5/qml-qtquick-shadereffect.html#fragmentShader-prop https://doc.qt.io/qt-6/qml-qtquick-shadereffect.html#fragmentShader-prop

    To do it the Qt 5 way, the easiest approach is to copy the contents of your .frag file and paste it as a string literal (surrounded by quotation marks) to the RHS of the "fragmentShader" property.

    To do it the Qt 6 way, run the QSB tool to compile your shader source code. Unfortunately, the code of colour_wheel.frag is too old to be supported by QSB (for example, the "varying" keyword was deprecated long ago, and even removed for ES profiles)

    See:

    https://doc.qt.io/qt-6/qtshadertools-overview.html https://doc.qt.io/qt-6/qtshadertools-qsb.html

    I hope this helps.

  • 0 Votes
    5 Posts
    2k Views
    D

    dc4d228b-0604-4860-ba95-ae4541f57518-image.png

    am having the same issue .
    if I create a new project then select the Qt version 6 and then run the default code it produces no output .Ho do i fix fix this ?
    On the other hand if i start a new project and select the target Qt as Qt5 , it runs and produces an output..
    so what could be the issue
    da7bf813-5f34-42ca-abfb-40fd17527ea9-image.png