Active Topics

 


Reply
Thread Tools
Posts: 12 | Thanked: 20 times | Joined on Jan 2010 @ Ukraine
#91
Hi

I am trying to add dialog popups to my app.

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

Item {
    Dialog {
        Item { }
        Column { }
    }
}
Stack trace:
Code:
#0  0x41502c58 in QGraphicsItem::isWidget() const () from /usr/lib/libQtGui.so.4
#1  0x41511260 in QGraphicsItemPrivate::setParentItemHelper(QGraphicsItem*, QVariant const*, QVariant const*) () from /usr/lib/libQtGui.so.4
#2  0x4157bb78 in ?? () from /usr/lib/libQtGui.so.4
#3  0x41578aa0 in QGraphicsWidget::QGraphicsWidget(QGraphicsWidgetPrivate&, QGraphicsItem*, QGraphicsScene*, QFlags<Qt::WindowType>) ()
   from /usr/lib/libQtGui.so.4
#4  0x41537d58 in QGraphicsProxyWidget::QGraphicsProxyWidget(QGraphicsItem*, QFlags<Qt::WindowType>) () from /usr/lib/libQtGui.so.4
#5  0x41538c94 in QGraphicsProxyWidgetPrivate::embedSubWindow(QWidget*) () from /usr/lib/libQtGui.so.4
#6  0x40f27be4 in QWidget::setParent(QWidget*, QFlags<Qt::WindowType>) () from /usr/lib/libQtGui.so.4
#7  0x40f27cf4 in QWidget::setWindowFlags(QFlags<Qt::WindowType>) () from /usr/lib/libQtGui.so.4
#8  0x4471d8f4 in QchDialog::componentComplete() () from /opt/lib/qt4/imports/org/hildon/components/libqchcomponents.so
#9  0x402a07e0 in QDeclarativeComponentPrivate::complete(QDeclarativeEnginePrivate*, QDeclarativeComponentPrivate::ConstructionState*) ()
   from /usr/lib/libQtDeclarative.so.4
#10 0x402a0e3c in QDeclarativeComponentPrivate::completeCreate() () from /usr/lib/libQtDeclarative.so.4
#11 0x402a0e58 in QDeclarativeComponent::completeCreate() () from /usr/lib/libQtDeclarative.so.4
#12 0x4029f0bc in QDeclarativeComponent::create(QDeclarativeContext*) () from /usr/lib/libQtDeclarative.so.4
#13 0x40153394 in QDeclarativeView::continueExecute() () from /usr/lib/libQtDeclarative.so.4
#14 0x40153c3c in QDeclarativeViewPrivate::execute() () from /usr/lib/libQtDeclarative.so.4
#15 0x40153ca4 in QDeclarativeView::setSource(QUrl const&) () from /usr/lib/libQtDeclarative.so.4
#16 0x00021e68 in ?? ()
#17 0x0003a800 in ?? ()
#18 0x41e3a974 in __libc_start_main () from /lib/libc.so.6
Is this a bug or am I doing something wrong?
 

The Following User Says Thank You to generatorglukoff For This Useful Post:
marxian's Avatar
Posts: 2,448 | Thanked: 9,523 times | Joined on Aug 2010 @ Wigan, UK
#92
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

GitHub
 

The Following 2 Users Say Thank You to marxian For This Useful Post:
hardy_magnus's Avatar
Posts: 277 | Thanked: 546 times | Joined on Mar 2013 @ rack city
#93
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?
__________________
research complete.
sorry for my bad english
 

The Following 2 Users Say Thank You to hardy_magnus For This Useful Post:
Reply

Tags
hildon, qml components


 
Forum Jump


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