Some examples
Dave Robbins
dmrobbin at mindspring.com
Wed Sep 1 16:44:29 BST 1999
> Hi Guys
maybe this will helpI took a app I'm working on for my own use and modified it so maybe it will make an acceptable demo
it has a new pulldown menu with 2 items
one goes out on the web and downloads an html file using kfm
the other pops up a dialog box
this should demonstrate how to create menu items and ties them to slots
the program also, on startup, creates two arrays that represent a sine wave
it creates a QPainter object in the paintEvent method of the view class and graphs the data as a sine wave
this ought to give people getting started with kdevelop something to chew on
I can't swear my coding is the cleanest or most elegant, and there are other ways (perhaps better) than mine to do things, but at
least this is an example of one way to get things done
I'll try to spend some time and clean this up and comment it so it makes a better demo, but I thought I'd make it available now
for the impatient
you can get the demo app at
ftp://ftp.mindspring.com/users/dmrobbin
a couple of questions for those out there more enlightened than myself
when I created the dialog box in this app and ran "generate sources" the file testdata.cpp was generated
it contains the initDialog method which sets up the widgets for the dialog
I think it should have created the pointers to the widgets in test.h but it didn't
does anyone else have this problem or am I just missing a step (I'm pretty sure I'm missing a step)
I just created the pointers by hand but I'm sure you're not supposed to have to do this
My other question is about kdbg, I seem to have a lot of trouble with it
just various unexpected behaviour
anyone else have trouble?
my guess is it works ok for everone else, I probably need to RTFM.
Dave
More information about the KDevelop
mailing list