This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Using QWidget in QML

Tags: None
(comma "," separated)
User avatar
s1300045
Registered Member
Posts
39
Karma
0
OS

Using QWidget in QML

Sat May 26, 2012 11:02 pm
Hi All,

I was wondering if there is a simple QML only solution to include QtWidgets. I tried the code below but it didn't work.

Code: Select all
import QtQuick 1.0

Rectangle {
        id: menu_area
        width: 500
        height: 30
        color: "green"

        QPushButton {
            id: button1
            text: "LOL"
        }
}


Answers I found on the internet requires me to declare my own derivative classes and include the QML in the C++ code. I was also wondering what I would have to do to include Kparts as well. Thanks in advance!


Well, I am lost.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Using QWidget in QML

Sat Jun 02, 2012 7:10 am
I would recommend asking on the Plasma Development list concerning this - plasma-devel@kde.org.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft