小编Oum*_*aya的帖子

Gtk-CRITICAL**:IA__gtk_widget_style_get:断言`GTK_IS_WIDGET(widget)'失败

在我的qt应用程序的静态构建之后

./configure -static -debug-and-release  -confirm-license -nomake demos -nomake examples -nomake tools 
Run Code Online (Sandbox Code Playgroud)

它工作正常,但我得到几个输出消息大喊:

(MyApplication:32030): Gtk-CRITICAL **: IA__gtk_widget_style_get: assertion `GTK_IS_WIDGET (widget)' failed
Run Code Online (Sandbox Code Playgroud)

是否真的存在严重问题,我应该用不同的选项重建qt吗?

任何帮助将不胜感激.

gtk ubuntu qt build widget

4
推荐指数
1
解决办法
7164
查看次数

cppunit:setUp()和tearDown()

我使用该框架的CppUnit来测试我的课,我想知道,如果这些方法TestFixture::setUp()和TestFixture::tearDown()被调用一次TEST_SUITE或他们被称为每种方法加入到这一套件

c++ methods attributes unit-testing cppunit

3
推荐指数
1
解决办法
3898
查看次数

CreateProcess执行Windows命令

我正在尝试使用CreateProcess函数执行dos命令:

 LPWSTR cmd=(LPWSTR)QString("C:\\windows\\system32\\cmd.exe  subst " + DLetter+"  \""+mountPath+"\"").utf16();



        STARTUPINFO si;
        PROCESS_INFORMATION pi;
        ZeroMemory( &si, sizeof(si) );
        si.cb = sizeof(si);
        ZeroMemory( &pi, sizeof(pi) );

        if ( CreateProcessW(0,     // Application name
                           cmd,                 // Application arguments
                           NULL,
                           NULL,
                           TRUE,
                           0,
                           NULL,
                           L"C:\\windows\\system32",          // Working directory
                           &si,
                           &pi) == TRUE)
        { ...
Run Code Online (Sandbox Code Playgroud)

它给出了最后一个错误3 = ERROR_PATH_NOT_FOUND,当我将应用程序路径"C:\\windows\\system32\\cmd.exe"与命令分开时,它显示控制台而不执行我的subst命令.

任何帮助将不胜感激.

windows winapi cmd createprocess

2
推荐指数
1
解决办法
1万
查看次数

标签 统计

attributes ×1

build ×1

c++ ×1

cmd ×1

cppunit ×1

createprocess ×1

gtk ×1

methods ×1

qt ×1

ubuntu ×1

unit-testing ×1

widget ×1

winapi ×1

windows ×1