Discussion:
Qt Designer plugin
Valentyn Pavliuchenko
2011-10-17 19:37:00 UTC
Permalink
Hi all,

I'm trying to build Qt Designer integration plugin (found at
http://websvn.kde.org/trunk/playground/devtools/kdevelop4-extra-plugins/qtdesigner/
).
It builds, but after installation I see nothing in KDevelop. What's wrong
with it? It was working some time ago (maybe at start of 2011).

What I do:
$ cmake -DCMAKE_INSTALL_PREFIX=/usr ..
$ make
$ sudo make install
$ kbuildsycoca4
$ kdevelop

--
Best regards,
Valentyn Pavliuchenko
Andreas Pakulat
2011-10-17 20:04:26 UTC
Permalink
Post by Valentyn Pavliuchenko
Hi all,
I'm trying to build Qt Designer integration plugin (found at
http://websvn.kde.org/trunk/playground/devtools/kdevelop4-extra-plugins/qtdesigner/
).
It builds, but after installation I see nothing in KDevelop. What's wrong
with it? It was working some time ago (maybe at start of 2011).
Is it loaded? (Help->About Plugins) If not, check the verbose output of
kdevelop, in particular the shell area. I bet the plugin version is too
old for whatever KDevplatform version you have. Its stuck at v9, which
means kdevplatform 1.0.

But you shouldn't really use that plugin anyway, it may eat your
children, dog, cats and money :) Use the standalone Qt designer. Its
unmaintained since 2 years and never really worked properly.

Andreas
Valentyn Pavliuchenko
2011-10-17 20:21:24 UTC
Permalink
Post by Andreas Pakulat
Is it loaded? (Help->About Plugins) If not, check the verbose output of
kdevelop, in particular the shell area. I bet the plugin version is too
old for whatever KDevplatform version you have. Its stuck at v9, which
means kdevplatform 1.0.
No, it's not loaded (don't see it on Loaded Plugins).
KDevelop is almost silent in console (I'm using my distro's build now) - how
to enable logging?
Post by Andreas Pakulat
But you shouldn't really use that plugin anyway, it may eat your
children, dog, cats and money :) Use the standalone Qt designer. Its
unmaintained since 2 years and never really worked properly.
I don't care about my children, dogs, cats, money, etc. I just want designer
integration - this is a must for any modern IDE.
And yes, when I last tried it it worked. I was able to use it.
Can yo give me some advice how to get this plugin working?


P.S. Using separate Qt Designer sucks - first letter in IDE means
Integrated. And UI designer is essential part. I bet it's one of the main
reasons why people use QtCreator instead of KDevelop, even when it loses in
language support.

--
Best regards,
Valentyn Pavliuchenko
Andreas Pakulat
2011-10-17 22:18:15 UTC
Permalink
Post by Valentyn Pavliuchenko
Post by Andreas Pakulat
Is it loaded? (Help->About Plugins) If not, check the verbose output of
kdevelop, in particular the shell area. I bet the plugin version is too
old for whatever KDevplatform version you have. Its stuck at v9, which
means kdevplatform 1.0.
No, it's not loaded (don't see it on Loaded Plugins).
KDevelop is almost silent in console (I'm using my distro's build now) - how
to enable logging?
kdebugdialog.
Post by Valentyn Pavliuchenko
Post by Andreas Pakulat
But you shouldn't really use that plugin anyway, it may eat your
children, dog, cats and money :) Use the standalone Qt designer. Its
unmaintained since 2 years and never really worked properly.
I don't care about my children, dogs, cats, money, etc. I just want designer
integration - this is a must for any modern IDE.
No its not. I've been hacking quite some time now and the occassional
need for a gui-designer comes up mostly when layouts don't behave
logical or when needing a tool to quickly click together a mockup.
Neither of the cases needs an integration into the IDE.
Post by Valentyn Pavliuchenko
P.S. Using separate Qt Designer sucks - first letter in IDE means
Integrated.
But the word "Integrated" doesn't tell anything about what is integrated
into the Development Environment ;P

