Questions tagged [qtgui]

QtGui module extends QtCore with GUI functionality. It has collection of classes useful for creating Qt based GUI applications

Prior to , the Qt GUI module was the monolithic container for all things relating to graphical user interfaces in Qt, and included the Qt widget set, the item views, the graphics view framework and also printing. Starting Qt 5, these classes have been moved to the Qt Widgets module. Printing has been moved to the Qt Print Support module. Please note that these modules can be excluded from a Qt installation.

If you use qmake to build your projects, Qt Gui is included by default.

The official Qt documentation can be found here for Qt 4.8 and here for Qt 5.

539 questions
0
votes
1 answer

Update Python GUI from another Python process

I've been Googling for almost two days now to find an answer about my problem in Python. And I'm totally lost and confused on how am I supposed to solve my problem. Here's what I want to do. I have a Python file name mymain.py(GUI) and its running…
0
votes
2 answers

C++ QT Getting part from QString

I have custom(dynamic QString) for example something like this 123+555 and i need to get this after +.Also there can be something different then + (/,*,- etc.). My question is how to get part of string after some char.
Wiruspwns
  • 1
  • 3
0
votes
0 answers

What is the best way of deleting a qpushbutton

Hello I need to know a way of deleting a QPushButton from my interface, i have not found a way that i s usefull for my program. for example: class Button(QtGui.QPushButton): def __init__(self, title, parent): super(Button,…
Polo D. Vargas
  • 1,649
  • 2
  • 14
  • 23
0
votes
0 answers

Application built by Qt for WinRT running slower than Qt for Android on same Windows 8.1 host

I'm using Qt 5.4.1 (for WinRT and Android) on same windows 8.1 host and project using GUI (such as QListView). I see the application running on Windows runtime (built by Qt creator for both WinRT and Android) very different in terms of performance…
lemta2000
  • 1
  • 1
0
votes
1 answer

Why is my mousePressEvent called twice?

I want to make a QLabel clickable and followed this "how-to". I was not sure how to get this piece of code into my GUI (I am quite newbie to qt). What I did was: I created a new class (just copy/paste of ClickableLabel from the link, but I changed…
463035818_is_not_an_ai
  • 109,796
  • 11
  • 89
  • 185
0
votes
1 answer

QtQuick 2 - Custom element, how to resize root object ot it's content?

Is there a way to resize custom element to fit it's content? I wrote some button example on QML, but I need that to resize with text length each time scene played if size not defined in main.qml. Sorry, but can't find something about that over…
user3417815
  • 615
  • 6
  • 28
0
votes
1 answer

QMainWindow : Set widgets size with respect to screen size

I have a Qt class which inherits from QMainWindow. The constructor of the class creates two widgets which are added to a horizontal layout object as follows: MyWindow::MyWindow() { resize(QDesktopWidget().availableGeometry(this).size()); …
Luca
  • 10,458
  • 24
  • 107
  • 234
0
votes
1 answer

Drawing a line dynamically on QtWidget

Here is a code to draw a line on widget. Problem is it's keeping the previously drawn line and on each mouse move it's drawing again and again. I want to draw like mspaint i.e only on mouse release event it will finalize the line drawing (otherwise…
ruben
  • 1,745
  • 5
  • 25
  • 47
0
votes
2 answers

QLineedit disabling/re-enabling.

I have an equation with four variables, only 3 need to be defined for the program to run. When 3 of the parameters have been defined (via lineedits in my GUI) I'd like the fourth to be greyed out. I only know how to link two parameters at the moment…
SageDO
  • 27
  • 1
  • 1
  • 8
0
votes
2 answers

transforming arrays into vectors and i got some undetected errors

i tried to change the array in my program with vector,it was working well when i used array but when i change it, the program cant work properly. Qt says no error and it could run but when i press the generate or the calculate button the program…
0
votes
0 answers

Passing a String to A pyqt Application

I am writing a pyqt application that will go and grab a wifi password behind a password protected site, I want to write a qt application that will use the form to provide my python script with the username and password, then return all that…
ratz08
  • 1
0
votes
0 answers

Qt GUI issue in RPI

I am new to QT and my task is to make GUI for Raspberry pi ( with Raspbian OS ) i have qt 4 installed in x86 machine and libs in RPI. I am devloping application in my x86 and cross compiling on RPI . Initaly i made a QT app and it was working on RPI…
user3405841
  • 1
  • 1
  • 8
0
votes
1 answer

Importing PyQt4.QtGui but not QtCore with PyCharm

My problem is that I can perfectly, in the ubuntu's terminal, type : from PyQt4 import QtCore, QtGui There are no errors.I think it means that python3.4 has all the modules I want. However, when I type those lines in PyCharm (with the 3.4python…
0
votes
0 answers

Running ProgressBar

Actual Code(posted on stack overflow) is pasted underneath . What i am trying is to remove the Start button and control status of the progressbar from a function inside some other class . import sys, time from PyQt4 import QtGui, QtCore class…
Deepak Kumar
  • 109
  • 1
  • 1
  • 12
0
votes
1 answer

PyQt 5 QTableView selection bar issue

I have a QTableView with a button on it to update the selected row the update button calls a Form to update the record (Qdialog in other class) After udpating the record i gove focus back to the Qtableview but i cant find it to give the focus bakc…
Rudi Werner
  • 99
  • 1
  • 9