[problem help] CLion编写Qt6程序提示dtk.core
Tofloor
poster avatar
Free_Aaron.Li
deepin
2024-05-03 13:33
Author

hello,

最近我尝试在V23上编写Qt6项目,我选择CLion开发。当我尝试一个简单的hello,world程序时出现提示(程序能够正常编译、运行):

dtk.core.dsg: AppId is fetched from AM, and value is  "jetbrains-clion-5bf76e7c-6bc0-438e-a29d-844e318e27c3"

这里提到dtk.core,我想请问是什么情况?


其源码为:

#include 
#include 

int main(int argc, char *argv[]) {
    QApplication a(argc, argv);
    QPushButton button("Hello world!", nullptr);
    button.resize(200, 100);
    button.show();
    return QApplication::exec();
}

CMakeLists为:

cmake_minimum_required(VERSION 3.28)
project(untitled)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)

set(CMAKE_PREFIX_PATH "/home/aaron/environment/Qt/6.7.0")

find_package(Qt6 COMPONENTS
        Core
        Gui
        Widgets
        REQUIRED)

add_executable(untitled main.cpp)
target_link_libraries(untitled
        Qt::Core
        Qt::Gui
        Qt::Widgets
)
Reply Favorite View the author
All Replies
把一切操作变成GUI
deepin
Backbone of ecological co-construction group
2024-05-03 17:50
#1

你换成qmake试试

Reply View the author
👀偷偷观察
deepin
2024-05-03 17:56
#2

https://github.com/linuxdeepin/dtkcore/blob/8e736edc9cd56728b56b3d482bd629b2c5d601dd/src/dsgapplication.cpp#L92

Reply View the author
Ziggy
deepin
2024-05-06 10:15
#3

这个是系统组件AM在加载应用及进程时打印的调试信息,如不影响最终结果产出可以忽略的

Reply View the author
Free_Aaron.Li
deepin
2024-05-06 15:08
#4
Ziggy

这个是系统组件AM在加载应用及进程时打印的调试信息,如不影响最终结果产出可以忽略的

谢谢,我也发现没有关系。

Reply View the author