摘要: 详见各平台简单窗口绘制。 gcc hello-x.c -L/usr/X11R6/lib -lX11 -o hello-x #include <X11/Xlib.h>#include <stdio.h>#include <stdlib.h>#include <string.h> int main(vo 阅读全文
posted @ 2020-09-18 18:24 angry_gladiator 阅读(1346) 评论(0) 推荐(0) 编辑
摘要: 经验证,设置setfixedsize()后可用: setMinimumSize(0,0); setMaximumSize(QSize(QWIDGETSIZE_MAX,QWIDGETSIZE_MAX)); 让窗口可正常resize。resize大小范围可设置setMinimumSize,setMaxi 阅读全文
posted @ 2020-09-18 18:09 angry_gladiator 阅读(1138) 评论(1) 推荐(1) 编辑
摘要: d-feat工具不错,详细使用暂未升入 阅读全文
posted @ 2020-09-18 18:01 angry_gladiator 阅读(77) 评论(0) 推荐(0) 编辑
摘要: QColor bgColor = Dtk::Gui::DGuiApplicationHelper::instance()->applicationPalette().highlight().color(); 阅读全文
posted @ 2020-09-18 17:59 angry_gladiator 阅读(144) 评论(0) 推荐(0) 编辑
摘要: QPalette *pal = new QPalette(m_videoPre.palette()); pal->setColor(QPalette::Background, Qt::black); //设置背景黑色 m_videoPre.setAutoFillBackground(true); m 阅读全文
posted @ 2020-09-18 17:57 angry_gladiator 阅读(524) 评论(0) 推荐(0) 编辑
摘要: 远程启动目标机器的图形界面:(wayland平台下加上此句WAYLAND_DISPLAY=wayland-0) DISPLAY=:0 apppath ,apppath为绝对路径 阅读全文
posted @ 2020-09-18 17:55 angry_gladiator 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 详见mpv commit id: d62131d3aeda6f3b4c255ca06e70573433a8f16a 使用本地工程验证此commit后,得出vo_x11.c中Display_ImageI()函数的 XFillRectangle(vo->x11->display, vo->x11->wi 阅读全文
posted @ 2020-09-18 17:45 angry_gladiator 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 默认焦点为父窗口的第一个New出的子窗口。 已验证和布局先后顺序无关。 阅读全文
posted @ 2020-09-18 16:17 angry_gladiator 阅读(370) 评论(0) 推荐(0) 编辑