Results 1 to 7 of 7

Thread: Problems with the Q_OBJECT-Macro

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2009
    Location
    Europe
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Problems with the Q_OBJECT-Macro

    Okay thank you.
    The reason why I changed it to a new()-constructor is, that I cannot debug the small program. If I start the debugger (under Eclipse Qt-integration, Linux) I get the message "No symbol "new" in current context." on the eclipse-console. I thought this isn't serious but I tied with a new()-operator.
    I start debugging with the main-method (obvious) but if I jump to the construction point ( QtExplorer w; ) the sourcecode-window is closed with a message "No source available for "" " and if I go one step further, the whole execution stops with the message "Cannot find bounds of current function".

    What is the meaning of that? (I installed the libqt-dbg!)

    Thank you in advance

    Sincerely Tok
    Last edited by tokstolle; 23rd March 2009 at 16:45.

  2. #2
    Join Date
    Mar 2009
    Location
    Europe
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Problems with the Q_OBJECT-Macro

    Ahhh, Im one step further.
    But now gdb on eclipse stucks with the message:
    Can't find a source file at "widgets/qlineedit.h"
    Locate the file or edit the source lookup path to include its location.
    So where should this source-code installed? I thought I have it all with the qt4-dev-package of debian?

    Thank you

    Sincerely Tok

  3. #3
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: Problems with the Q_OBJECT-Macro

    a) did you use #include <QLineEdit>?
    b) Look, if under project->properties->C++ Include paths the right directories are set.

Similar Threads

  1. Problems with Q_OBJECT macro
    By dbrmik in forum Qt Programming
    Replies: 21
    Last Post: 26th February 2009, 15:10
  2. Q_OBJECT macro - what exactly does it do?
    By magland in forum Qt Programming
    Replies: 3
    Last Post: 26th September 2007, 11:30
  3. Q_OBJECT macro issue
    By kandalf in forum Qt Programming
    Replies: 2
    Last Post: 23rd January 2007, 20:28
  4. QT4 Plugins - problems, problems
    By NormanDunbar in forum Qt Programming
    Replies: 6
    Last Post: 9th May 2006, 16:39

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.