Results 1 to 6 of 6

Thread: Show widget with PySide2 embedded in Qt5 application

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,332
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    317
    Thanked 871 Times in 858 Posts

    Default Re: Show widget with PySide2 embedded in Qt5 application

    In C++ you can access the global QApplication instance using qApp (or equivalently, QCoreApplication::instance()). Would that help (or work) in PySide?

    Another option - can you expose a QWindow from python that you could use to create a QWidget in C++ (QWidget::createWindowContainer()) or vice-versa?

    Just sort of guessing here. I know you can expose C++ bindings to python, so it would seem logical that you could expose a widget from the Qt side that could be used in a python app as a container for a python-side created child.

    Edit: Check out this stackoverflow post.
    Last edited by d_stranz; 14th February 2020 at 02:05.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  2. The following user says thank you to d_stranz for this useful post:

    tuli (14th February 2020)

Similar Threads

  1. Replies: 2
    Last Post: 6th February 2019, 23:15
  2. How to show the output of SHOW ERRORS from qt application?
    By Ahmed Abdellatif in forum Qt Programming
    Replies: 1
    Last Post: 6th May 2018, 08:38
  3. Replies: 4
    Last Post: 18th October 2013, 17:15
  4. Replies: 6
    Last Post: 24th November 2011, 09:54
  5. Qt Creator Can't show the qwt widget in the embedded designer
    By SamT in forum Qt Tools
    Replies: 2
    Last Post: 30th May 2011, 21:07

Tags for this Thread

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.