Top "Qmainwindow" questions

QMainWindow is a class in Qt library that implements the main window of an application.

Qt: Set size of QMainWindow

I'm new to Qt, so I wonder whether there is a way to set the size of a QMainWindow to (…

qt size qmainwindow
PyQt - how to add separate UI widget to QMainWindow

I've only recently started programming and Python (PyQt) in particular. I have my main QMainWindow class. But I wanted to …

python layout pyqt qmainwindow
How to set a window icon with PyQt5?

from PyQt5 import QtWidgets, QtGui from PyQt5.QtWidgets import * from PyQt5.QtCore import * class Application(QMainWindow): def __init__(self): super(…

python icons pyqt5 qmainwindow python-3.6
How to set QMainWindow title

How do I set the title of a QMainWindow? I tried googling and found setCaption(), but it appears it no …

c++ qt qmainwindow
PyQt: RuntimeError: wrapped C/C++ object has been deleted

If I run this code: #!/usr/local/bin/ python3 import sys from PyQt4.QtCore import * from PyQt4.QtGui import * class …

garbage-collection pyqt pyqt4 qobject qmainwindow
AttributeError: 'Ui_MainWindow' object has no attribute 'setCentralWidget'

I am still working on the GUI for my Database and now i have a different error: Traceback (most recent …

python pyqt pyqt5 qt-designer qmainwindow
PyQt: Change GUI Layout after button is clicked

Okay, I am jumping from Tkinter to PyQt, because PyQt is just so much more advanced, and nicer to work …

python pyqt pyqt4 qmainwindow
Multiple QMainWindow instances?

The QMainWindow is the main window in a Qt application. So usually you'd have only one, but would it be …

c++ qt qmainwindow
PyQt5 - How to display image in QMainWindow class?

I'm trying to display a picture in a QMainWindow class: from PyQt5.QtWidgets import QLabel, QMainWindow, QApplication from PyQt5.QtGui …

python python-3.x qt pyqt5 qmainwindow
How keep a QWidget always on top?

I have two buttons on my QMainWindow. One to btnShowKb and another btnHideKb. When i press btnShowKb it shows an …

qwidget qmainwindow