qwidget Questions
2
Solved
I am looking for a way to create a grid of graphs that can be dragged/dropped to rearrange the order. My first try was using QDockWidgets as they allow for drag/drop, however they were limited in a...
Slr asked 31/3, 2020 at 7:6
3
Solved
Im designing a Pyside Qt application and I want to toggle the QtCore.Qt.WindowStaysOnTopHint window flag in my main window. Setting this hint using this code works fine:
self.setWindowFlags(QtCore...
Phratry asked 3/1, 2014 at 1:46
3
Solved
I was trying to insert a QCombobox only in some specific cells of my QTreeview. As I read, I think that I need to create my delegate (that I've created). But I don't understand how to insert this i...
4
Solved
1
Solved
I have PyQt5 app that embeds a folium Map within a QWidget.
Here's a minimal example of the class I wrote :
import folium
import io
from folium.plugins import Draw, MousePosition, HeatMap
fr...
4
Solved
I have a QWidget in a dialog. Over the course of the program running, several QCheckBox * objects are added to the layout like this:
QCheckBox *c = new QCheckBox("Checkbox text");
ui->myWidget-...
3
Solved
Neither I could find a tutorial-like scheme for a resize event on QMainWindow, nor I did see any option for adding resize event in the drop-down menu at the Qt design window.
I am new to Qt. I'd ...
4
I have a simple QStackedWidget with 3 different QWidgets in it. The minimum sizes of the QWidgets are (350x200), (200x100), and (450x450).
So the problem I'm having is when I resize the QStackedWi...
Compensation asked 7/5, 2014 at 7:28
9
Solved
I would like to create a custom widget in Qt with the following features:
It is a container
It may be populated with any Qt layout
It may be inside any Qt layout
A button allows to collapse/fold ...
Lindsley asked 9/9, 2015 at 9:34
0
I'm implementing a custom text layouting engine and I need a simple text output function that would function similar to WinAPI's TabbedTextOut. That is, it shouldn't wrap words or anything like tha...
Fluecure asked 13/6, 2021 at 6:54
2
I'm using python3 and pyqt4 and I want some code to run every time my QMainWindow is resized.I would like something like this
self.window.resized.connect(self.resize)
but resized is not a builti...
Verdun asked 11/12, 2016 at 21:14
1
Solved
Qt's widgets have 2 properties determining how small they can be:
minimumSizeHint
minimumSize
Now their basic difference seems clear enough: minimumSize restricts what size the widget can actua...
2
Solved
I'm trying to make a main window (QWidget) which open a new QWidget when a button is clicked but when I close the main window, the QWidget recently opened doesn't close.
main.cpp
QApplication a(a...
3
Solved
I need to draw transparent window (either QLabel or QFrame or QWidget), but without using WA_TranslucentBackground. The reason for that is that the windows will contain other child widgets rendered...
Hatband asked 11/1, 2016 at 4:48
2
Solved
I am trying to build an application using PyQt. A part of the application runs a thread which takes some time to complete. How can I add a waiting indicator (preferably circular) to indicate runnin...
6
Only one error to go until I get to use this for my research!
Warning: Z-order assignment: " is not a valid widget.
FILE: qvvideoreaderblockwidget.ui
There's no line number that came with it. I ...
Dogmatist asked 26/7, 2011 at 14:24
5
Solved
I know that there is a function QWidget::setWindowOpacity(qreal level) but as written in the documentation this does only work for windows.
Is there a way to make widgets that are lying inside lay...
2
I am a beginner in QML and try to insert a QML View in QWdiget but I don't understand why it doesn't work.
Here is a simple example of my qml file (this is not the real file):
import QtQuick 2.4
im...
1
This is the plot
And this is the code
.pro
QT += core gui widgets datavisualization
TEMPLATE = app
SOURCES += main.cpp mainwindow.cpp
HEADERS += mainwindow.h
main.cpp
#include "mainwindow.c...
Barsac asked 21/8, 2019 at 16:38
2
Solved
I am attempting to create a custom QWidget (from PyQt5) whose background colour can change. However, all the standard methods of setting the background colour do not seem to work for a custom QWidg...
Ubangi asked 3/9, 2019 at 20:37
5
Solved
How would I go about resizing the widget when the retry child is hidden so that it looks as in the first image? The main layout is a QVBoxLayout, the retry child is a widget with a QVBoxLayout as w...
1
I have been looking into the two classes QOpenGLWindow and QOpenGLWidget. And in the documentation of QOpenGLWindow it states: "Unlike QOpenGLWidget, QOpenGLWindow has no dependency on the widgets ...
Mountaineer asked 26/3, 2019 at 18:18
2
Solved
I work at my homework in Qt Creator, where I paint to QWidget and I need to save some part of this QWdiget.
I tried to solve this problem:
QPixmap pixmap;
pixmap.copy(rectangle); // rectangle i...
3
Solved
I want to disable all but a selected set of widgets in my Qt application.
What I am trying to do is to iterate all children of mainWindow using findChildren and disable all the resulting widgets ...
2
Solved
I have a QMainWindow that I initialize with a QWidget. I want that each Time I'll press the button New In my QMainWiindow, it will open the QWidget temporarily (in my case, until mouse button relea...
Bina asked 1/8, 2018 at 14:7
1 Next >
© 2022 - 2024 — McMap. All rights reserved.