Apart from that, there's no integration in the plugin. It merely adds a
ton of actions/menus that look out of place and a bunch of toolviews
that similarly are out of place. Not to mention that the workspace
concept used by designer does not fit with kdevelop that good either.
There's no kind of real integration of the designer, like being able to
auto-complete in C++ for things set up in the .ui file. No support when
renaming sth. in either C++ or the ui file for the other side. etc.
Thats what Integrated really means in IDE, not that the IDE opens the
file embedded instead of in a separate top-level window.
Post by Valentyn Pavliuchenko
And UI designer is essential part.
Try telling that Linus Torvalds, or the Apache people ;)
Post by Valentyn Pavliuchenko
I bet it's one of the main reasons why people use QtCreator instead of
KDevelop, even when it loses in language support.
You have any evidence of that? Please don't rant unless you want to
stop getting any help from anybody on this list.

Andreas
Andreas Pakulat
2011-10-18 06:50:52 UTC
Permalink
Post by Andreas Pakulat
Post by Valentyn Pavliuchenko
Post by Andreas Pakulat
Is it loaded? (Help->About Plugins) If not, check the verbose output of
kdevelop, in particular the shell area. I bet the plugin version is too
old for whatever KDevplatform version you have. Its stuck at v9, which
means kdevplatform 1.0.
No, it's not loaded (don't see it on Loaded Plugins).
KDevelop is almost silent in console (I'm using my distro's build now) - how
to enable logging?
kdebugdialog.
PS: Search for kdevplatform (shell) and enable that area. Then restart
kdevelop and put the output into a file so you can search for the
designer plugin.

Andreas
Valentyn Pavliuchenko
2011-10-18 11:25:13 UTC
Permalink
Post by Andreas Pakulat
Post by Valentyn Pavliuchenko
Post by Andreas Pakulat
Is it loaded? (Help->About Plugins) If not, check the verbose output of
kdevelop, in particular the shell area. I bet the plugin version is too
old for whatever KDevplatform version you have. Its stuck at v9, which
means kdevplatform 1.0.
No, it's not loaded (don't see it on Loaded Plugins).
KDevelop is almost silent in console (I'm using my distro's build now) -
how
Post by Valentyn Pavliuchenko
to enable logging?
kdebugdialog.
Thanks! Will try tonight.
Post by Andreas Pakulat
Post by Valentyn Pavliuchenko
Post by Andreas Pakulat
But you shouldn't really use that plugin anyway, it may eat your
children, dog, cats and money :) Use the standalone Qt designer. Its
unmaintained since 2 years and never really worked properly.
I don't care about my children, dogs, cats, money, etc. I just want
designer
Post by Valentyn Pavliuchenko
integration - this is a must for any modern IDE.
No its not. I've been hacking quite some time now and the occassional
need for a gui-designer comes up mostly when layouts don't behave
logical or when needing a tool to quickly click together a mockup.
Neither of the cases needs an integration into the IDE.
That's for you. I don't say that everyone needs that, but it's the tool
required by many people.
Post by Andreas Pakulat
Post by Valentyn Pavliuchenko
P.S. Using separate Qt Designer sucks - first letter in IDE means
Integrated.
But the word "Integrated" doesn't tell anything about what is integrated
into the Development Environment ;P
Ok, I will try to define an "ideal" IDE: when everything needed for
development is properly integrated without a functionality loss. Do you
agree with this definition? :)

