Python Forum
How delete Qt Layout manager from another method?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How delete Qt Layout manager from another method?
#4
(Sep-18-2021, 07:50 PM)Axel_Erfurt Wrote: What exactly do you want to do?

Do you want to replace the box layout with a grid layout?

You can only use setLayout once, but there is also the option of adding another using addLayout.

QBoxLayout.addLayout(QLayout *layout, int stretch = 0)
https://doc.qt.io/qt-5/qboxlayout.html#addLayout

I have placed a Button to the main window and when I press it I want to open new smaller auxiliary window to display some information... (The new auxiliary smaller window has GridLAyout). Can I achieve this?
Reply


Messages In This Thread
RE: How delete Qt Layout manager from another method? - by hobbyist - Sep-19-2021, 10:03 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  pyqt5 layout Nickd12 8 6,164 Jan-18-2021, 09:09 AM
Last Post: Axel_Erfurt
  Delete Qt Layout manager deanhystad 2 5,764 Jan-10-2021, 08:33 PM
Last Post: deanhystad
  Python GUI layout off between different OS shift838 5 5,019 Jan-02-2019, 02:53 AM
Last Post: shift838
  [Tkinter] grid layout neech 8 20,412 Oct-14-2016, 07:06 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020