Posts by Kaue • 23 points
4 posts
-
1
votes1
answer200
viewsQ: Constructor error parameterized c++
What happens when a class with parameterized constructor is created, with no default constructor, and the object of this type is called without argument in the constructor in c++? Does compile error…
-
0
votes1
answer59
viewsQ: Why can’t I capture Keyevent in this program ? Problems are in the main?
#include<QApplication> #include<tabuleiro.h> #include<jogador.h> #include<QWidget> int main(int argc, char* argv[]){ QApplication app(argc, argv); QWidget window; Tabuleiro…
-
0
votes1
answer45
viewsQ: Possible to implement Keyevent in a class that inherits from Qwidget instead of Qframe
My class: class Jogador : public QWidget { Q_OBJECT public: Jogador(QWidget* parent = NULL); void draw(); void paintEvent(QPaintEvent* event); void keyPressEvent(QKeyEvent* event); private: int…
-
1
votes1
answer160
viewsQ: Copy Qvector Local to Qvector Class
Here’s what I’m doing in the nail a Linechart chart chart for a class assignment, I’m having huge difficulties with the C++ language, in some part of the code step by parameter a…