[Qt-interest] program crashes when right mouse button clicked on the gui
Andre Somers
andre at familiesomers.nl
Wed Jun 2 09:22:40 CEST 2010
On 2-6-2010 8:28, hakiim the dream wrote:
> Hi, I am developing a desktop application which is an image
> processing/editing app similar to the GIMP or PaintDotNet.
> The problem is, whenever I click the right mouse button on the gui,
> the program enters into the "qscopedpointer.h" and
> throws an exception on the "inline T *data() const" function.
> I can't even debug the problem since it crashes whereever you
> right-click on the gui.
> The gui contains distinct widgets such as QGraphicsView, QListWidget,
> QPushButton, etc.
> Should I implement a right-click handler for each of the widgets? It
> doesn't make sense to me..
> What would you suggest?
>
You do not need to implement a right-click handler for every widget you
use, that would indeed not make sense.
If you have such a wide spread problem, I think you have some invalid
pointers floating around, doing double deletes or something like that.
You really need a debugger to find it.
--
Nokia Certified Qt Developer.
Interested in Qt related jobs or freelance Qt consulting.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100602/b5a42cc6/attachment.html
More information about the Qt-interest-old
mailing list