Apart from that, there's no integration in the plugin. It merely adds a
Post by Andreas Pakulat
ton of actions/menus that look out of place and a bunch of toolviews
that similarly are out of place. Not to mention that the workspace
concept used by designer does not fit with kdevelop that good either.
There's no kind of real integration of the designer, like being able to
auto-complete in C++ for things set up in the .ui file. No support when
renaming sth. in either C++ or the ui file for the other side. etc.
Thats what Integrated really means in IDE, not that the IDE opens the
file embedded instead of in a separate top-level window.
I agree with you completely.
This is not a real integration, but embedded designer is still IMHO better
than external app. And can be treated as the starting point for real
integration.
Post by Andreas Pakulat
Post by Valentyn Pavliuchenko
And UI designer is essential part.
Try telling that Linus Torvalds, or the Apache people ;)
Not for everyone!:)
Post by Andreas Pakulat
Post by Valentyn Pavliuchenko
I bet it's one of the main reasons why people use QtCreator instead of
KDevelop, even when it loses in language support.
You have any evidence of that?
Yes, I saw the people that use Qt Creator because of that.

FYI, I was recommending KDevelop where possible, but not everyone agreed.
Summarizing what I've heard from people - their reasons for using Qt Creator
instead of KDevelop are:
- qmake with its simplicity (cmake is complex for newbies)
- designer
- KDE-phobia - some people hate any software that depends on kdelibs because
they need to install a lot of dependencies to use that software. + Gentoo
users that need to compile all that stuff.
Post by Andreas Pakulat
Please don't rant unless you want to
stop getting any help from anybody on this list.
Sorry for the rude e-mail - yesterday wasn't my best day...

Best regards,
Valentyn Pavliuchenko
Andreas Pakulat
2011-10-18 11:50:51 UTC
Permalink
Post by Valentyn Pavliuchenko
Post by Valentyn Pavliuchenko
Post by Valentyn Pavliuchenko
Post by Andreas Pakulat
But you shouldn't really use that plugin anyway, it may eat your
children, dog, cats and money :) Use the standalone Qt designer. Its
unmaintained since 2 years and never really worked properly.
I don't care about my children, dogs, cats, money, etc. I just want
designer
Post by Valentyn Pavliuchenko
integration - this is a must for any modern IDE.
No its not. I've been hacking quite some time now and the occassional
need for a gui-designer comes up mostly when layouts don't behave
logical or when needing a tool to quickly click together a mockup.
Neither of the cases needs an integration into the IDE.
That's for you. I don't say that everyone needs that, but it's the tool
required by many people.
Again, any numbers to back that up?
Post by Valentyn Pavliuchenko
Post by Valentyn Pavliuchenko
Post by Valentyn Pavliuchenko
P.S. Using separate Qt Designer sucks - first letter in IDE means
Integrated.
But the word "Integrated" doesn't tell anything about what is integrated
into the Development Environment ;P
Ok, I will try to define an "ideal" IDE: when everything needed for
development is properly integrated without a functionality loss. Do you
agree with this definition? :)
Sure, but that still doesn't include a GUI designer since its undefined
what kind of 'development'. IDE doesn't necessarily mean "IDE for all
kinds of development".
Post by Valentyn Pavliuchenko
Apart from that, there's no integration in the plugin. It merely adds a
Post by Valentyn Pavliuchenko
ton of actions/menus that look out of place and a bunch of toolviews
that similarly are out of place. Not to mention that the workspace
concept used by designer does not fit with kdevelop that good either.
There's no kind of real integration of the designer, like being able to
auto-complete in C++ for things set up in the .ui file. No support when
renaming sth. in either C++ or the ui file for the other side. etc.
Thats what Integrated really means in IDE, not that the IDE opens the
file embedded instead of in a separate top-level window.
I agree with you completely.
This is not a real integration, but embedded designer is still IMHO better
than external app. And can be treated as the starting point for real
integration.
As history of the plugin tells, nobody wants to spend time on that,
though part of the problem is that qt's designer code is not really
designed for being integrated into arbitrary IDE's.
Post by Valentyn Pavliuchenko
Post by Valentyn Pavliuchenko
Post by Valentyn Pavliuchenko
I bet it's one of the main reasons why people use QtCreator instead of
KDevelop, even when it loses in language support.
You have any evidence of that?
Yes, I saw the people that use Qt Creator because of that.
FYI, I was recommending KDevelop where possible, but not everyone agreed.
Summarizing what I've heard from people - their reasons for using Qt Creator
- qmake with its simplicity (cmake is complex for newbies)
Indeed, qmake is very nice for small toy projects and (as Qt proves) it
can even be used for large real-world projects. But that comes at a
cost due to all the limitations qmake has. CMake or other cross-platform
buildtools are usually much better suited, in particular when it comes
to integrating external dependencies.

