mp2.cpp: new example on getting properties
hw.qml: findChild uses objectName; so added it.
This commit is contained in:
+6
-1
@@ -1,7 +1,8 @@
|
||||
cmake_minimum_required(VERSION 3.0)
|
||||
|
||||
# sets the PROJECT_NAME variable
|
||||
project(mpApp)
|
||||
|
||||
cmake_minimum_required(VERSION 3.0)
|
||||
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
|
||||
@@ -15,3 +16,7 @@ add_executable(${PROJECT_NAME} ${SRC_LIST})
|
||||
# links Qt5Core to the project executable
|
||||
target_link_libraries(${PROJECT_NAME} Qt5::Qml Qt5::Quick)
|
||||
|
||||
set (SRC2_LIST mp2.cpp)
|
||||
add_executable(mp2App ${SRC2_LIST})
|
||||
target_link_libraries(mp2App Qt5::Qml Qt5::Quick)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user