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. In QML, QLabel: no such file or directory (solved)
QtWS25 Last Chance

In QML, QLabel: no such file or directory (solved)

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 3 Posters 3.2k Views
  • 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.
  • H Offline
    H Offline
    houmingc
    wrote on last edited by
    #1

    I understand QML and Qt Widget are two different animals.
    When i move a class (working fine in Qt Widget) to Qt QML. I added QT +=gui
    when i build, i got error QLabel: No such file or directory

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andreyc
      wrote on last edited by
      #2

      QLabel is part of QtWidgets
      @
      QT += widgets
      @

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Rolias
        wrote on last edited by
        #3

        Are you trying to create the GUI in QML and asking what you use instead of a QLabel? In QML you could just use a Text object for a label. It's hard to know exactly what you're doing when you say "move a class ... to Qt QML".

        If you're new to QML you might benefit from my my latest Pluralsight course on "Qt Quick Fundamentals":bit.ly/qtquickfun on Pluralsight. Pluralsight is a subscription service but if you send me an email through the forum I can give you a free week long VIP pass good for unlimited hours of watching, including offline.

        Check out my third course in the trilogy on Qt
        "Integrating Qt Quick with C++"
        http://bit.ly/qtquickcpp
        published by Pluralsight

        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