Questions tagged as 'qt'

1
answer

error: C1083: Unable to open the file include: 'QKeyEvent':

I can not include this library to my application. Try to include it in the following way: #include <QEvent> #include <QKeyEvent> However, it shows me the following error:    user \ filter \ filterofperfectpersonalized.cpp: 4:...
asked by 11.10.2016 / 12:49
2
answers

Differentiate a program with a HASH in QT

Hi, I want to create an alias for each program that I create in qt and that this alias is different. I was thinking about using hashes and converting them into a string. For example: I compile a program every time I compile that program it has t...
asked by 17.10.2016 / 14:44
1
answer

QT error appears

It shows me a message and the compiler does not even appear to me. Install all Visual Studio Community 2015 what happens? This is the error I get:     
asked by 27.09.2016 / 15:27
1
answer

serial communication PIC Qt

I'm doing an interface in QT which should show values of Different sensors, I use a PIC 18f4580 with RS232 communication for reading and transmitting data, to send the data I put them in a string of characters and send them as follows: #use RS...
asked by 05.07.2018 / 00:41
1
answer

Doubt about inheritance and call to functions in base class

The doubt has come for Qt, but it is C ++. If I have a class structure like this: (I only define eventFilter ) class DelegadoBase : public QStyledItemDelegate { Q_OBJECT public: explicit DelegadoBase(QObject* parent=nullptr);...
asked by 13.11.2017 / 18:44
1
answer

Placing windows on the screen with QT

I'm doing an application in C ++ using QT Creator that opens several windows at the same time. The problem is that all are placed one above the other, what is the operation that allows to place the windows in a specific part of the screen ?. Gre...
asked by 06.05.2018 / 14:22
1
answer

I have this problem with the qt conect

I miss error in the following code line: connect(timer, &QTimer::timeout, this, [this,x,y]() { lab.eliminarArtefactoPosible(x,y); }); The error that informs me is:    no matching function for call to 'MainWindow :: connect (QTimer *...
asked by 21.02.2018 / 20:51
1
answer

Project ERROR: Can not run compiler 'g ++'. Maybe you forgot to setup the environment?

When I compile an example of Qt, this message appears to me and can not be solved: Project ERROR: Cannot run compiler 'g++'. Maybe you forgot to setup the environment? 15:22:23: The process "C:\Qt.9.1\mingw53_32\bin\qmake.exe" exited with cod...
asked by 13.07.2017 / 15:42
1
answer

assign an icon to a qfile

Hello, I'm trying to assign an icon to a qfile. When I refer to a qfile, I refer to the lifelong qfile: QFile file("example.txt"); Documentation:    link But what I wanted was to assign to this qfile an icon. The problem can not fi...
asked by 12.12.2016 / 01:38
1
answer

How to draw a line on an image in Qt? [closed]

We need to draw a line on an image in the Qt program     
asked by 10.06.2016 / 12:09