[PyQt] Embed PyQt view in Qt window
Keith Lostracco
keith at intentdev.io
Wed Mar 21 15:00:55 GMT 2018
Great! thanks Chris.
On Wed, Mar 21, 2018 at 5:06 AM, Chris Pezley <Chris.Pezley at synopsys.com>
wrote:
> If you want to keep the PyQt widgets inside of a Qt widget, then I’d
> suggest taking a look at how MDI areas work:
>
> http://doc.qt.io/qt-5/qtwidgets-mainwindows-mdi-example.html
>
>
>
> If you want to dynamically add widgets to an existing widget, then you
> could try adding them to the layout. I think that widgets only appear
> free-floating if they have no parent.
>
>
>
> *From:* PyQt [mailto:pyqt-bounces at riverbankcomputing.com] *On Behalf Of *Keith
> Lostracco
> *Sent:* 20 March, 2018 3:52 PM
> *To:* pyqt <pyqt at riverbankcomputing.com>
> *Subject:* [PyQt] Embed PyQt view in Qt window
>
>
>
> I am in the process of designing an application that will be built in C++.
>
> The app will have an embedded python interpreter for rapid development of
> algorithms.
>
> The application GUI will be built with Qt.
>
> I'm thinking of coming up with a rapid workflow where a developer could
> use QtCreator to design a small UI with some input fields, sliders, button
> etc.. then run a function that calls uic and make a Python class. The user
> loads the path to the file (or it that is automated as well) and the GUI
> module is expose their Python script they are creating.
>
> As far as I can tell this should all work fine but at when the PyQt is
> executed, from our Python program in our embedded Python interpretor in our
> C++ application, it will load a floating window.
>
> Is there way to load PyQt within a Qt window in our Python embedded
> application?
>
> That way the widgets would appear to be part of our main application.
>
>
>
> thanks
>
> Keith
>
>
>
>
>
--
Keith Lostracco
*Interactive Developer*
*Intent Productions, Inc.*
m: 250 505 2444
w: IntentDev.io e: Keith at IntentDev.io
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20180321/0e5a581b/attachment-0001.html>
More information about the PyQt
mailing list