Questions tagged [qwindow]

The QWindow class represents a window in the underlying windowing system.

A window that is supplied a parent becomes a native child window of their parent window.

An application will typically use QWidget or QQuickView for its UI, and not QWindow directly. Still, it is possible to render directly to a QWindow with QBackingStore or QOpenGLContext, when wanting to keep dependencies to a minimum or when wanting to use OpenGL directly. The Raster Window Example and OpenGL Window Example are useful reference examples for how to render to a QWindow using either approach.

See More

24 questions
0
votes
1 answer

QT trying to add a qwindow as a QWidget using QWidget::createWindowContainer, created widget does not behave as wanted

So In my Qt app I have a class that inherit the QWindow class , and I would like it to be added to a QMainWindow so I tried using QWidget::createWindowContainer. I got a result I didn't expected when I set it as the centralWidget there are two…
0
votes
0 answers

Context menu events not working in QOpenGLWindow

I am subclassing QOpenGLWindow (not QGLWidget or QOpenGLWidget) and calling auto container = QWidget::createWindowContainer(my_opengl_window); to place it in the layout of a parent QWidget. The window displays correctly and I can interact with it,…
spraff
  • 32,570
  • 22
  • 121
  • 229
0
votes
1 answer

PyQT5: How to open and close 3 windows consecutively

I am have a problem in the process of my GUI. I have 3 window which is the main window -> 2nd window -> 3rd window then exit. It works well when clicking the button going to 2nd window, but if I clicked the button to window 3 it crushes. The whole…
0
votes
1 answer

Open PyQt5 window in child multiprocessing.Process (Python3)

I'm trying to open a second window in a new process to not freeze the main window with PyQt5. For this reason, I define a new class that inherits from multiprocessing.Process and shows the window. This is the main code: class GuiMain(QMainWindow): …
edusan1213
  • 359
  • 5
  • 15
0
votes
0 answers

Create a window of custom class type in Qt

This is my first question here, so I'm trying to not sound stupid! EXPLANATION: I have a main window in Qt that has a button to create (sub-?) windows within the main window. This can be done as many times as the user wants, and each sub-window…
0
votes
1 answer

QWindow Hint doesn't work

I've tried to hide the bar of an QWindow object, but it doesn't work. The aim is, to show a scene from Ogre3D over an QWindows object in a MDI Area. This is the code in the MainWindow: ui->setupUi(this); QWindow *pcwindow = new…
M. 4
  • 21
  • 7
0
votes
2 answers

Launch Qt application from batch file

I have developed an application in Qt and outside Qt Creator, when I run this application, it works. But when I use a batch-file to execute the application I get this error: The application failed to start because it could not find or load the Qt…
user1703942
  • 317
  • 3
  • 15
0
votes
1 answer

Add QWidget on top of QOpenGLWindow

I want to add QWidget on top of my QOpenGLWindow. For example: In qmainwindow.cpp: QWidget *mywidget = new QWidget(this); mywidget->hide(); QOpenGLWindow *glwindow = new QOpenGLWindow(); QWidget *container = QWidget::createWindowContainer(glwindow,…
Steven Clark
  • 65
  • 1
  • 6
-1
votes
1 answer

In Pyqt5, QWindow, showMaximized() doesn't work. Why?

It's a tiny simple code. In this code, self.showMaximized() is not working. And even it's so tiny, I don't know why. import sys from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * class Window(QWindow): def…
baejusik
  • 71
  • 1
  • 8
1
2