Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

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

    QML and Qt Quick
    3
    3
    2969
    Loading More Posts
    • 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
      houmingc last edited by

      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 Reply Quote 0
      • A
        andreyc last edited by

        QLabel is part of QtWidgets
        @
        QT += widgets
        @

        1 Reply Last reply Reply Quote 0
        • R
          Rolias last edited by

          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 Reply Quote 0
          • First post
            Last post