Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. qt creator not making a pro file
Forum Updated to NodeBB v4.3 + New Features

qt creator not making a pro file

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 307 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
    micha_eleric
    wrote on last edited by
    #1

    had to reinstall os, dont know what version of qt creator i was using, but old version made a .pro file, and current version make a .txt file

    it is giving error for #include <QSerialPort>
    https://doc.qt.io/qt-6/qserialport.html, says
    Header: #include <QSerialPort>
    CMake: find_package(Qt6 REQUIRED COMPONENTS SerialPort)
    target_link_libraries(mytarget PRIVATE Qt6::SerialPort)
    qmake: QT += serialport

    without a .pro file, where to put "QT += serialport"?

    "target_link_libraries(mytarget PRIVATE Qt6::SerialPort)" is giving error with mytarget, tried project name for "mytarget", but gives error.

    M 1 Reply Last reply
    0
    • M micha_eleric

      had to reinstall os, dont know what version of qt creator i was using, but old version made a .pro file, and current version make a .txt file

      it is giving error for #include <QSerialPort>
      https://doc.qt.io/qt-6/qserialport.html, says
      Header: #include <QSerialPort>
      CMake: find_package(Qt6 REQUIRED COMPONENTS SerialPort)
      target_link_libraries(mytarget PRIVATE Qt6::SerialPort)
      qmake: QT += serialport

      without a .pro file, where to put "QT += serialport"?

      "target_link_libraries(mytarget PRIVATE Qt6::SerialPort)" is giving error with mytarget, tried project name for "mytarget", but gives error.

      M Offline
      M Offline
      micha_eleric
      wrote on last edited by
      #2

      @micha_eleric "target_link_libraries(mytarget PRIVATE Qt6::SerialPort)" was in wrong spot in CMakeList.txt
      mytarget error fixed, but how to make a .pro file is still unknown

      Pl45m4P 1 Reply Last reply
      0
      • B Offline
        B Offline
        Bonnie
        wrote on last edited by
        #3

        You mean when creating a new project?
        Select "qmake" in "Define Build System" page of the wizard.

        1 Reply Last reply
        2
        • M micha_eleric

          @micha_eleric "target_link_libraries(mytarget PRIVATE Qt6::SerialPort)" was in wrong spot in CMakeList.txt
          mytarget error fixed, but how to make a .pro file is still unknown

          Pl45m4P Offline
          Pl45m4P Offline
          Pl45m4
          wrote on last edited by
          #4

          @micha_eleric

          The recommended build system for Qt 6 is CMake, but you can still use QMake (with *.pro file instead of CMakeLists.txt).
          You need to change your project to QMake Project.

          • https://doc.qt.io/qt-6/qt6-buildsystem.html

          If debugging is the process of removing software bugs, then programming must be the process of putting them in.

          ~E. W. Dijkstra

          1 Reply Last reply
          2
          • M micha_eleric has marked this topic as solved on

          • Login

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