Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Browsing all 4972 articles
Browse latest View live

Hello QT Angels: What could be the regular expression for stripping Re: Fwd:...

Hello Angles I am looking for a regular expression which will help in stripping Re: Fw: , could be repeating many times in sequence. E.g Re: Fw:Re: Suject Of Email or Fw:Fw:Fw: Subject of Email or...

View Article


QML GridView - report current selection to C++ code

I have a C++ QAbstracListModel subclass that I have set to a QML GridView. What I want is to know the current selection of the GridView in C++, so that I could synchronize the selection from it with...

View Article


How to show a widget by WId in Qt Quick 2 (Qt 5.0.1)

Hi All, I’m looking for a solution to show the contents of a dll that need a HWND (winId) to do it. Somebody already did implement it? I see from documentation that before it was possible but in 5.x is...

View Article

Custom QML element init

If your Window component is a subclass of QDeclarativeItem, you can override QDeclarativeParserStatus::componentComplete [qt-project.org]

View Article

QML GridView - report current selection to C++ code

bq. I have a C++ QAbstractListModel subclass … The model is a derived QAbstractListModel. Yes there is no modelIndex method, but what is strange is that Googling about the way to get the QModelIndex, I...

View Article


How to show a widget by WId in Qt Quick 2 (Qt 5.0.1)

As far as I know “QWidget::createWindowContainer” only solves inserting “QWindow”-based views (Quick2, Qt5-GUI-OpenGL-View, Qt3D-view,…) into QWidget-GUI/-Layout So, it wont help you getting a native...

View Article

Image and warning X3206: implicit truncation of vector type

Hello, I am porting my app from QtQuick 1.1 to 2.0 and I have following code: Item {     id: container     width: 61     height: 59  ...

View Article

cant use ui on others functions

mainwindow.cpp http://wklej.to/3KynT mainwindow.h http://wklej.to/l7UAN why that code didnt work? void pizda::aha() {   MainWindow xd;    ...

View Article


How to show a widget by WId in Qt Quick 2 (Qt 5.0.1)

In the way of QWidget::createWindowContainer, I think you can suppose the application is mainly a QWidget App, because the QQuickView is ‘contained’ in a QWidget. And is this you are expecting for?...

View Article


Hello QT Angels: What could be the regular expression for stripping Re: Fwd:...

http://stackoverflow.com/questions/9153629/regex-code-for-removing-fwd-re-etc-from-email-subject Found something for the above

View Article

scrolling using QtQuick 5.0 Canvas

Hi Looking at the doc, it seems like it should be possible to scroll a QtQuick 5.0 canvas by setting the canvasSize, canvasWindow and moving the canvasWindow relative to the Canvas. I haven’t had much...

View Article

Image and warning X3206: implicit truncation of vector type

I don’t know much about why this warning is emitted, but it happens when the (in this case, default) GLSL shader (and in this case, I assume it’s a fragment shader) is compiled. We’re getting well out...

View Article

QML is slow in Android

Instructions how to build: http://qt-project.org/wiki/Qt5ForAndroid While you can wait for Qt 5.1 release later this month. http://blog.qt.digia.com/blog/2013/03/13/preview-of-qt-5-for-android/

View Article


cant use ui on others functions

refresh

View Article

Get file info when dropping a file in DropArea

Hi all, I have a DropArea in my QML app and I would like to drag and drop an external file in my app (in order to get the file path). The drop event works but I cannot find how to get file data from...

View Article


QAbstractListModel, ListView and crashes

Hi, I use QAbstractListModel with a SectionScroller and ListView. My QAbstractListModel functions look like this (I post the item class too) class IrregularListWrapper : public QAbstractListModel {...

View Article

[SOLVED] Custom QML element init

Hm, thank you very much, I’ll now go and derive from QDeclarativeParserStatus. I didn’t want QDeclarativeItem because I don’t need all of those built-in utils for visualization, but this status-class...

View Article


[unsolved]QML is slow in Android

Then I’ll wait until the end of the month by qt5.1 version. thank you.

View Article

QML GridView - report current selection to C++ code

What I’ve found is that currently the easiest way to know whenever the GridView’s currently selected index has changed is to create a helper class that has a Qt metasystem registered property:...

View Article

cant use ui on others functions

Best way is to have a method on your mainwindow that sets a text on whatever label you need with a descriptive name of what it does. That way you do not have other classes depend on implementation...

View Article
Browsing all 4972 articles
Browse latest View live