Results 1 to 6 of 6

Thread: How to set the Z-order in a Real-time rendering window

  1. #1
    Join Date
    May 2011
    Posts
    4
    Thanks
    1

    Question How to set the Z-order in a Real-time rendering window

    Currently, I am working on a Navigation QT application. The Navigation SDK provided a implementation to connect the map control and windows like that:

    bRequestCreateRenderView( windowHandle);
    I get the windowshandle with the code : "this->winId()" (this = MainWindow) and that works.

    Then, I came across with problems about Z-order. All the widgets in that windows are invisible, until I move the mouse to these widgets' position. I think it is because of the rendering view is the topmost layer, and covers all the widgets in that windows.

    I had tried all the methods like "setWindowFlags(Qt::WindowStaysOnTopHint);" "hide() & show()"; "raise()"; "activateWindow();". but none works. Could anyone give me some advice about how to place a widget at topmost layer in this case?


    (another method to work around this problem):
    Meanwhile, I am trying to implement a window embedded in the application. This embedded window would connect with the map control, and rendering continuous. And another window with transparency background (included all the widgets) was placed on the topmost layer?

    Is that possible? Or could anyone give me some advice to deal with my case?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to set the Z-order in a Real-time rendering window

    I would suggest that you restate your problem in a somewhat clearer manner. We're not sitting inside your head and we have no idea what you are doing. Read your post and think how much you make out of it yourself.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    haji (9th May 2011)

  4. #3
    Join Date
    May 2011
    Posts
    4
    Thanks
    1

    Default Re: How to set the Z-order in a Real-time rendering window

    Thank you for your advice.
    Since the problem is quite complex and hard to state clearly, I am trying to restate my problem.

  5. #4

    Default Re: How to set the Z-order in a Real-time rendering window

    This is exactly the same problem I am having.

    I have a vlc player embedded into a QX11EmbeddedContainer, and added to a QGridLayout.
    Then on the QGridLayout add another widget, which is an image. I am expecting the image to display over the vlc video.

    While I have specified the z order in the .ui file to do so, but the VLC video is still staying on top of my image widget.

    I had one ugly solution which is to add the VLC video to a QStackedWidget, and then add another QLabel to it.
    Then append the QStackedWidget to QGridLayout.

    Once I ve done that and compiled with Qt library 4.6.3 it works.
    But then I discover it doesn't work again in Qt4.7 or 4.8, which is rather confusing...

    So I have to step onto this problem again and try to find a better solution.
    Could anyone suggest a better way of doing this?

  6. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to set the Z-order in a Real-time rendering window

    I don't think you can find a reliable solution to putting an overlay over an X11Embedded widget. Maybe you should use some other mechanism than XEmbed?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. #6
    Join Date
    Feb 2010
    Posts
    96
    Thanks
    4
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to set the Z-order in a Real-time rendering window

    Why not keep the widget out of the QGridLayout so it has no parent, and then move it to where you want on the screen? You can use .move or .setGeometry

Similar Threads

  1. Rendering order of items in a QwtPlot
    By citocran in forum Qwt
    Replies: 1
    Last Post: 7th January 2011, 15:47
  2. Real time rendering
    By kaszewczyk in forum Newbie
    Replies: 1
    Last Post: 7th July 2010, 17:26
  3. real time plotting
    By agostain in forum Qwt
    Replies: 0
    Last Post: 10th August 2009, 10:47
  4. real time plotting
    By gyre in forum Qwt
    Replies: 4
    Last Post: 11th December 2007, 16:13
  5. Rendering real time video using SDL and QT
    By venk2ksubbu in forum Newbie
    Replies: 4
    Last Post: 13th September 2007, 15:20

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.