what the strange code
Qt Code:
... QtExplorer w = new QtExplorer; w.show(); ...To copy to clipboard, switch view to plain text mode
modify it
Qt Code:
... QtExplorer w; w.show(); ...To copy to clipboard, switch view to plain text mode
what the strange code
Qt Code:
... QtExplorer w = new QtExplorer; w.show(); ...To copy to clipboard, switch view to plain text mode
modify it
Qt Code:
... QtExplorer w; w.show(); ...To copy to clipboard, switch view to plain text mode
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
Thanks now it works. But what is the difference? Why I cannot call it by the usual methode?
Sincerely Tok
Qt Code:
QtExplorer *w = new QtExplorer(); w->show(); delete w;To copy to clipboard, switch view to plain text mode
or
Once you create the object on the heap, once on the stack.
is just invalid code...Qt Code:
QtExplorer w = new QtExplorer();To copy to clipboard, switch view to plain text mode
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.
Ahhh, Im one step further.
But now gdb on eclipse stucks with the message:
So where should this source-code installed? I thought I have it all with the qt4-dev-package of debian?Can't find a source file at "widgets/qlineedit.h"
Locate the file or edit the source lookup path to include its location.
Thank you
Sincerely Tok
a) did you use #include <QLineEdit>?
b) Look, if under project->properties->C++ Include paths the right directories are set.
Bookmarks