Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. Windows parenting not working on Kubuntu

Windows parenting not working on Kubuntu

Scheduled Pinned Locked Moved Unsolved Language Bindings
python
3 Posts 2 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • GofferG Offline
    GofferG Offline
    Goffer
    wrote on last edited by A Former User
    #1

    Hello community,

    Today I was trying to get a windowB stay on top of an other windowA, usually just setting the parent would work (at least on windows it does) but at work we are using this weird Kubuntu that I hate more than anything and it obviously doesn't work ...

    from PyQt4 import QtGui
    
    winA = QtGui.QMainWindow()
    winA.setWindowTitle('winA')
    winB = QtGui.QDialog(parent=winA)
    winB.setWindowTitle('winB')
    
    winA.show()
    winB.show()
    

    I've tried the StayOnTopHint but it's not what I want, I only want it to be on top of the direct parent and not everything else.
    I could force the focus of B but it doesn't seem right.

    Is there any other way to get this to work ?

    Thx !

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What version of Kubuntu is it ? With which version of Qt and PyQt4 ?

      On a side note, starting a thread by saying how much you hate a Linux distribution using a desktop environment based on Qt might not be the best move on a forum dedicated to Qt.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • GofferG Offline
        GofferG Offline
        Goffer
        wrote on last edited by
        #3

        Well, there is nothing wrong about sharing preferences. But it's doesn't matter.
        We are using kubuntu 12.04 and PyQt-4.10.484.4.

        For now, I do windowB.activateWindow() when my mouse enters windowA but it's a bit limited and I don't really like it.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved