Questions tagged as 'c++'

1
answer

How to customize "Notification Web API" in Qt?

I'm creating a simple browser using QtWebkit and added it the "support" for Notification Web API using QWebPage::setFeaturePermission . An example: function notifyMe() { if (Notification.permission === "granted") {...
asked by 03.03.2015 / 18:46
1
answer

How to use string in C ++?

I'm having trouble dealing with string . #include <stdio.h> #include <conio.h> #include <stdlib.h> #include <iostream> using namespace std; bool ArqExiste(string Arquivo) { ifstream verificacao (Arquivo.c_str...
asked by 09.07.2015 / 17:01
1
answer

Filter month in QSqlTableModel

How do I filter the month in QSqlTableModel ? I'm doing this: model = new QSqlTableModel(this); model->setTable("tabela"); // db sqlite model->setFilter("strftime('%m', campo_dataCadastro)='04'");//db YYYY/MM/DD HH:MM:SS model-&...
asked by 23.04.2014 / 17:26
0
answers

Create "drawings" with windows API

Hello, I need help with the windows API when it comes to manipulating "drawings". My problem is that resizing or minimizing the window disappears everything that was printed on the console. This is what I have already been able to do about this...
asked by 06.06.2018 / 17:22
2
answers

How to use gtkmm-3 and standard input together?

I want to make a program with Gtk that reads data from standard input and interprets by doing drawings in a DrawingArea . The concept is simple, but I came across a problem: after I call Gtk::Application::run the only code writte...
asked by 28.03.2014 / 05:31
0
answers

Can not find -lleg (DEV C ++ and Allegro)

Staff every time I try to run this code is giving this error follow the code below: #include <allegro.h> int main() { allegro_init(); install_keyboard(); set_color_depth(32); set_gfx_mode(GFX_AUTODETECT_WINDOW...
asked by 24.10.2017 / 20:00
1
answer

Problems with threads in C ++

Hello, I'm using mingw, 32-bit version on windows 7 Ultimate and I'm having trouble using threads. I know they do not work for this version of mingw, which is why I use the version on this link . But I do not compile this example because it say...
asked by 16.05.2018 / 23:17
1
answer

Class creation in C ++

I'm developing a project and need to create an inner class. Am I required to create a .cpp and .h?     
asked by 16.03.2014 / 15:35
0
answers

Bad compilation optimization

I've set up Visual Studio to compile VC ++ with /Ox and compiled this code (with more others being omitted for simplicity). union { unsigned long long u64 ; unsigned short u16[4] ; } x ; union { unsigned u32 ; unsigned short u16[2] ; }...
asked by 11.08.2017 / 20:44
1
answer

Is there any problem with pointers in this struct that works with linked lists?

Hello. I'm developing a game with the C ++ language and I think I'm making a mistake in using threaded lists. I emphasize that I know there are more interesting features than using linked lists in C ++, but this is a project I did for college...
asked by 13.12.2015 / 15:03