Active Topics



Thread Tools
Posts: 12 | Thanked: 19 times | Joined on Jan 2010 @ Ukraine

I am trying to add dialog popups to my app.

I found out that this (reduced) code crashes (tested with qmlviewer):
import QtQuick 1.1
import org.hildon.components 1.0

Item {
    Dialog {
        Item { }
        Column { }
Stack trace:
#0  0x41502c58 in QGraphicsItem::isWidget() const () from /usr/lib/
#1  0x41511260 in QGraphicsItemPrivate::setParentItemHelper(QGraphicsItem*, QVariant const*, QVariant const*) () from /usr/lib/
#2  0x4157bb78 in ?? () from /usr/lib/
#3  0x41578aa0 in QGraphicsWidget::QGraphicsWidget(QGraphicsWidgetPrivate&, QGraphicsItem*, QGraphicsScene*, QFlags<Qt::WindowType>) ()
   from /usr/lib/
#4  0x41537d58 in QGraphicsProxyWidget::QGraphicsProxyWidget(QGraphicsItem*, QFlags<Qt::WindowType>) () from /usr/lib/
#5  0x41538c94 in QGraphicsProxyWidgetPrivate::embedSubWindow(QWidget*) () from /usr/lib/
#6  0x40f27be4 in QWidget::setParent(QWidget*, QFlags<Qt::WindowType>) () from /usr/lib/
#7  0x40f27cf4 in QWidget::setWindowFlags(QFlags<Qt::WindowType>) () from /usr/lib/
#8  0x4471d8f4 in QchDialog::componentComplete() () from /opt/lib/qt4/imports/org/hildon/components/
#9  0x402a07e0 in QDeclarativeComponentPrivate::complete(QDeclarativeEnginePrivate*, QDeclarativeComponentPrivate::ConstructionState*) ()
   from /usr/lib/
#10 0x402a0e3c in QDeclarativeComponentPrivate::completeCreate() () from /usr/lib/
#11 0x402a0e58 in QDeclarativeComponent::completeCreate() () from /usr/lib/
#12 0x4029f0bc in QDeclarativeComponent::create(QDeclarativeContext*) () from /usr/lib/
#13 0x40153394 in QDeclarativeView::continueExecute() () from /usr/lib/
#14 0x40153c3c in QDeclarativeViewPrivate::execute() () from /usr/lib/
#15 0x40153ca4 in QDeclarativeView::setSource(QUrl const&) () from /usr/lib/
#16 0x00021e68 in ?? ()
#17 0x0003a800 in ?? ()
#18 0x41e3a974 in __libc_start_main () from /lib/
Is this a bug or am I doing something wrong?
marxian's Avatar
Posts: 2,448 | Thanked: 9,513 times | Joined on Aug 2010 @ Wigan, UK
The Dialog component is currently a widget, resulting in the limitation that it can only be parented by another widget (i.e. a Dialog or Window). I plan to change this, but in the meantime you should ensure that you declare the Dialog as a child of the Window or Dialog in which it is used.
'Men of high position are allowed, by a special act of grace, to accomodate their reasoning to the answer they need. Logic is only required in those of lesser rank.' - J K Galbraith

My website


The Following User Says Thank You to marxian For This Useful Post:
hardy_magnus's Avatar
Posts: 239 | Thanked: 444 times | Joined on Mar 2013 @ rack city
SOrry guys for bumping this old thread but I wanna know clearly what it does? It changes all the qt components on the nokia n900 or it just provides qt components to newly developed apps?
Sorry for my bad english
researcher on psoriasis

The Following User Says Thank You to hardy_magnus For This Useful Post:

hildon, qml components

Thread Tools

Forum Jump

All times are GMT. The time now is 18:03.