Questions tagged as 'c++'

1
answer

How to apply / search for global / local transformations in OpenGL

I'm programming a simple Game Engine using the OpenGL graphics API. But I have a problem that I can not solve. The problem is that the transformations in the world (world) do not work correctly. The scale transformations are normal, but the...
asked by 20.04.2014 / 15:00
1
answer

View a dynamically loaded text / photo block with QML for Android

I'm writing an application using the QML of the newly released Qt 5.2 targeted for Android. On one of the screens I need to display an article that is loaded from a server and may change after the application has been released. The article would...
asked by 15.12.2013 / 18:09
1
answer

Qt calling the method in another class

I am calling a method from another class after inserting data. But this is returning an SQLite error: QSqlDatabasePrivate::removeDatabase: connection 'qt_sql_default_connection' is still in use, all queries will cease to work. QSqlDatabasePriv...
asked by 28.08.2015 / 01:06
2
answers

Windows Universal Apps C ++ vs C #

What is the difference between C # and C ++ to develop universal apps? I saw that in the templates from Visual Studio 2015 to C++ there is a Cross Plataform group with app templates for android and ios. How does th...
asked by 11.04.2016 / 15:23
1
answer

QCamera Windows "failed to start"

I made a QT application where I make the instance of a Camera with QT and display it in the window. So far so good, the problem is that when I want to display it in another window (QDialog) I get the error "failed to start". I wanted both window...
asked by 30.06.2015 / 20:57
1
answer

Sending characters through the serial port including zero-value bytes

I'm doing an application in which I need to send via an external hardware an array of characters (declared as unsigned char ) that contains commands and times. With the commands I have no problem, since each command corresponds to a...
asked by 12.11.2014 / 01:31
2
answers

Communication of C # and C ++

How can I make C # code call a variable that is in a C ++ file for example. Knowing I'm using Visual Studio. C ++ code: #include "stdafx.h" #include <iostream> int main() { int test = 10; return 0; } but how can I access...
asked by 24.07.2018 / 19:05
1
answer

How to use qtwebkit-plugins in my project?

QtWebkit-plugins is a library that provides features for QWebView , such as SpellCheck/Corretor ortografico and Notification Web API .    Read about on:       SpellCheck    Notification Web API...
asked by 04.03.2015 / 21:21
3
answers

How to use gets () in C ++?

How to use gets() in C++ , when prompted to type and store in a variable type char ?     
asked by 30.05.2015 / 19:20
2
answers

Check if variable has been defined

How do I check if a variable has been defined? Can #ifndef be used for this? Being clearer: #include <iostream> int getNumber() { if (check) { check = false; return 10; } else...
asked by 03.01.2015 / 01:32