I'm using QDoubleValidator data = new QDoubleValidator(0.00, 1000.00, 2, lineEdit);
But when you enter the actual value in the lineEdit field, it does not use the dot ( . ) as the decimal separator, and yes comma ( ,...
In QML, I can run an external URL using:
Qt.openUrlExternally(url);
With this, I can, for example, have the Facebook app open in a certain profile:
var test = Qt.openUrlExternally('fb://profile/###########');
However, if the Facebook a...
How can I use QLocate to convert integer to standard Brazilian price form
(without rounding off the values)?
Code:
QString n1 = "1.020,50";
QString n2 = "10,33";
int valor1 = n1.replace(".","").replace(",","").toInt();
int valor2...
I have a QTreeWidget tree with several items previously included. I need to look up if a string x has the same text value as my QTreeWidgetItem , so I need to check all the items in my tree. Does anyone know how I can use thi...
This is what I'm doing in the Nail LineChart chart for a class work, I'm having a lot of difficulties with the C ++ language, in a certain part of the code I pass by a QVector<QPoint> parameter, and I want to paint on the DrawLin...
I'm new to Qt Creator, I want to know how to display 2 or 3 graphics on a single screen, I've already seen some examples that Qt provides, but they do not show how I want to learn how to do it, please Help. p>
/file.cpp
#include <QtWidget...
Hi, good afternoon, I'm with a doubt that I can not fix at all
the code is as follows ....
QTextStream stream( &file );
stream.setCodec("ISO 8859-1");
stream << "<p align=center><font size=4...
I've created a rc ( Resource File >) and added it to the project ( winvertest.pro ):
rcexample.rc
#include "winver.h"
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,0,1
PRODUCTVERSION 1,0,0,1
FILEFLAGS 0x0L...
When I use the following query to return the docile of the bank's data, the following message appears:
QSqlQuery :: value: not positioned on a valid record
I use the same code model and it is working, only the one that does not, it follows...