Quantcast
Browsing all 4972 articles
Browse latest View live

QTQuick2 Application wont start on some platforms

Hi dan, Thank you for your post. I always thought QtQuick1 cannot be used for iOS (and i will need to port my application later to iOS), but it seems that i misunderstood this. Apperently it will also...

View Article


Best Practices: Nest elements inside MouseArea or nest MouseArea inside element?

MouseArea {     width: 400     height: 100     Rectangle     {         anchors.fill: parent...

View Article


Message Dialog error on SetGeometry.

I have a Message Dialog with several StandardButtons, and I get an error: setGeometry: Attempt to set a size (354×87) violating the constraints(354×162 – 16777215×16777215) on window QQuickWindow/’‘....

View Article

Qml problem with font size

thank you for reply I try to use pointSize, but found in log QFont::setPointSizeF: Point size <= 0 (0.000000), must be greater than 0

View Article

[Solved] Iterate through children of a QML Item ?

Hi, i am trying to extend a qml item (in this case a flickable) with a method that logs a property of its children. It seems not to work, when I click, the function is executed but I get only one item...

View Article


[Solved] Iterate through children of a QML Item ?

Thanks for explaining, now I also understand why, what a luxury !! :-)

View Article

QML Text position and PSD text position

Hello, I’m trying to figure out the formula to convert PSD text position into Qml text position. My input data from Photoshop is the text geometry which is the rectangle covering the painted text...

View Article

Message Dialog error on SetGeometry.

Is the messageDialog is within some QML Layout ? What are the constraints inside the layout ? What are constraints of object with id – app ? Program above looks simple enough and should not cause issue...

View Article


TableView remove all selected items

Are you sure that even if randomly selected, the order of the index returned by selection is the same ?

View Article


StackView: check what the currentItem is?

Hi, I have a StackView with 2 pages: the initial one and the login page, which is pushed to the StackView when the user wants to login. In some cases I want to push the login page to the stack only if...

View Article

[SOLVED] StackView: check what the currentItem is?

Thank you, that works. I also learned that objectName must be a property already declared in the qml file of the page I want to push, it won’t be attached at runtime by the push function. Not a...

View Article

Rotating an image is clockwise or anticlockwise

I want to rotate an image using mouse dragging like controlling a steering image. My problem is that how to identify whether the rotation is clockwise or anticlockwise.Basically I want to know whether...

View Article

Center Text with letterSpacing

I try to center text with non-default letterSpacing: import QtQuick 2.2 import QtQuick.Window 2.1   Window {     visible: true     width: 360  ...

View Article


Rotating an image is clockwise or anticlockwise

You need to get the x and y of mouseevent and do mathematical calculation. I’m sure there will some ready algorithm available in the net. Any reason you don’t want to use roation changing property ?

View Article

Set icon to qtquick application in OS X

Hi guys I’m trying to put my icon app and it doesn’t work… i had read here [qt-project.org] an this topic [qt-project.org] , but i’m using OSX. my main.cpp is this: qint32 main(qint32 argc, char...

View Article


QML Connecting two or more QML files

If I were you, I would have a look to “ListView” to easily have a swipe (see orientation to have a vertical view). Set the property model to 7. Now, use Loader to choose the correct Qml component...

View Article

Center Text with letterSpacing

You want extra space in the beginning rather than the end. Is that correct ?

View Article


Alternatives to Component inside a Component

Hi, What are you want to do? If you trying to create Dialog dynamically and then show it you can use this code:     /** @brief Create window to add a new controller view.  ...

View Article

Set icon to qtquick application in OS X

Hi, Did you try to move you icon file to folder where you .pro file is saved? Also you must check the plist file. If you want to use custom plist file you must add this line to you pro file:  ...

View Article

Changing the content of qmldir at runtime

Hi Guys, I have a problem with qmldir in qrc. I Created a resource file(qrc) for my project; in this file I add all the qml files and qmldir into it. My problem is : I have to specify the absolute...

View Article
Browsing all 4972 articles
Browse latest View live