Questions tagged as 'qt'

1
answer

Validate a QLineEdit to only get Double

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 ( ,...
asked by 30.07.2014 / 21:30
1
answer

How to check if a URL was successful in QML?

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...
asked by 19.05.2014 / 18:11
1
answer

Integer conversion to price using QLocate

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...
asked by 21.03.2014 / 13:15
1
answer

How to use QTreeWidget FindItem in PyQt?

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...
asked by 21.02.2014 / 18:36
1
answer

Copy local QVector to Class QVector

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...
asked by 26.05.2014 / 02:38
0
answers

How to promote Qgraphicsview in Qchartview?

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...
asked by 27.12.2018 / 16:10
0
answers

Error giving build on any protection in Qt Creator

WhenItrytobuildonanyprojectinQt,itgivesthiserrormessage(testwithoneoftheexamplesthatalreadycomeswithQt)13:15:37:Runningstepsforprojectanalogclock...13:15:37:Couldnotstartprocess"C:\Qt\Qt5.2.0.2.0\mingw48_32\bin\qmake.exe" C:\Qt\Qt5.2.0.2.0\ming...
asked by 28.03.2018 / 18:24
1
answer

Accents with QString in Qt 5.9 results in bizarre characters

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...
asked by 09.12.2017 / 18:15
0
answers

QCoreApplication :: applicationVersion does not "recognize" RC_FILE when using Mingw

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...
asked by 08.11.2017 / 21:32
0
answers

Not returning the value when I use the QT C ++ query

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...
asked by 19.07.2017 / 15:04