Andreas
Valentyn Pavliuchenko
2011-10-18 12:45:25 UTC
Permalink
Post by Andreas Pakulat
Post by Valentyn Pavliuchenko
Post by Valentyn Pavliuchenko
Post by Valentyn Pavliuchenko
Post by Andreas Pakulat
But you shouldn't really use that plugin anyway, it may eat your
children, dog, cats and money :) Use the standalone Qt designer.
Its
Post by Valentyn Pavliuchenko
Post by Valentyn Pavliuchenko
Post by Valentyn Pavliuchenko
Post by Andreas Pakulat
unmaintained since 2 years and never really worked properly.
I don't care about my children, dogs, cats, money, etc. I just want
designer
Post by Valentyn Pavliuchenko
integration - this is a must for any modern IDE.
No its not. I've been hacking quite some time now and the occassional
need for a gui-designer comes up mostly when layouts don't behave
logical or when needing a tool to quickly click together a mockup.
Neither of the cases needs an integration into the IDE.
That's for you. I don't say that everyone needs that, but it's the tool
required by many people.
Again, any numbers to back that up?
I don't have any kind of reliable statistics for you.
If you can make a poll on that - it would be interesting.
Btw, what about a mega-poll on KDevelop usage and wishes?
Post by Andreas Pakulat
Post by Valentyn Pavliuchenko
Post by Valentyn Pavliuchenko
Post by Valentyn Pavliuchenko
P.S. Using separate Qt Designer sucks - first letter in IDE means
Integrated.
But the word "Integrated" doesn't tell anything about what is
integrated
Post by Valentyn Pavliuchenko
Post by Valentyn Pavliuchenko
into the Development Environment ;P
Ok, I will try to define an "ideal" IDE: when everything needed for
development is properly integrated without a functionality loss. Do you
agree with this definition? :)
Sure, but that still doesn't include a GUI designer since its undefined
what kind of 'development'. IDE doesn't necessarily mean "IDE for all
kinds of development".
UI development is part of app development if application has non-trivial
GUI.
KDevelop is not targeted for console applications only, does it?
Post by Andreas Pakulat
Post by Valentyn Pavliuchenko
Apart from that, there's no integration in the plugin. It merely adds a
Post by Valentyn Pavliuchenko
ton of actions/menus that look out of place and a bunch of toolviews
that similarly are out of place. Not to mention that the workspace
concept used by designer does not fit with kdevelop that good either.
There's no kind of real integration of the designer, like being able to
auto-complete in C++ for things set up in the .ui file. No support when
renaming sth. in either C++ or the ui file for the other side. etc.
Thats what Integrated really means in IDE, not that the IDE opens the
file embedded instead of in a separate top-level window.
I agree with you completely.
This is not a real integration, but embedded designer is still IMHO
better
Post by Valentyn Pavliuchenko
than external app. And can be treated as the starting point for real
integration.
As history of the plugin tells, nobody wants to spend time on that,
though part of the problem is that qt's designer code is not really
designed for being integrated into arbitrary IDE's.
Looks like so.
Post by Andreas Pakulat
Post by Valentyn Pavliuchenko
Post by Valentyn Pavliuchenko
Post by Valentyn Pavliuchenko
I bet it's one of the main reasons why people use QtCreator instead
of
Post by Valentyn Pavliuchenko
Post by Valentyn Pavliuchenko
Post by Valentyn Pavliuchenko
KDevelop, even when it loses in language support.
You have any evidence of that?
Yes, I saw the people that use Qt Creator because of that.
FYI, I was recommending KDevelop where possible, but not everyone agreed.
Summarizing what I've heard from people - their reasons for using Qt
Creator
Post by Valentyn Pavliuchenko
- qmake with its simplicity (cmake is complex for newbies)
Indeed, qmake is very nice for small toy projects and (as Qt proves) it
can even be used for large real-world projects. But that comes at a
cost due to all the limitations qmake has. CMake or other cross-platform
buildtools are usually much better suited, in particular when it comes
to integrating external dependencies.
Of course.
Valentyn Pavliuchenko
2011-10-18 19:23:59 UTC
Permalink
Post by Valentyn Pavliuchenko
Post by Andreas Pakulat
Post by Valentyn Pavliuchenko
Post by Andreas Pakulat
Is it loaded? (Help->About Plugins) If not, check the verbose output
of
Post by Valentyn Pavliuchenko
Post by Andreas Pakulat
kdevelop, in particular the shell area. I bet the plugin version is
too
Post by Valentyn Pavliuchenko
Post by Andreas Pakulat
old for whatever KDevplatform version you have. Its stuck at v9, which
means kdevplatform 1.0.
No, it's not loaded (don't see it on Loaded Plugins).
KDevelop is almost silent in console (I'm using my distro's build now) -
how
Post by Valentyn Pavliuchenko
to enable logging?
kdebugdialog.
Thanks! Will try tonight.
I see nothing about the plugin in the debug output. Other plugins are being
loaded.
Any suggestions?
Milian Wolff
2011-10-18 22:35:51 UTC
Permalink
Post by Valentyn Pavliuchenko
Post by Valentyn Pavliuchenko
Post by Andreas Pakulat
Post by Valentyn Pavliuchenko
Post by Andreas Pakulat
Is it loaded? (Help->About Plugins) If not, check the verbose output
of
Post by Valentyn Pavliuchenko
Post by Andreas Pakulat
kdevelop, in particular the shell area. I bet the plugin version is
too
Post by Valentyn Pavliuchenko
Post by Andreas Pakulat
old for whatever KDevplatform version you have. Its stuck at v9, which
means kdevplatform 1.0.
No, it's not loaded (don't see it on Loaded Plugins).
KDevelop is almost silent in console (I'm using my distro's build now) -
how
Post by Valentyn Pavliuchenko
to enable logging?
kdebugdialog.
Thanks! Will try tonight.
I see nothing about the plugin in the debug output. Other plugins are being
loaded.
Any suggestions?
Do you find it in:

