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
Forum Updated to NodeBB v4.3 + New Features

Add files to QT project

Scheduled Pinned Locked Moved Solved General and Desktop
desktopc++
3 Posts 2 Posters 573 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
    mesajflaviu
    wrote on 18 Nov 2020, 13:28 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
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 18 Nov 2020, 13:52 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 18 Nov 2020, 18:13 last edited by mesajflaviu
        #3

        Thank you, I got it.

        1 Reply Last reply
        0

        2/3

        18 Nov 2020, 13:52

        • Login

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