Results 1 to 9 of 9

Thread: activateWindow() doesn't work

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2008
    Posts
    104
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 7 Times in 7 Posts

    Default Re: activateWindow() doesn't work

    Update.
    When I'm calling hide() and show() for the main window (after the image viewer window becomes active), I get those errors at console output:

    X Error: BadWindow (invalid Window parameter) 3
    Major opcode: 20 (X_GetProperty)
    Resource id: 0x16055ff
    X Error: BadWindow (invalid Window parameter) 3
    Major opcode: 15 (X_QueryTree)
    Resource id: 0x16055ff
    X Error: BadWindow (invalid Window parameter) 3
    Major opcode: 40 (X_TranslateCoords)
    Resource id: 0x16055ff

    So the problem is in the X-system?

  2. #2
    Join Date
    Jan 2006
    Location
    Knivsta, Sweden
    Posts
    153
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11
    Thanks
    30
    Thanked 13 Times in 12 Posts

    Default Re: activateWindow() doesn't work

    Could you make a minimal compilable example-program demonstrating the problem and post it here?

  3. #3
    Join Date
    Apr 2008
    Posts
    104
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 7 Times in 7 Posts

    Default Re: activateWindow() doesn't work

    I'll post an example a bit later. Currently I've solved the problem calling setWindowFlags (Qt::Tool) for the secondary window.

Similar Threads

  1. signal of QListWidget doesn't work
    By vito49 in forum Qt Programming
    Replies: 10
    Last Post: 1st October 2008, 05:07
  2. Qt4 : QPainter::setRedirected doesn't work
    By Ankitha Varsha in forum Qt Programming
    Replies: 2
    Last Post: 20th June 2008, 17:52
  3. QActions don't work with menubar hidden
    By Pepe in forum Qt Programming
    Replies: 1
    Last Post: 16th August 2007, 01:04
  4. Change work area OS
    By pakulo in forum Qt Programming
    Replies: 15
    Last Post: 15th May 2007, 07:20
  5. QTextEdit Justify align making work
    By dec0ding in forum Qt Programming
    Replies: 2
    Last Post: 13th January 2006, 12:02

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
  •  
Qt is a trademark of The Qt Company.