ktraderclient --servicetype KDevelop/Plugin

if so, what X-KDevelop-Version does it have?

bye
--
Milian Wolff
mail-***@public.gmane.org
http://milianw.de
Valentyn Pavliuchenko
2011-10-19 20:57:10 UTC
Permalink
It has X-KDevelop-Version 9:


---- Offer 5
----

Invalid property
UntranslatedGenericName

X-KDE-PluginInfo-Author : 'Matt
Rogers'

X-KDE-PluginInfo-Email : 'mattr-***@public.gmane.org'

X-KDE-PluginInfo-License :
'GPL'

X-KDE-PluginInfo-Name :
'kdevqtdesigner'

X-KDE-PluginInfo-Version :
'0.1'

X-KDevelop-Mode :
'GUI'

X-KDevelop-SupportedMimeTypes :
'application/x-designer'

X-KDevelop-Version :
'9'

Invalid property
icon

Type :
'Service'

Name : 'Qt Designer
Integration'

Comment : 'GUI Builder based on Qt
Designer'

GenericName : 'GUI Designer
Integration'

Invalid property
Icon

Exec :
'blubb'

Terminal :
'FALSE'

Invalid property
TerminalOptions

Invalid property
Path

ServiceTypes :
'KDevelop/Plugin'

AllowAsDefault :
'TRUE'

InitialPreference :
'1'

Library :
'kdevqtdesigner'

DesktopEntryPath :
'kdevqtdesigner.desktop'

DesktopEntryName :
'kdevqtdesigner'

Keywords :
''

Categories :
''



