QWidget - 多监视器 - 单个桌面 - X_CopyArea Ubuntu下的Bug

时间:2014-03-18 09:31:30

标签: linux qt ubuntu qt4 xserver

我无法弄清楚我得到的这个错误:

X Error: BadMatch (invalid parameter attributes) 8
Major opcode: 62 (X_CopyArea)
Resource id:  0x4e00004

我想在一个应用程序的两个监视器上显示两个小部件。  我使用以下屏幕配置(单个桌面,多个监视器)配置了我的目标:  Screenshot

奇怪的是它适用于Suse下的旧X-Server。在Ubuntu下它没有。

以下是源代码和X-Versions

顺便说一下:
我必须使用这个配置(两个屏幕上必须没有虚拟桌面),我只是想了解它为什么不起作用。   - 相同的dirver   - 所以qt-bug?

source.zip can be downloaded here

#include <qapplication.h>
#include <qwidget.h>
#include <qdesktopwidget.h>

int
main(int argc, char *argv[])
{
  QApplication app(argc, argv);
  QWidget widgetScreenZero(qApp->desktop()->screen(0));
  QWidget widgetScreenOne(qApp->desktop()->screen(1));
  widgetScreenZero.setStyleSheet("background-image: url(:/images/zero.svg);");l
  widgetScreenOne.setStyleSheet("background-image: url(:/images/one.svg);");
  widgetScreenOne.show();
  widgetScreenZero.show();
  return app.exec();
}

+

Suse:
 X.Org X Server 1.8.0
 Release Date: 2010-04-02
 X Protocol Version 11, Revision 0
 Build Operating System: openSUSE SUSE LINUX
 Current Operating System: Linux ws17 2.6.34-12-desktop #1 SMP PREEMPT 2010-06-29 02:39:08 +0200 i686
 Kernel command line: root=/dev/disk/by-id/ata-KINGSTON_SV100S264G_64GB60076281-part1 resume=/dev/disk/by-id/ata-KINGSTON_SV100S264G_64GB60076281-part2 splash=silent quiet crashkernel= vga=0x345
 Build Date: 05 July 2010 09:26:26PM
 Current version of pixman: 0.18.0
 Before reporting problems, check http://wiki.x.org
 to make sure that you have the latest version.

+

Ubuntu:
 X.Org X Server 1.14.5
 Release Date: 2013-12-12
 X Protocol Version 11, Revision 0
 Build Operating System: Linux 2.6.42-37-generic i686 Ubuntu
 Current Operating System: Linux ws25 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:42:40 UTC 2014 i686
 Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.11.0-15-generic root=UUID=ce61481b-be95-4a6b-a5db-1f154dc14cd6 ro quiet splash vt.handoff=7
 Build Date: 06 January 2014 01:41:06PM
 xorg-server 2:1.14.5-1ubuntu2~saucy1~precise2 (For technical support please see http://www.ubuntu.com/support) 
 Current version of pixman: 0.30.2
 Before reporting problems, check http://wiki.x.org
 to make sure that you have the latest version. 

0 个答案:

没有答案