qwidget Questions
1
Solved
I want to create some tabs, and I read this answer: How to add a tab in PySide
I use the code in the answer and made some changes. Cause my code has to read some files and get the name of my tabs ...
1
I have got a QListWidgetItem, which has a QWidget and some QLabels. The height of the labels (imageLabel, titleLabel and descriptionLabel) varies depending on the text length. So does the height of...
Hidalgo asked 6/8, 2014 at 10:33
1
I have created my own custom widget and I want to support internal drag and drop for the widgets.
I have added 4 of my custom widgets in a vertical box layout. Now i want to drag and drop the cust...
Smithy asked 8/12, 2013 at 12:20
3
I'm trying to make a game using Qt, cause it is so awesome ;) and you have all the stuff you need for free. The only problem is in changing system resolution and setting QWidget (or QGLWidget) "rea...
Sweetsop asked 23/2, 2012 at 12:21
2
Does such widget exist?
I can write my own widget based on QLabels and layout similar to http://qt-project.org/doc/qt-5/qtwidgets-layouts-flowlayout-example.html, but then I can't select all text ...
1
Solved
I am using PySide 1.2.1 with Python 2.7 and I need a widget to draw a colored background.
In Qt Designer I created a simple window consisting of a label, a widget containing three other items and a...
Foretooth asked 16/4, 2014 at 8:33
2
Solved
In my application I have to replace all QLineEdit elements with customized QLineEdit. To do that there are different solutions:
Modify the generated py file from pyuic4 and replace there all QLin...
Scutari asked 20/3, 2014 at 9:21
5
Solved
Is there a way to use any C++ function as a Qt slot, without having its class inheriting from QWidget?
Thierry asked 29/3, 2012 at 8:50
1
Solved
I am working in Qt 4.7, and I have a QWidget object in my dialog. I need to go through each of the children and extract the current text into a QStringList. Every other object is a QCheckBox, and t...
2
Solved
I want to insert QQuickView to my old qt4 application in some widget layout. How to mix QWidget and QWindow in a single application?
Are there any examples?
1
Solved
To bring the user's attention to the text field with an error (or if it is not filled) I colorize this QLineEdit) using:
red = "QWidget { background-color:#8B0000;}"
my_cool_QLineEdit.setStyleShee...
1
Solved
I have a simple Qt widget. It's a QLabel with a simple CSS style applied. The important part of the style is a round border:
QString css("border-style: solid;"
"border-width: 3px;"
"border-radiu...
Claudetteclaudia asked 2/12, 2013 at 9:5
1
Solved
I am creating a GUI application in Qt. This application is to display output of a application X which is not related to Qt hence i cant integrate it. X will output a video . This video do not have ...
5
I'm trying to run a simple Qt program, and when doing so, I get a console window mentioning: QWidget: Cannot create a QWidget when no GUI is being used, and the second line This application has req...
2
Solved
I'm trying to compile a program (found here: http://sourceforge.net/projects/lisem/) by following the instructions said by the author. However, when compiling it in Qt Creator, it gives the error:
...
3
Solved
I want to develop an application with two main widgets one is a text editor and the other one is for graphic viewer.
The basic idea is to let the user hover over any block of code in the text ar...
Cornelia asked 26/9, 2013 at 12:6
2
Solved
I have a custom widget, which inherits QWidget. It has own paintEvent and I cannot change it. So I want to use such a widget in my dialog object, but I need to draw some graphics on it after it dra...
3
Solved
i'm having difficulties implementing custom widget rendering in a QListView.
I currently have a QListView displaying my custom model called PlayQueue based on QAbstractListModel.
This is working f...
Spiritism asked 23/6, 2011 at 10:50
1
Solved
Is it possible to keep a QWidget open after close button clicked? Suppose that widget is main widget. i.e. not child of another widget.
0
I have a form written with Qt Designer, which contains a QWidget promoted to a custom widget I have. The custom widget contains several combo boxes. I want the form to have a reasonable tab order, ...
2
Solved
In our project we have three independent applications, and we have to develop a QT control application that controls these three applications. The main window will be seperated to three sub windows...
Reichenberg asked 27/8, 2013 at 18:25
1
Solved
I'm using Qt and C++ to create a custom widget I call ThumbnailView, which allows for left/right scrolling of thumbnail images:
class ThumbnailView : public QWidget {
public:
virtual void paintEv...
1
Solved
I'm making an application that shows a map of an area and I'm trying to draw nodes on top of it which can represent information.
I made it all work, but did so simply by making one custom widget w...
Dysphonia asked 14/5, 2013 at 13:51
1
Solved
The Qt 5.0 provides a new QWindow class. While the documentation on this class is quite comprehensive, I am failing to see how exactly the QWindow is different from the QWidget class, and in which ...
2
Solved
© 2022 - 2024 — McMap. All rights reserved.