Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QtDesktop and workspace switch under GNOME

QtDesktop and workspace switch under GNOME

Scheduled Pinned Locked Moved Qt Creator and other tools
1 Posts 1 Posters 1.2k Views 1 Watching
  • 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.
  • M Offline
    M Offline
    malos
    wrote on last edited by
    #1

    Hi,

    I am using QtDesktop components with Qt 4.8.

    I have 2 qml files written as follows
    Toto.qml
    @import QtQuick 1.1
    import QtDesktop 0.1

    ApplicationWindow {
    id: toto
    width: 200
    height: 200
    visible : true

      Text {
      id: text
      anchors.fill: parent
      text: "toto"
      }
    

    Tutu {
    id:tutu
    }
    }@

    and Tutu.qml
    @import QtQuick 1.1
    import QtDesktop 0.1

    ApplicationWindow {
    id: tutu
    width: 200
    height: 200
    visible : true

      Text {
      id: text
      anchors.fill: parent
      text: "tutu"
      }
    

    }
    @

    The goal is to have 2 independent windows managed by the same process, running qmldesktopviewer Toto.qml works fine.
    But when I switch workspace and then back to the original workspace, I have only 1 window displayed.

    Using xwininfo, I can see that the other window is in 'UnmappedState'.
    Debugging qapplication_x11.cpp, I can see that

    • when switching wspace 1 to 2, there are 2 UnmapNotify events , one for each window
    • when switching from wspace 2 to 1, there only 1 MapNotify event, for firstly created window Toto

    I do not understand why only one MapNotify event is generated when switching back.
    Does anyone have an idea why this is happening?

    Any hint very wellcome.

    Thks

    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