Join another window in Qt Designer, using Python

fuuman

I am using:

  • Python
  • PyQT
  • Qt Designer

I want that if a button for example is clicked, that a new window appears. There you can click something, press ok and the information is given to the mainwindow.

I don't know how to realize that.

And the second little problem is: I want to make some things visible if a button is clicked. I imagine the things in the following way.

I set the default-value of the attribute "visible" to false. Click the button and switch it to true. But I didn't found an attribute which is called visible or sth like this.

Thanks for the help!

Riley

I assume you are using a class. What I've done before is store all the variables in the class then use a QStacked layout to hold every window that will be shown then when the button is clicked just change it to that screen. There is probably a better way to do it than this, I'm just familiar with this way.

I used this tutorial Python School. If your new to PyQt it might be worth viewing the whole GUI series. Hope this helps

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

How to connect Qt signals and slots using QT Designer and Visual Studio

From Dev

Adding widgets to Qt Designer

From Dev

Changing window size using the expression blend visual designer?

From Dev

Qt Designer Custom Widget: using flags

From Dev

Qt-designer: enlarging the window does not replace my items

From Dev

Using PySide custom widgets in Qt Designer

From Dev

Inserting an image in GUI using QT Designer

From Dev

QTableView / QTableWidget: Stretch Last Column using Qt Designer

From Dev

Qt: Two buttons in one, a dice in another window

From Dev

Visual Studio Designer shows empty Window when using custom ContentPropertyAttribute

From Dev

Window built with qt designer not showing up

From Dev

Qt designer Python Tableview Item

From Dev

Qt Designer's preview ui is not the same when it running in python

From Dev

How to get self.close to work, when using Qt designer?

From Dev

Run another python file that shows camera preview using Tkinter window

From Dev

Using simple python script in qt (via QT-designer)

From Dev

How to install and run qt-designer for python

From Dev

Qt Designer: Edit other window than mainwindow

From Dev

Qt Designer Custom Widget: using flags

From Dev

Populate textbox in a window using another window

From Dev

Qt-designer: enlarging the window does not replace my items

From Dev

QT Designer how to assign 2 hotkeys to a QPushButton (python3)

From Dev

Qt: Two buttons in one, a dice in another window

From Dev

Python Qt 4 not initializing window

From Dev

How to initialize python code from the Qt-designer

From Dev

Using QDialog in QT Designer

From Dev

Using textbox input in another window?

From Dev

Qt exit application and show another window

From Dev

window freezes when I try to show an evolving value in a Qt window using threads with python

Related Related

  1. 1

    How to connect Qt signals and slots using QT Designer and Visual Studio

  2. 2

    Adding widgets to Qt Designer

  3. 3

    Changing window size using the expression blend visual designer?

  4. 4

    Qt Designer Custom Widget: using flags

  5. 5

    Qt-designer: enlarging the window does not replace my items

  6. 6

    Using PySide custom widgets in Qt Designer

  7. 7

    Inserting an image in GUI using QT Designer

  8. 8

    QTableView / QTableWidget: Stretch Last Column using Qt Designer

  9. 9

    Qt: Two buttons in one, a dice in another window

  10. 10

    Visual Studio Designer shows empty Window when using custom ContentPropertyAttribute

  11. 11

    Window built with qt designer not showing up

  12. 12

    Qt designer Python Tableview Item

  13. 13

    Qt Designer's preview ui is not the same when it running in python

  14. 14

    How to get self.close to work, when using Qt designer?

  15. 15

    Run another python file that shows camera preview using Tkinter window

  16. 16

    Using simple python script in qt (via QT-designer)

  17. 17

    How to install and run qt-designer for python

  18. 18

    Qt Designer: Edit other window than mainwindow

  19. 19

    Qt Designer Custom Widget: using flags

  20. 20

    Populate textbox in a window using another window

  21. 21

    Qt-designer: enlarging the window does not replace my items

  22. 22

    QT Designer how to assign 2 hotkeys to a QPushButton (python3)

  23. 23

    Qt: Two buttons in one, a dice in another window

  24. 24

    Python Qt 4 not initializing window

  25. 25

    How to initialize python code from the Qt-designer

  26. 26

    Using QDialog in QT Designer

  27. 27

    Using textbox input in another window?

  28. 28

    Qt exit application and show another window

  29. 29

    window freezes when I try to show an evolving value in a Qt window using threads with python

HotTag

Archive