qtgui Questions

2

Solved

I need to display QLineEdit with "Browse" button at my form. When user clicks button, QFileDialog should be opened, and so on. This is pretty common thing, but I can't find ready-made solution for...
Splayfoot asked 27/12, 2013 at 4:32

5

Solved

I am going to write program using Qt for some image processing and I want it to be able to run in non-gui mode (daemon mode?). I'm inspired by VLC player, which is "typically" GUI program, where yo...
Traps asked 24/5, 2014 at 12:10

4

Solved

In my windows-only program, I use a third-party library, which returns a HBITMAP. Is there a way to initialize a QImage from its contents, i.e. to convert it to a QImage?
Sphacelus asked 28/1, 2013 at 18:24

3

Solved

I'm searching for Qt widget like QSlider, but with text tick labels support like this: This widget I'll use as mode switcher. Have you met something like that?
Caban asked 26/12, 2014 at 20:53

1

Suppose I have a gridlayout of three columns. I want each column to have custom width. Seems to me that the width of the columns are fixed automatically. How can I do this in the qt designer?
Pinter asked 19/10, 2015 at 4:18

3

Solved

I am trying to create QByteArray from QImage, however although I tried lots of varient, I couldn't handle it. What I am doing is : QImage img_enrll; // <--- There is an image coming from ano...
Tees asked 7/12, 2014 at 14:20

5

Solved

I want a line edit which accepts an ip address. If I give input mask as: ui->lineEdit->setInputMask("000.000.000.000"); It is accepting values greater than 255. If I give a validator then ...
Prewar asked 19/4, 2014 at 5:33

6

Solved

Is there some reason that QtGui is packaged with PyQt5??? I am using Mark Summerfield's Rapid GUI programming book. Obviously this book was written with Qt4 in mind, but I have been recommended to...
Sis asked 30/6, 2013 at 7:12

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 ...
Buyers asked 26/11, 2013 at 5:46

4

Solved

I have multiple versions of Qt installed, and I need to compile my project with all of them. Using a pro file, I could not find in the documentation how to do a conditional compilation. Ideally, ...
Leftover asked 6/9, 2013 at 17:27

1

Solved

I have created a simple Qt application with only a MainWindow and a Button. When I build it in Qt using Qmake it works fine and UI is good as well. On other hand if build it using CMake it works fi...
Callean asked 24/7, 2017 at 16:39

2

Solved

I want to allow a user using my application to be able to drag a boundary between two widgets in my window which will resize the two (i.e. you drag it down and the top one will get bigger while the...
Poirier asked 17/6, 2016 at 16:30

4

In one of the answers to Get HWND on windows with Qt5 (from WId) it is suggested to employ QPlatformNativeInterface in order to recover the native window handler. To access the QT header though th...
Homosexuality asked 15/3, 2013 at 12:25

1

Solved

Some environment basics Python Version: 3.4.2 OS: Windows 8.1 Searching so far, I suspect this other question is related to my issue at hand, but I'm not sure how I'm replicating enough of the sam...
Ethos asked 8/5, 2015 at 1:40

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

I'm trying to implement something like "composed icon" in Qt. Target: I need to dynamicaly set color just for the portion of icon. My idea: Compose this icon by two other. One icon that will be...
Kierkegaard asked 18/12, 2014 at 8:9

3

Solved

I am trying to handle exception in my Qt application, I went through a couple of posts which indicated of overriding the QApplication::notify method to handle exceptions in a efficient way in Qt. I...
Myrtismyrtle asked 22/12, 2014 at 17:49

2

I am attempting to add an icon to my QMenu using Qt Designer, however I realized that my text disappears when my icon is added. Is there any way for me to show my icon next to my text?
Hamza asked 17/9, 2013 at 4:6

2

I use two QGLWidgets. One for loading textures and one for rendering, but it is not working. I used the following explanation from http://blog.qt.digia.com/blog/2011/06/03/threaded-opengl-in-4-8/...
Extricate asked 5/10, 2013 at 20:23

3

Solved

I'm new to model view and I have been following this tutorial while checking the documentation at the same time and I stumbled upon this little detail : The code of the tutorial which can be downlo...
Airworthy asked 26/12, 2013 at 12:4

2

Solved

I have a QGraphicsEllipseItem that I want to be movable and triggering signals on moving. So I subclassed QGraphicsEllipseItem and QObject and overrode the itemChange method to trigger a signal. Th...
Alphorn asked 4/2, 2014 at 14:50

1

Solved

I never check it when promoting widgets, and everything works, but I've always wondered what it is for. Does anyone know?
Jake asked 4/6, 2014 at 7:45

2

Solved

QOpenGLFunctions seems to be missing important functions such as glInvalidateFramebuffer and glMapBuffer. From what I understand QOpenGLFunctions loads the intersection of both desktop OpenGL funct...
Parish asked 26/5, 2014 at 8:25

1

Solved

I'm running Ubuntu 13.10 (python-3.3.2+) . I've installed Qt5.2.1 (linux installer) , SIP 4.15.5 & PyQt5 both from source of the official site. PyQt5 build : The Qt qmake is located here je...
Damara asked 23/3, 2014 at 23:4

2

Solved

How to change the IconSize of QToolButton. button1->setIcon(QIcon("download.jpg")); button1->setFixedSize(100,100); By using above code button size is getting change but icon inside the bu...
Eject asked 15/1, 2014 at 9:32

© 2022 - 2025 — McMap. All rights reserved.