Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Raspberry Pi 4B qtcreator error QGuiApplication not found
Qt 6.11 is out! See what's new in the release blog

Raspberry Pi 4B qtcreator error QGuiApplication not found

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
6 Posts 2 Posters 1.1k Views 1 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.
  • M Offline
    M Offline
    MathewV
    wrote on last edited by
    #1

    I have raspberry Pi 4 B with 2021-05-07-raspios-buster-armhf-full , os installed in SD card
    Further i have installed Qt with following commands after
    sudo apt-get install qt5-default
    sudo apt-get install qtcreator

    i launch qtcreator from terminal and select Qt Quick application empty
    Then in main.cpp i find
    QGuiApplication not found
    QQmlApplicationEngine not found

    jsulmJ M 2 Replies Last reply
    0
    • M MathewV

      I have raspberry Pi 4 B with 2021-05-07-raspios-buster-armhf-full , os installed in SD card
      Further i have installed Qt with following commands after
      sudo apt-get install qt5-default
      sudo apt-get install qtcreator

      i launch qtcreator from terminal and select Qt Quick application empty
      Then in main.cpp i find
      QGuiApplication not found
      QQmlApplicationEngine not found

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

      @MathewV Did you include QGuiApplication and QQmlApplicationEngine header files?
      You also need "QT += gui" in your pro file.
      For QQmlApplicationEngine you also need QT += qml in pro file.

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

      1 Reply Last reply
      0
      • M MathewV

        I have raspberry Pi 4 B with 2021-05-07-raspios-buster-armhf-full , os installed in SD card
        Further i have installed Qt with following commands after
        sudo apt-get install qt5-default
        sudo apt-get install qtcreator

        i launch qtcreator from terminal and select Qt Quick application empty
        Then in main.cpp i find
        QGuiApplication not found
        QQmlApplicationEngine not found

        M Offline
        M Offline
        MathewV
        wrote on last edited by
        #3

        @jsulm
        Yes sir
        #include <QGuiApplication>
        #include <QQmlApplicationEngine>

        M 1 Reply Last reply
        0
        • M MathewV

          @jsulm
          Yes sir
          #include <QGuiApplication>
          #include <QQmlApplicationEngine>

          M Offline
          M Offline
          MathewV
          wrote on last edited by
          #4

          Yes sir, since I have selected Qt Quick application empty and clicked on "next " as the buttons followed

          the header where included by default in main.cpp
          #include <QGuiApplication>
          #include <QQmlApplicationEngine>

          and i inserted
          QT += qui
          QT += qml
          in pro file

          When i launch qtcreator from terminalopen qmain.cpp file, I get the warning
          This file is not part of any projects,
          and there are red circle markers along the left border of the code right from
          #include <QGuiApplication>
          #include <QQmlApplicationEngine>

          jsulmJ 1 Reply Last reply
          0
          • M MathewV

            Yes sir, since I have selected Qt Quick application empty and clicked on "next " as the buttons followed

            the header where included by default in main.cpp
            #include <QGuiApplication>
            #include <QQmlApplicationEngine>

            and i inserted
            QT += qui
            QT += qml
            in pro file

            When i launch qtcreator from terminalopen qmain.cpp file, I get the warning
            This file is not part of any projects,
            and there are red circle markers along the left border of the code right from
            #include <QGuiApplication>
            #include <QQmlApplicationEngine>

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

            @MathewV said in Raspberry Pi 4B qtcreator error QGuiApplication not found:

            This file is not part of any projects

            You have to open the PROJECT file, not cpp. It's the file with.pro extension.

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

            M 1 Reply Last reply
            0
            • jsulmJ jsulm

              @MathewV said in Raspberry Pi 4B qtcreator error QGuiApplication not found:

              This file is not part of any projects

              You have to open the PROJECT file, not cpp. It's the file with.pro extension.

              M Offline
              M Offline
              MathewV
              wrote on last edited by
              #6

              @jsulm
              Sir My problem is solved
              As mentioned by you, in MyProject.pro I inserted
              QT += gui
              QT += qml

              but still i was getting error of Unknown module(s) in QT: quick qml
              then in terminal i executed
              sudo apt-get install qtdeclarative5-dev
              rebooted the RPi
              From terminal window executed qtcreator
              Opened my recent project and by Gods grace no error
              Thank you @jsulm for your support, God Bless You

              1 Reply Last reply
              1

              • Login

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