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. Add files to QT project

Add files to QT project

Scheduled Pinned Locked Moved Solved General and Desktop
desktopc++
3 Posts 2 Posters 495 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.
  • M Offline
    M Offline
    mesajflaviu
    wrote on last edited by mesajflaviu
    #1

    I have tried to reproduce the following example: https://doc.qt.io/qt-5/qtwidgets-mainwindows-sdi-example.html

    And I create a simple QT project, and I have tried to add files from here: https://code.qt.io/cgit/qt/qtbase.git/tree/examples/widgets/mainwindows/sdi?h=5.15
    But I realize that I cannot, like I would do in Visual Studio C++ project. Is there possible to add sdi.pro and sdi.qrc to my project ?
    02e3a863-17f3-4cae-a350-1ec0e980082f-image.png

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      You have created a CMake project. Adding .pro to it makes no sense (unless you want to support 2 different build systems).

      QRC - yes it is possible to add Qt resources to CMake-based projects, see https://doc.qt.io/qt-5/qtcore-cmake-qt5-add-resources.html

      (Z(:^

      1 Reply Last reply
      4
      • M Offline
        M Offline
        mesajflaviu
        wrote on last edited by mesajflaviu
        #3

        Thank you, I got it.

        1 Reply Last reply
        0

        • Login

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