qobject
Tracking mouse move in QGraphicsScene class
I subclassed QGraphicsScene and added method mouseMoveEvent to handle mouse move event. I created a ruler on top of GraphicsView and have the ruler 开发者_运维知识库tracking mouse movement. In the QGr[详细]
2023-04-13 07:13 分类:问答Qt: bring base class method into slots in derived class
I have a class which derives from a QWid开发者_JS百科get and a model class. Based on my reading, I can\'t have the model class to derive from QObject.[详细]
2023-04-12 05:19 分类:问答(Qt Creator - Cpp Based Application) Q<Objects> VS using Pointers?
here is my code: //MainWindow.h #ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QtGui> class MainWindow : public QWidget[详细]
2023-04-06 19:06 分类:问答QObject double deletion
I am currently running Qt 4.7.4 on Mac OS X 10.6.I installed Qt using MacPorts. I have been trying to use test-driven development as a part of my coding practice, and I am using QtTest for this purpo[详细]
2023-04-03 19:14 分类:问答Not able to find quit slot, and use Q_OBJECT macro
I am using VS2008 with QT 4.7.1 and add-ins. I am new to this environment. I managed to do necessary setting and run simple \"hello world\". But when I try to use simple[详细]
2023-04-03 09:21 分类:问答QOBJECT macro declared
I have declared QOBJECT macro but still its calling the function without passing the QObject object Here is my code[详细]
2023-03-28 01:58 分类:问答Cannot declare Signal in baseclass
I am having a class A, parent of class B a开发者_运维百科nd class C. I have signals: declared and used in class B and class C. But when i try to write other signals: in class A, its giving me vtable r[详细]
2023-03-24 02:20 分类:问答C++ Assignment Operator without Copy Constructor
The question: Can I define an assignment operator and not the copy constructor? For an internal class (not exposed in the API), is this still a bad design practice?[详细]
2023-03-22 06:10 分类:问答Qt: Can child objects be composed in their parent object?
In Qt, can I embed child widgets in their parent via composition, or do I have to create them with new?[详细]
2023-03-10 07:38 分类:问答How can I get the QObject::deleteLater() to zero the object?
Normally when I delete an object I set it to zero. This helps in that I code my routines to check the object is not zero then proceed.[详细]
2023-03-07 14:23 分类:问答