Questions tagged as 'qt'

2
answers

How to put Qt 5.7 with MSVC2015 to work?

I have Microsoft Visual Studio Community 2015 for some time. I installed Qt 5.7 via online installer and included msvc2015 (already checked) in the installation program list. I tried to use Qt Creator, but it gives a compilation error. The...
asked by 18.01.2017 / 13:57
1
answer

Qt and Android - Get path of a gallery image

I'm developing a code to get an image of Galeria do Android . I'm using QtAndroid to write a code equivalent to java in Qt. I already opened the gallery, I selected the image and I got the path, but the return is MediaColumn...
asked by 30.11.2015 / 20:37
1
answer

Background and icon in tableView

I'd like to know how do I add a tableView to the background and icone property? I can already add the Background is now missing the icon. Code: class tableView : public QSqlTableModel { Q_OBJECT pub...
asked by 27.03.2014 / 02:30
1
answer

Move square with mouse only in vector X or Y

I'm learning about QgraphicsScene , QgraphicsItem I'm trying to move two squares with the mouse in the window, however moving only in vector X or only in vector Y, but they only move in one vector at a time as if are tied to move on...
asked by 17.10.2014 / 21:49
1
answer

Why do strings (QString) not appear during debugging in Visual Studio?

I have a program in Qt 5 where I use QString to manipulate text strings. However, when I debug the program, I can not see the contents of the strings (either in the "Auto", "Locals" or "Watch" window, or even when I leave the mouse poin...
asked by 14.03.2016 / 12:25
1
answer

Format string qt html charset

I have the following string: QString str="Macarr & # x & 3; the integral. (I put space between all characters of the special character if it would not be visible and would appear A with the uncle "ã") and wanted to format it so that it lo...
asked by 11.11.2015 / 00:40
1
answer

C ++ class with several constructors - File header and cpp

I have a C ++ class where I have two constructors. In the minhaclasse.h file: public: MinhaClasse(int x1); MinhaClasse(int x1, int x2); Then in the minhaclasse.cpp file I usually create the builders that I declared there in the header....
asked by 25.06.2015 / 16:19
2
answers

Error compiling project in QT Creator

I'm serious about studying programming and I chose the QT framework, when I was with a dualboot on my computer there was this problem that I'm having right now after removing the dualboot in> and install only Ubuntu 14.10. In Ubuntu installe...
asked by 27.11.2014 / 05:55
2
answers

How to connect a MySql database with QT over a LAN?

Hello, at the moment I'm noob in handling servers with databases. I am using Qt Creator 5.3 to develop my project, and I decided to incorporate a Mysql 5.7 bank to it. I'm trying to establish a simple connection between my application and the My...
asked by 23.08.2016 / 22:30
1
answer

c ++ - How to return a value to a previous window in Qt?

Hello, I'm developing a project where I will have many calls to new windows and need to recover a value of these windows to the main window (MainWindow). The problem is that it becomes impossible to get the returned value because, when closing t...
asked by 29.08.2016 / 16:34