Questions tagged as 'qt-creator'

1
answer

Enter only numbers

I would like to know how I can in a QTextEdit allow only the entry of numbers, is there any property for it? PS: I need you not to write or enter the QTextEdit letters.     
asked by 01.08.2017 / 20:34
0
answers

Drivers not available in QT and PostgreSQL

I am trying to make a connection using QT to a PostgreSQL database. The code I was using is the following: #include <QCoreApplication> #include <QSqlDatabase> #include <QSqlQuery> #include <QDebug> int main(int argc,...
asked by 29.11.2017 / 12:08
1
answer

Error: Qt needs Xcode 5.0 on MacOS Sierra

I need to install Qt5 in MacOS Sierra (10.12.6), but when the installer is about to finish the message appears: I have version 9.0 of Xcode installed, but I read that Qt only needs the command line tools of this one. To install the comm...
asked by 27.09.2017 / 17:05
1
answer

Error including header in QtCreator project

My question is how can I solve the following error: In this case you have two different projects in QT. One of them contains a class called "Numbers". File .h: #ifndef NUMEROS_H #define NUMEROS_H class Numeros { public: Nume...
asked by 26.09.2017 / 15:09
1
answer

How can I work a QT project that does not have the file to recognize the project?

I'm working with a QT project, but this one although in its cpp and .h files it has the libraries that it requires to work with QT like #include. You do not have the file to be able to import the entire project in QTCreator. I hope I have exp...
asked by 01.08.2017 / 00:46
0
answers

Using QUndoStack with several widgets

Imagine a Widget with two buttons Undo and Redo and two QTextEdit , called Editor1 and Editor2 We know that every QTextEdit has its method undo() and redo() So far all I see, and I am able to do, is that whe...
asked by 16.08.2017 / 10:03
0
answers

When compiling in Qt I have a "g ++" error

When compiling in Qt I get this error and can not execute.    Project ERROR: Can not run compiler 'g ++'. Maybe you forgot to setup the environment? 15:22:23: The process   "C: \ Qt \ 5.9.1 \ mingw53_32 \ bin \ qmake.exe" exited with code 3...
asked by 13.07.2017 / 15:17