Santhosh
Santhosh

Reputation: 637

Qt 5 - QWidget in Qt Quick 2

I thought of using custom defined QWidget inherited from QTableWidget or QTableWidget directly in QML (Qt Quick 2). I tried some prototype and find it's not possible to embed QWidget in Qt Quick 2 as specified in the link Qt5. Embed QWidget object in QML.

I'm able to embed QWidget using Qt Quick 1.1 by inheriting from QDeclarativeItem but I want to achieve the same in Qt Quick 2

Do I know is there any possible way of embedding QWidget to Qt Quick 2? (May be to work by doing some workaround)

Upvotes: 1

Views: 1472

Answers (1)

peppe
peppe

Reputation: 22724

You can't easily embed QWidgets inside QtQuick2 scenes. Try instead using Qt Quick Controls (included with 5.1), which feature a TableView.

Upvotes: 1

Related Questions