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. Compiling issue on global property
Forum Updated to NodeBB v4.3 + New Features

Compiling issue on global property

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 3 Posters 432 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.
  • J Offline
    J Offline
    jackie.zhang
    wrote on last edited by
    #1

    When compiling the project, I met this issue:
    error: Could not determine type for global name window_main
    window_main is a global property I defined in main.qml.
    In Qt creator, there is no warning messages. I have no idea about this.
    What can I do?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      What version of Qt are you using ?
      On what OS ?

      You should show the code you use so it can also be reproduced by other people here.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jackie.zhang
        wrote on last edited by
        #3

        Hello SGaist:

        The version I'm using is 5.13.1 on Windows 10.

        while attempting to implement a Qt Quick Ultralite application, the issue come up.

        the Code is just like this:
        in main.qml

        Item {
        id: main_window
        SomeView {
        }
        }

        SomeView.qml
        Rectangle {
        main_window.
        }

        J.HilkJ 1 Reply Last reply
        0
        • J jackie.zhang

          Hello SGaist:

          The version I'm using is 5.13.1 on Windows 10.

          while attempting to implement a Qt Quick Ultralite application, the issue come up.

          the Code is just like this:
          in main.qml

          Item {
          id: main_window
          SomeView {
          }
          }

          SomeView.qml
          Rectangle {
          main_window.
          }

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by
          #4

          @jackie-zhang said in Compiling issue on global property:

          SomeView.qml
          Rectangle {
          main_window.
          }

          mmh, what is main_window. supposed to be?


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          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