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. Cannot find .pro file

Cannot find .pro file

Scheduled Pinned Locked Moved Unsolved General and Desktop
sql databasepro file
2 Posts 2 Posters 4.4k 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.
  • J Offline
    J Offline
    JavierFontalvo
    wrote on 21 Sept 2020, 15:43 last edited by
    #1

    Hi there,

    I'm new to Qt, learning through a Qt Creator tutorial. I am trying to connect Qt with a MySQL database. To do so, I have to modify a .pro file adding the command QT += core sql
    however, once I create a project there is no .pro file in the menu, only the .ccp file, I would really appreciate your help with this.
    Program installed: Qt Creator 4.13.0
    OS: Windows 10 x64
    Steps followed:

    1. New Project
    2. Qt Console Application
    3. Build system: CMake
    4. Kits: I have some available; I am using Qt 5.15.1 MSVC2019 64bit
      The menu displayed shows a CMakesList.txt file, and the main.ccp source file. However no .pro file is created.

    Thanks very much for your help with some hints to fix this problem.

    1 Reply Last reply
    0
    • J Offline
      J Offline
      JohanSolo
      wrote on 21 Sept 2020, 15:46 last edited by
      #2

      If you chose a CMake project, a CMakeLists.txt file will be used. You have to choose qmake as build system to get a .pro file.

      `They did not know it was impossible, so they did it.'
      -- Mark Twain

      1 Reply Last reply
      7

      1/2

      21 Sept 2020, 15:43

      • Login

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