Questions tagged as 'qt'

1
answer

problem with the Sorting in a QTableWidget

I'm putting together a table with QTableWidget in PyQt5 .. I set the sortingEnabled to True , but the problem is that it does not sort the numbers well. For example, if I'm 20, 201 and 30, sort them as follows:...
asked by 14.11.2018 / 18:36
0
answers

WebViewer or QWebBrowser for QT4

I am currently using QtextBrowser to show me the text of a url in a window. The problem is that with QTextBrowser I do not load the images of the url, only the text. I have observed that in QT5 QwebBrowser is used, but the problem arises beca...
asked by 07.11.2018 / 12:14
2
answers

how to modify objects in a form, from another form, QT creator

How can I modify the components of a mainform.ui (Qlabels, comboBox, etc.) from another form, and vice versa? ex: 1-mainform.ui has a button (called "button1"), when I click on button1 I want to disable a button located in otherform.ui (called "...
asked by 26.10.2018 / 15:29
1
answer

How to update a database from Qt?

I have a program that opens a database and presents the database through a model in a table view in Qt. I am able to add and delete rows in my database through some buttons that activate the action and some text boxes where to put the informa...
asked by 24.10.2018 / 08:08
1
answer

The query values are not displayed in BlComboBox. QT4

I can not get a BlCombobox to show me the values of a query. I've done it like others in the code and nothing, I do not know what can happen. interval_date.h #ifndef INTERVALOFECHAS_H #define INTERVALOFECHAS_H #include "blcrear.h" #include...
asked by 17.10.2018 / 10:26
1
answer

method sort () gives me unexpected error, in C ++ (QT)

I have a list that stores objects like AIRCRAFT and I want to sort it by one of its float parameters downwards. In a class called airport I have a floating fleet static list, in which, in a part of the program I fill all the data. Code of...
asked by 09.10.2018 / 14:41
0
answers

Qt - Insert a QTableWidget into a QTableWidget

I wanted to insert a table into another table in a GUI in Qt. The idea is that each cell of the parent table contains a daughter table. Is this possible? Thanks and regards!     
asked by 24.08.2018 / 12:55
2
answers

QSerialPort - Reading cut

I am having problems to read whole lines from the serial port in linux. I have a gps that connects to the serial port and I can not get the lines read from it to arrive complete. I put the code that I have (taken from the Terminal Example Exampl...
asked by 04.07.2018 / 22:55
0
answers

Qt - QGraphicsItem linux - It gets slow and degrades over time

I continue with bad performance with my QGraphicsItem in linux on a RaspberryPI3B. I understand that the problem may come here, in this paint, that when I receive a new point to draw on the path (tracker), it recreates ALL the QPainterPath again...
asked by 13.06.2018 / 23:09
0
answers

Qt - PainterPath.intersected very slow

I have a QPainterPath that contains several consecutive polygons of a path. Given a new polygon, I need to know if this intersects or not with the QPainterPath and in case of intersecting, keep that intersection in a QList. The code I got is the...
asked by 18.06.2018 / 21:36