--
Best regards,
Valentyn Pavliuchenko
Post by Andreas Pakulat
Post by Valentyn Pavliuchenko
Post by Valentyn Pavliuchenko
Post by Andreas Pakulat
Post by Valentyn Pavliuchenko
Post by Andreas Pakulat
Is it loaded? (Help->About Plugins) If not, check the verbose
output
Post by Valentyn Pavliuchenko
Post by Valentyn Pavliuchenko
Post by Andreas Pakulat
of
Post by Valentyn Pavliuchenko
Post by Andreas Pakulat
kdevelop, in particular the shell area. I bet the plugin version
is
Post by Valentyn Pavliuchenko
Post by Valentyn Pavliuchenko
Post by Andreas Pakulat
too
Post by Valentyn Pavliuchenko
Post by Andreas Pakulat
old for whatever KDevplatform version you have. Its stuck at v9, which
means kdevplatform 1.0.
No, it's not loaded (don't see it on Loaded Plugins).
KDevelop is almost silent in console (I'm using my distro's build
now)
Post by Valentyn Pavliuchenko
Post by Valentyn Pavliuchenko
Post by Andreas Pakulat
Post by Valentyn Pavliuchenko
-
how
Post by Valentyn Pavliuchenko
to enable logging?
kdebugdialog.
Thanks! Will try tonight.
I see nothing about the plugin in the debug output. Other plugins are
being
Post by Valentyn Pavliuchenko
loaded.
Any suggestions?
ktraderclient --servicetype KDevelop/Plugin
if so, what X-KDevelop-Version does it have?
bye
--
Milian Wolff
http://milianw.de
_______________________________________________
kdevelop mailing list
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop
Andreas Pakulat
2011-10-19 21:07:52 UTC
Permalink
And which version do the other plugins have, like subversion, konsole
etc.? The version in the qtdesigner plugin needs to be the same, so
adjust the .desktop file accordingly.

Andreas
Valentyn Pavliuchenko
2011-10-19 21:16:34 UTC
Permalink
It seems everything has version 11, but changing version to 11 didn't solved
it.

I still don't see loading the plugin in KDevelop logs.


--
Best regards,
Valentyn Pavliuchenko
Post by Andreas Pakulat
And which version do the other plugins have, like subversion, konsole
etc.? The version in the qtdesigner plugin needs to be the same, so
adjust the .desktop file accordingly.
Andreas
_______________________________________________
kdevelop mailing list
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop
Andreas Pakulat
2011-10-19 21:30:08 UTC
Permalink
Post by Valentyn Pavliuchenko
It seems everything has version 11, but changing version to 11 didn't solved
it.
I still don't see loading the plugin in KDevelop logs.
Did you re-run kbuildsycoca4 so the output of ktraderclient changed to
show 11 also for the designer plugin? Also the plugin will only be
loaded once you opened a .ui file in kdevelop

Andreas
Valentyn Pavliuchenko
2011-10-19 21:50:01 UTC
Permalink
Yes, I've run kbuildsycoca4 and checked ktraderclient for version.
The problem was that trying to open a .ui file does nothing, however,
designer with that file is shown after reboot.
And after that reboot other ui files can now be edited.

Thank you!

P.S. Designer works (however there's no save icon on the tab if the file was
modified), tool views are integrated with KDevelop UI. However, I've got a
crash while trying to add Widgets tool view (NULL pointer dereference from
Sublime). Maybe I'll spend a time to find out what's wrong.

--
Best regards,
Valentyn Pavliuchenko
Post by Valentyn Pavliuchenko
Post by Valentyn Pavliuchenko
It seems everything has version 11, but changing version to 11 didn't
solved
Post by Valentyn Pavliuchenko
it.
I still don't see loading the plugin in KDevelop logs.
Did you re-run kbuildsycoca4 so the output of ktraderclient changed to
show 11 also for the designer plugin? Also the plugin will only be
loaded once you opened a .ui file in kdevelop
Andreas
_______________________________________________
kdevelop mailing list
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop
Continue reading on narkive:
Loading...