Results 1 to 1 of 1

Thread: QtWidget - Multi Monitor - Single Desktop - X_CopyArea Bug under Ubuntu

  1. #1
    Join Date
    Mar 2014
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Exclamation QtWidget - Multi Monitor - Single Desktop - X_CopyArea Bug under Ubuntu

    I can't figure out what's going on with this Bug i got:
    Qt Code:
    1. X Error: BadMatch (invalid parameter attributes) 8
    2. Major opcode: 62 (X_CopyArea)
    3. Resource id: 0x4e00004
    To copy to clipboard, switch view to plain text mode 

    I wanted to display two widgets on two Monitors with one Application.
    I configured my Target with the following screen Configuration (Single Desktop, Multiple Monitors):
    Screenshot from 2014-03-18 09:54:49.jpg

    Weird is the fact that it works for an old X-Server under Suse. Under Ubuntu it doesn't.

    Here are source and X-Versions

    Btw: I must use this config (the must be no virtual Desktop on two screens), and i just want to get why it doesn't work.
    - Same dirver
    - so qt-bug?



    source.zip

    Qt Code:
    1. #include <qapplication.h>
    2. #include <qwidget.h>
    3. #include <qdesktopwidget.h>
    4.  
    5. int
    6. main(int argc, char *argv[])
    7. {
    8. QApplication app(argc, argv);
    9. QWidget widgetScreenZero(qApp->desktop()->screen(0));
    10. QWidget widgetScreenOne(qApp->desktop()->screen(1));
    11. widgetScreenZero.setStyleSheet("background-image: url(:/images/zero.svg);");l
    12. widgetScreenOne.setStyleSheet("background-image: url(:/images/one.svg);");
    13. widgetScreenOne.show();
    14. widgetScreenZero.show();
    15. return app.exec();
    16. }
    To copy to clipboard, switch view to plain text mode 

    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.
    Last edited by HauckThalheim; 18th March 2014 at 10:36. Reason: reformatted to look better

Similar Threads

  1. Replies: 3
    Last Post: 25th January 2011, 14:36
  2. Replies: 0
    Last Post: 19th January 2011, 04:29
  3. How to detect multi screen in QT?
    By Kevin Hoang in forum Qt Programming
    Replies: 9
    Last Post: 27th March 2010, 00:02
  4. Display a QWidget using multi-screen
    By tarod in forum Qt Programming
    Replies: 3
    Last Post: 30th June 2008, 15:02
  5. multi screen
    By Thomas Feldman in forum Qt Programming
    Replies: 5
    Last Post: 9th May 2007, 17:41

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.