![]() |
QML and SelectionDialog [and other QML-related questions]
1 Attachment(s)
Hi
I'm learning QML. My code is: Code:
import QtQuick 1.0 I want the lyricssrcbutton to display the currently selected option. Why isn't it working. What's the problem with the loops? Thanks in advance. |
Re: QML and SelectionDialog
The SelectionDialog is in its own Popup window, you can't place it inside a Column/Row, so it's giving you those loop warnings (column and dialog battling out to see who will provide the layout).
|
Re: QML and SelectionDialog
@Slocan are right
1 more thing is your SelectionDialog's selectedIndex should be start with 0, not 1 |
Re: QML and SelectionDialog
I'm still having problems. The index set for 0 solves one the problem of a blank label, but
With this code: Code:
import QtQuick 1.0 Code:
import QtQuick 1.0 |
Re: QML and SelectionDialog
Quote:
Code:
Item { |
Re: QML and SelectionDialog
Quote:
Code:
import QtQuick 1.0 Code:
.../main.qml:53 ReferenceError: Can't find variable fontcolor |
Re: QML and SelectionDialog
Quote:
|
Re: QML and SelectionDialog
Quote:
|
Re: QML and SelectionDialog
Quote:
|
Re: QML and SelectionDialog
Quote:
|
Re: QML and SelectionDialog
Quote:
|
Re: QML and SelectionDialog
Quote:
|
Re: QML and SelectionDialog
Quote:
http://harmattan-dev.nokia.com/docs/...go-window.html |
Re: QML and SelectionDialog
Quote:
But somehow the hildon status menu is still shown. changing showExpanded() to showMaximized() doesn't work. thanks in advance. Here's my main.qml Code:
import QtQuick 1.0 |
Re: QML and SelectionDialog
Quote:
Code:
PageStackWindow |
Re: QML and SelectionDialog
Quote:
Is there any way I set the width of the buttons to be resized as the screen rotates? With Column only I set Code:
width: parent.width Code:
screen.width |
Re: QML and SelectionDialog
Quote:
I finally worked it out with Code:
property int screenwidth: (screen.currentOrientation == Screen.Landscape) ? screen.displayWidth : screen.displayHeight Files are: main.qml - the main one, only PageStackWindow mainView.qml - Page used by main.qml And I'm getting Code:
Can't find variable: mainView Code:
import "." thanx in advance |
Re: QML and SelectionDialog
No need to import your own qml-file
as long as it is in the same directory. How does your main.qml file looks like? The one with the pagestackwindow must have set the initialPage property. Here is a simple example http://harmattan-dev.nokia.com/docs/...etutorial.html |
Re: QML and SelectionDialog
Quote:
So after that you can use it in main.qml like: Code:
PageStackWindow { |
Re: QML and SelectionDialog
Quote:
|
Re: QML and SelectionDialog
Is there a prebuilt "OK" dialog in qml, like this: http://www.roseindia.net/java/exampl...eDialogBox.gif
? Thanks in advance EDIT: QueryDialog seems to work great. |
Re: QML and SelectionDialog
Hi,
I want the selecttrack Button to hide when a checkbox isn't checked. my code is: Code:
import QtQuick 1.0 Code:
.../MainPage.qml:42:13: Cannot assign to non-existent property onTracksrcChanged: |
Re: QML and SelectionDialog [and other QML-related questions]
tracksrcChanged is a signal in Column
you can not access it within Code:
Button { selecttrack The easier solution would be: Code:
Button |
Re: QML and SelectionDialog [and other QML-related questions]
Quote:
I've got one more question: is there something like vertical spacer in QML, so that I don't have to hardcore any pixel heights? |
Re: QML and SelectionDialog [and other QML-related questions]
Quote:
|
Re: QML and SelectionDialog [and other QML-related questions]
Quote:
Quote:
|
Re: QML and SelectionDialog [and other QML-related questions]
Which component should I use to have look as used in the MeeGo Settings control panel?
How can I get the default height of a button? thanks in advance |
Re: QML and SelectionDialog [and other QML-related questions]
Quote:
Quote:
Quote:
|
Re: QML and SelectionDialog [and other QML-related questions]
Quote:
I have another problem. I have this class: Code:
typedef QString lyricsDownloaderString; Code:
Q_DECL_EXPORT int main(int argc, char *argv[]) Code:
import QtQuick 1.1 Code:
import QtQuick 1.1 Code:
import QtQuick 1.1 Code:
TypeError: Result of expression 'azdownloader.setData' is not a function EDIT: I forgot to add Q_OBJECT macro |
All times are GMT. The time now is 07:32. |
vBulletin® Version 3.8.8