Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pyside6
#6
QMainWindow has a central widget. You can make this any kind of widget you like, including a QWidget which is blank. Then you can add a layout manager to the central widget to help you position other widgets within this widget. You can even stack widgets on top of each other. I used this to make a tool ribbon (a tab like interface that uses tool bar buttons in place of tabs).

I only use a QMainWindow when I want a menu and a status bar. I don't use the docking capabilities very often because Qt's docking is not very flexible. Normally I subclass QWidget to make my own window classes. I find this gives me more freedom than using QMainWindow.
Reply


Messages In This Thread
Pyside6 - by Larz60+ - Nov-27-2022, 10:42 PM
RE: Pyside6 - by Yoriz - Nov-27-2022, 11:33 PM
RE: Pyside6 - by Larz60+ - Nov-28-2022, 12:02 AM
RE: Pyside6 - by Axel_Erfurt - Nov-28-2022, 12:55 PM
RE: Pyside6 - by Larz60+ - Nov-28-2022, 02:05 PM
RE: Pyside6 - by deanhystad - Nov-28-2022, 05:20 PM
RE: Pyside6 - by Axel_Erfurt - Nov-28-2022, 05:59 PM
RE: Pyside6 - by Larz60+ - Nov-28-2022, 07:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PySide6 - Connect to DBus signal - Correct syntax Drexel 1 711 Dec-18-2023, 08:03 AM
Last Post: Drexel
  PySide6 Copy and Past from clipboard to QTableWedget zinho 6 1,432 Dec-07-2023, 10:10 PM
Last Post: zinho
Bug [PyQt] Dinamically adding widgets to layout [PySide6] carecavoador 2 1,557 Jun-19-2023, 12:57 PM
Last Post: carecavoador
  PySide6 QFontDialog - bug or just me? PatM 1 1,149 Jan-22-2023, 01:29 PM
Last Post: Axel_Erfurt
  [PySide6] Load ui with UiLoader catlessness 6 9,061 Nov-24-2021, 02:17 PM
Last Post: catlessness

Forum Jump:

User Panel Messages

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