Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. pro file
    Log in to post
    • All categories
    • Y

      Solved Qt6, qmake: Does 'QT += openglwidgets' imply 'QT += opengl'?
      General and Desktop • qt6 qmake pro file openglwidget • • Yuni

      6
      0
      Votes
      6
      Posts
      255
      Views

      Y

      @kkoehne said in Qt6, qmake: Does 'QT += openglwidgets' imply 'QT += opengl'?:

      @Yuni said in Qt6, qmake: Does 'QT += openglwidgets' imply 'QT += opengl'?:

      If it works and it's unspecified behavior, then it may not work on other machines or for future Qt versions.

      Build and module dependencies usually don't change in a minor Qt version. For major Qt versions, things might get rearranged ... but then again there's no SC guarantee there in the first place :)

      I think it's good practice to explicitly declare all the dependencies that you explicitly rely upon though. But this is arguably a matter of taste.

      I would guess qopenglwidget.prf fetches qopengl.prf - you can take a look into them by your own.

      For QT variable, it's actually .prifiles: mkspecs/modules/qt_lib_qopenglwidgets.pri, mkspecs/modules/qt_lib_qopengl.pri ...

      I see, thank you so much! I'll declare them explicitly then.

      I've found the .pri files (without the leading 'q', that is, so e.g. qt_lib_opengl.pri) and openglwidgets indeed has a dependency on opengl, explaining why the project compiles without the explicit declaration.

    • P

      Solved :-1: error: Project ERROR: Unknown module(s) in QT: serialport multimedia [solved]
      Installation and Deployment • linux serialport multimedia ubuntu pro file • • poggers

      6
      0
      Votes
      6
      Posts
      506
      Views

      P

      @SGaist i just used an older version of qt(5.12 instead of 6.1.2), and it worked

    • S

      Unsolved Include built libraries in Qt project.
      Qt 6 • pro file pri library build steps qt3d • • surajj4837

      1
      0
      Votes
      1
      Posts
      165
      Views

      No one has replied

    • D

      Unsolved How to make install rule with a wildcard for files that don't exist?
      Installation and Deployment • installation pro file qmake make install • • Dan Princ

      1
      0
      Votes
      1
      Posts
      187
      Views

      No one has replied

    • J

      Unsolved Cannot find .pro file
      General and Desktop • sql database pro file • • JavierFontalvo

      2
      0
      Votes
      2
      Posts
      737
      Views

      JohanSolo

      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.

    • Y

      Solved Why it is generating multiple library files instead of single file?
      General and Desktop • qdll lib pro file qt 5.13.1 configure • • Yash001

      5
      0
      Votes
      5
      Posts
      346
      Views

      Y

      @Christian-Ehrlicher said in Why it is generating multiple library files instead of single file?:

      why does your user has to link to all 4 files, esp. when three of them are (correct) symlinks?

      Sorry for silly question. I misunderstood about symbolic link. I got my answer user need to add libSquidstatLibrary.1.0.0.dylib file.

      Thank you.

    • N

      Unsolved From .pro file how to access a variable from another file?
      Tools • qmake pro file • • Nmaster88

      3
      0
      Votes
      3
      Posts
      550
      Views

      N

      we would like to install different builds on the same machine and the place were would do that distinction would be on the .pro file, to then generate different values for the "version" value of "info.plist" file.

      We already have a portion of code that we can probably use to do something similar:

      codegen.commands = python "\"$${PATH}/Dir1/test.py\"" !isEmpty(VARNAME) { message($$VARNAME) codegen.commands += VarName=$$CONFNAME }

      I think we are getting there

    • A

      Unsolved Finding out which application is calling Lib in build tree
      General and Desktop • qt 5.7 pro file qmake subproject • • alizadeh91

      6
      0
      Votes
      6
      Posts
      1666
      Views

      SGaist

      Hi,

      What are these "minor things" ?

    • Zoltan

      Solved How to add GUI to a Qt console application?
      General and Desktop • pro file console gui • • Zoltan

      3
      0
      Votes
      3
      Posts
      6908
      Views

      Zoltan

      @SGaist Thank you, I will try it!

    • MarKS

      How to create .pro file in Visual Studio 2013 using Qt-Add-in
      Mobile and Embedded • qt5.4 visual studio pro file • • MarKS

      1
      0
      Votes
      1
      Posts
      1004
      Views

      No one has replied

    • C

      All includes of Qt widgets says file not found. I've edited pro file but no luck
      General and Desktop • helios file not found qt.conf run deployment pro file windows qt5.5 • • carlos91moreira

      4
      0
      Votes
      4
      Posts
      4435
      Views

      C

      After so many attempts without luck, the first attempt I try after writing this reply is a dfferent error :)

      So the boost is no longer my problem.

      For other people that my face the same problem as me, in the includepath just add: '$(BOOST_ROOT)'

    • M

      "Program files" from environment variable in .pro file
      General and Desktop • qmake pro file • • massimo.cristofolini

      10
      0
      Votes
      10
      Posts
      8649
      Views

      Chris Kawa

      See here for qmake language reference.
      Basically the $ $ operator applied to environment variables will be evaluated at qmake run, while the $ when the generated makefile is processed.

    • C

      [solved] Create top level QT project to build multiple projects
      General and Desktop • pro file build multiple • • code_fodder

      12
      0
      Votes
      12
      Posts
      8515
      Views

      KH-219Design

      Another post recently linked back to this one, so I wanted to augment this with a couple more relevant links for setting up a manageable, maintainable qmake SUBDIRS structure:

      https://www.toptal.com/qt/vital-guide-qmake

      https://wiki.qt.io/QMake-top-level-srcdir-and-builddir

      Which helped me set up a working example: https://github.com/219-design/qt-qml-project-template-with-ci/blob/6af6488d74e1dc97a/main_gui.pro

    • M

      File Template
      General and Desktop • creator pro file • • Martin

      2
      0
      Votes
      2
      Posts
      879
      Views

      M

      HI and welcome to devnet,

      you can create your own "Project Wizard". Read here how to do

    • V

      QMake INSTALL not picking up binaries
      Installation and Deployment • qmake install pro file • • VRonin

      3
      0
      Votes
      3
      Posts
      2057
      Views

      V

      Thanks for your answer
      It's actually a dll but I get what you are saying.
      I tried adding

      target.files = $$DESTDIRNAME/*.dll target.files += $$DESTDIRNAME/*.lib target.files += $$DESTDIRNAME/*.pdb

      where DESTDIRNAME is the same value as DESTDIR but no change

    • Lays147

      Seeting QMAKE_RPATHDIR
      General and Desktop • qt creator pro file • • Lays147

      1
      0
      Votes
      1
      Posts
      655
      Views

      No one has replied

    • M

      Importing resource files of an imported project in QT
      General and Desktop • chromium import ressource pro file cross compile qtcreator linux qmake • • MrGrj

      1
      0
      Votes
      1
      Posts
      689
      Views

      No one has replied

    • Giorgi

      how set INCLUDEPATH from subdirectory?
      General and Desktop • includepath pro file • • Giorgi

      9
      0
      Votes
      9
      Posts
      3333
      Views

      SGaist

      Can you show a mockup of your project tree structure ?

    • alkzx

      QtCreator + SDL same projects different targets(Debian and Raspberry)
      Tools • cross compile pro file cross platform qtcreator raspberry • • alkzx

      2
      0
      Votes
      2
      Posts
      1064
      Views

      Chris Kawa

      You can put the name of mkspec you are used for the given platform. I think for Raspberry it's something like linux-rasp-pi-g++. Open the mkspecs/devices folder in your Qt installation and check it out or open the Kits propertties page in Qt Creator and see which mkspec your kits are using.

    • A

      using a pro-file for cleaning up some files and dirs
      General and Desktop • pro file rmdir deldir qmake • • AnvarKnurr

      1
      0
      Votes
      1
      Posts
      414
      Views

      No one has replied