Results 1 to 4 of 4

Thread: transparent widget container

  1. #1
    Join Date
    Jan 2011
    Posts
    212
    Thanks
    24
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default transparent widget container

    Hello forum,


    It had been quite a while i have tried Qt and it has grown up to Qt5. I had some experiences with Qt4. I intend to use the new version in my future project.

    The project will have a UI similar to the following:

    https://developer.nvidia.com/gameworks-opengl-samples

    As you can see that the widget container is transparent. I hope it is possible in Qt . Could you refer me to some examples that implemented the intended feature.

    My project will not use any OpenGL related wrapper classes/functions from Qt5, rather it will assist to access the modern opengl core profile and user input from the application and rest of the rendering will be done by core OpenGL command and then are submitted to the QWindow instance for display.

    Some hint/suggestion is appreciated.


    Thanks

  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: transparent widget container

    To be honest I don't see any transparent widget container on the web page you refer to. I can direct you to QOpenGLWidget class from Qt5.4+ (http://doc-snapshot.qt-project.org/q...nglwidget.html) which is a full replacement of QGLWidget from Qt4. Alternatively you can implement your UI in QML and implement the scene rendering using QQuickWindow::beforeRendering() signal.
    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. #3
    Join Date
    Jan 2011
    Posts
    212
    Thanks
    24
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: transparent widget container

    Quote Originally Posted by sajis997 View Post
    Hello forum,


    It had been quite a while i have tried Qt and it has grown up to Qt5. I had some experiences with Qt4. I intend to use the new version in my future project.

    The project will have a UI similar to the following:

    https://developer.nvidia.com/gameworks-opengl-samples

    As you can see that the widget container is transparent. I hope it is possible in Qt . Could you refer me to some examples that implemented the intended feature.

    My project will not use any OpenGL related wrapper classes/functions from Qt5, rather it will assist to access the modern opengl core profile and user input from the application and rest of the rendering will be done by core OpenGL command and then are submitted to the QWindow instance for display.

    Some hint/suggestion is appreciated.


    Thanks
    Please look for the Bloom example from the page i referred you to and then you will find the UI that i am talking about.

  4. #4
    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: transparent widget container

    I still don't see anything transparent. Are you sure "transparent" is the proper word for what you mean? Do you by any chance mean the translucent overlay that contains sliders and such? You can implement that either in QtQuick/QML or by setting an appropriate attribute on a widget.
    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.


Similar Threads

  1. Qt QSplitter stretch widget out of container
    By karankumar1609 in forum Qt Programming
    Replies: 0
    Last Post: 20th September 2013, 13:46
  2. Best widget to use as container for row of QPushButtons?
    By Coolname007 in forum Qt Programming
    Replies: 3
    Last Post: 25th November 2012, 20:24
  3. Replies: 1
    Last Post: 23rd June 2011, 23:09
  4. Container widget with scrollbars
    By a550ee in forum Qt Programming
    Replies: 7
    Last Post: 15th July 2008, 10:44
  5. Problem with custom container widget
    By MrGarbage in forum Qt Tools
    Replies: 4
    Last Post: 25th August 2007, 03:37

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.