Results 1 to 3 of 3

Thread: Need help for creating a KDE widget

  1. #1
    Join Date
    Feb 2014
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Need help for creating a KDE widget

    Hi everyone,

    I'm a newbie at using qt, qml, and kde issues. I'm trying to create a plasmoid using qml, and adding it to my desktop using "add widgets" button.
    I followed the tutorial at the link : http://techbase.kde.org/Development/...GettingStarted and applied the sample I've found there (a very short sample indeed consisting of "hello world" )
    Although I did all the things mentioned there, I only could run the plasma from the terminal (with the command plasmoidviewer) with reaching an invisible path in my computer under root, but this is not what I need. It should have looked like an ordinary widget. I need an icon, a shortcut, I mean something more real for standard users
    I'm using Kubuntu and qtcreator for your information. I believe I missed something in evolution, please tell me what it is.

    Any help would be appreciated.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Need help for creating a KDE widget

    Plasma Widget/Applets do not look like application widgets if that is what you mean by "ordinary widget", because they are using QtQuick1 and that does not support styling like Qt Widgets.

    That will become possible with next generation Plasma due to usage of QtQuick2 which has styled controls (QtQuick.Controls).

    It is theoretically possible to embed QtWidget widgets into a Plasma component, since QtQuick1 is based on QGraphicsView and there is a proxy item that can embed widgets.
    Will involve some C++ coding though.

    What kind of interface do you want to achieve?

    Cheers,
    _

  3. #3
    Join Date
    Nov 2014
    Posts
    32
    Thanked 1 Time in 1 Post
    Qt products
    Platforms
    Windows

    Default Re: Need help for creating a KDE widget

    To use standard plasma widgets (e.g. Plasma::LineEdit, etc.), you simply add an import line for them. All properties, signals and slots from ordinary Plasma widgets are available there. These widgets are provided as a transition tool, intended to be replaced by the Plasma version of QtComponents, which is currently in development by a gsoc. (note that the Plasma QtComponents have nothing to do with the QtExtraComponents module described above)

Similar Threads

  1. Replies: 2
    Last Post: 18th April 2012, 21:19
  2. Replies: 3
    Last Post: 9th September 2011, 07:40
  3. Help me on creating a List Widget...
    By Bong.Da.City in forum Newbie
    Replies: 50
    Last Post: 11th September 2010, 14:51
  4. Creating an OSX-like dock widget
    By k2 in forum Qt Programming
    Replies: 0
    Last Post: 1st June 2009, 22:16
  5. Creating a widget on a QGraphicsView
    By maverick_pol in forum Qt Programming
    Replies: 4
    Last Post: 9th August 2007, 17:54

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.