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. Fusion Style
Forum Updated to NodeBB v4.3 + New Features

Fusion Style

Scheduled Pinned Locked Moved Solved QML and Qt Quick
4 Posts 3 Posters 754 Views 2 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.
  • Q Offline
    Q Offline
    qcoderpro
    wrote on last edited by qcoderpro
    #1

    Hi all,

    Using this example I added the line QQuickStyle::setStyle("Fusion"); to the main.cpp but I get this error:
    error: 'QQuickStyle' has not been declared

    I tried including #include <QQuickStyle> but it didn't sort the problem out!
    Any idea, please?

    1 Reply Last reply
    0
    • Q qcoderpro

      @sierdzio

      This is my main.cpp (regarding the caveat you mentioned):

      jhgj.PNG

      A question. When we see somethings like:

      ljl.PNG

      as the requirements of using a feature, we need to follow them. That is, I should add that line in the CMakeLists.txt file of the project. Right?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #4

      @qcoderpro said in Fusion Style:

      I should add that line in the CMakeLists.txt file of the project. Right?

      yes

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #2

        Read the docs: https://doc.qt.io/qt-6/qquickstyle.html there are some caveats specified there.

        (Z(:^

        Q 1 Reply Last reply
        1
        • sierdzioS sierdzio

          Read the docs: https://doc.qt.io/qt-6/qquickstyle.html there are some caveats specified there.

          Q Offline
          Q Offline
          qcoderpro
          wrote on last edited by
          #3

          @sierdzio

          This is my main.cpp (regarding the caveat you mentioned):

          jhgj.PNG

          A question. When we see somethings like:

          ljl.PNG

          as the requirements of using a feature, we need to follow them. That is, I should add that line in the CMakeLists.txt file of the project. Right?

          jsulmJ 1 Reply Last reply
          0
          • Q qcoderpro

            @sierdzio

            This is my main.cpp (regarding the caveat you mentioned):

            jhgj.PNG

            A question. When we see somethings like:

            ljl.PNG

            as the requirements of using a feature, we need to follow them. That is, I should add that line in the CMakeLists.txt file of the project. Right?

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #4

            @qcoderpro said in Fusion Style:

            I should add that line in the CMakeLists.txt file of the project. Right?

            yes

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            2

            • Login

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