qwidget Questions

0

I have a QWidget with a QGraphicsView and a push button. The QGraphicsView has to take mouse press and release events to detect a swipe .At the same time push button should run a small function on ...
Whelp asked 7/4, 2016 at 3:55

5

Solved

I am using the constructor QWidget(QWidget *parent). This parent widget contains a lot of child widgets. I need to clear all the child widgets from the parent at runtime. How can I do this?
Hamitosemitic asked 15/10, 2010 at 7:52

1

Solved

New to PyQt5... Here is a very basic question. I would like to add an image inside the layout of a widget. This widget is the Main Window / root widget of my application. I use the following code,...
Richers asked 16/2, 2016 at 2:14

2

I have some information/notification widget that should be displayed when some even occurs. My idea was to have a widget that is hidden in top left corner and would be shown when needed. Problem is...
Tuscan asked 26/1, 2015 at 9:19

1

Solved

I know I can use the widget function of QTabWidget in order to get the the QPlanTextEdit from the specified tab. But how can I get the tab title text of the current tab widget? QPlainTextEdit* pTe...
Waistband asked 4/1, 2016 at 23:12

3

Solved

I am having an issue with PyQt4. I want to create a new widget within a window, and I want this widget to have a custom color. When i create a subclass of the QWidget class, and instantiate it, I...
Discrepancy asked 2/4, 2010 at 9:40

4

Solved

I have a custom QWidget and I simple don't want it to show up in the taskbar. I have a QSystemTrayIcon for managing exiting/minimizing etc.
Monoploid asked 29/10, 2010 at 20:8

0

As of Qt 5 documentation says: The supported units are: px: pixels pt: the size of one point (i.e., 1/72 of an inch) em: the em width of the font (i.e., the width of 'M') ex: the ex width of t...
Innoxious asked 27/11, 2015 at 19:32

2

Solved

I have an ui file with a QProgressBar in a QWidget. Moreover, I've created my custom progress bar component that inherits from QProgressBar. In QT Designer, I can promote the QProgressBar widget to...
Hooten asked 15/9, 2015 at 10:59

1

Solved

I have a QWidget, the parent class for all my other widgets. In Qt Designer I set width = 600 and height = 400 for the QWidget. My size Policy is [Fixed, Fixed, 0, 0]. But if I start my the appli...
Homocentric asked 20/8, 2015 at 11:6

2

Solved

I am working on a Qt Project and for this project I require to design something like this: I have designed so far in Qt Creator and I have the component ready, but when I am trying to add widget...
Cherianne asked 1/7, 2014 at 4:10

1

Solved

I have a requirement for my project to display two QML Windows each on one of the screen (one sender, one receiver). Both of the .qml requires me to include some Cpp models inside hence, I'm using ...
Goodspeed asked 8/7, 2015 at 16:47

1

Solved

I have an application with a custom theme and the disabled icons are to brightly grayed. I would like to change the disabled icon tint color. Now I know there is a possibility like this: QTableWi...
Dareen asked 16/6, 2015 at 10:36

1

I'm looking to port an emulator I wrote in GTK2 and SDL1.2 into using QT5 and SDL2.0.3. So far thats been fine as far as the emulator all works in SDL2 independantly and the GUI works fine in QT, w...
Tubulure asked 10/8, 2014 at 20:34

1

When dragging a widget with mouse the widet is freely moved (widget with frame). What I want to achieve is to have certain areas wher the moved widget is snaps for example to other widget or border...
Charlotte asked 3/4, 2015 at 12:31

1

Solved

So I have this QFrame which is the parent widget (represented by this in the code). In this widget, I want to place a QWidget at 10 px from top (and 10 px from bottom, as a result of which it will ...
Census asked 2/3, 2015 at 19:51

3

Solved

I have to make something like the iOS interface, 3x3 field of icons that can be dragged to change their position, and then remember it in an XML file. I decided to use Grid class (QWidget is pare...
Collotype asked 18/8, 2013 at 12:29

3

Solved

I need to implement LineEdit widget with possibility to add tool buttons at the right end of text area. I know two ways of doing that but both solutions seems ugly. 1) add tool buttons as child wi...
Darrow asked 20/1, 2014 at 11:1

4

Solved

I think I've run into a kind of diamond inheritance problem here. Qt provides a couple of spin boxes, for integer values, for doubles and also for dates/times. They all derive from QAbstractSpinBo...
Cystine asked 12/12, 2014 at 18:5

1

Solved

I've been reading up on the ownership of Qwidgets and deleting them. eg: http://qt-project.org/doc/qt-4.8/objecttrees.html This says "You can also delete child objects yourself, and they will remo...
Presentment asked 8/11, 2014 at 12:32

2

Solved

I have a QDoubleSpinBox in range 0-7000, but want the value always displayed as 4 digits (0-> 0000, 1 -> 0001 , 30 -> 0030, 3333 -> 3333). I understand I can add a prefix, but a prefix is always a...
Anzovin asked 23/10, 2014 at 21:5

1

Solved

There are comprehensive examples for style sheets of QWidgets here. Unfortunately QDial is missing from the examples. Can I change the appearance (basically the color, border of the rotary knob) j...
Ritaritardando asked 6/1, 2014 at 14:35

2

Solved

I have one main Widget and inside this main widget I have QListWidget and two buttons. I have override the keyPressEvent inside the main widget (inherited from QWidget). I can receive the keyPress ...
Apparatus asked 14/10, 2014 at 19:20

1

Solved

I'm making a little app for applying various filters on an image using Qt and C++. My question is, is it possible to add multiple widgets on a QDockWidget ? As i want to add buttons for re-applyin...
Balkanize asked 9/10, 2014 at 11:4

1

Solved

My problem: I want to customize the way the title bar works and looks for my application. My idea: I created a new QWidget form in Qt Designer and added a QWidget to it. I added the following co...
Drandell asked 30/8, 2014 at 16:0

© 2022 - 2024 — McMap. All rights reserved.