[Qt-interest] newbee alert Qt-creator question

Andreas Pakulat apaku at gmx.de
Thu Apr 14 08:45:22 CEST 2011


On 13.04.11 15:52:03, Doug Stewart wrote:
> On Wed, Apr 13, 2011 at 3:13 PM, Andreas Pakulat <apaku at gmx.de> wrote:
> 
> > On 13.04.11 14:36:21, Doug Stewart wrote:
> > > On Wed, Apr 13, 2011 at 2:22 PM, Andreas Pakulat <apaku at gmx.de> wrote:
> > >
> > > > On 13.04.11 13:49:28, Doug Stewart wrote:
> > > > > I started up Qt4-creator on Ubuntu, and made a new gui project. I
> > then
> > > > > clicked on Forms and opened the mainwindow.ui.
> > > > > I then dragged the KPlotWidget to the Form. I then tried to run to
> > > > project.
> > > > >
> > > > > I get the following error:
> > > > >
> > > > >  /home/doug/scope1a/ui_mainwindow.h:24: error: kplotwidget.h: No such
> > > > file
> > > > > or directory
> > > > >
> > > > > Why ???
> > > > >
> > > > > Why does it show me widgets that I can't use????
> > > >
> > > > Because you've installed plugins that provide those widgets, in
> > > > particular ones from KDE development packages. Thats also why they are
> > > > under a "KDE" group, you'll need to adjust the buildsystem to use the
> > > > includes and libraries from KDE to use the widget.
> > > >
> > > how do you " adjust the buildsystem to use the
> > > includes and libraries from KDE to use the widget"
> >
> > The documentation for QMake and its buildsystem can be found in
> > assistant or online:
> > http://doc.qt.nokia.com/4.7/qmake-manual.html
> >
> > The alternative would be using CMake, there's loads of documentation for
> > writing KDE apps at http://techbase.kde.org/ just look into the Getting
> > started and Development sections.
> >
> > Andreas
> >
> >
> I think that this misses the point.
> I am using an IDE i am using Qt-Creator. I don't want to use qmake cmake or
> make ( I do this when I compile Octave etc.)
> I was looking for a system that works like M$ visual studio but in open
> source and Ubuntu.

There is no such thing, though for Qt-only qmake projects Qt-Creator
comes pretty close.

> So if Qt-Creator can't handle KDE stuff then why does it show it as an
> option?

It does not, designer shows those KDE widgets and that tool has no clue
about code or includes. All it knows about is xml files that describe
gui layouts. If the xml file says a special header file is needed for a
given widget then its the users obligation to setup the project in a way
that this header is found when the generated C++ code is being compiled.

Qt-Creator probably has some GUI to add additional include directories
and libraries to the linking step. I don't know Qt-Creator enough to
tell you how though.

Andreas




More information about the Qt-interest-old mailing list