Reply
Thread Tools
Markkyboy's Avatar
Posts: 433 | Thanked: 727 times | Joined on Oct 2012 @ Costa Blanca, España
#41
Originally Posted by Ancelad View Post
Code:
import QtFeedback 5.0

HapticsEffect {
	id: activeEffect
	duration: 500 // in ms
	intensity: 0.2 // from 0 to 1 with 0.1 step-size
	running: button.pressed
}
Button {
        id: button
	width: text.width
	text: "Test"					 
        anchors.horizontalCenter: parent.horizontalCenter
	onClicked: activeEffect.start()          
}
Excellent!, just what I needed and with a little jigger-pokery I now have 29 buttons with short feedback and will be inserting this into other "remote-control" app projects.

Thanks very much!

Regards,
__________________
..oO(Don't just sit there standing around, pick up a shovel and sweep up!)Oo..
 

The Following 4 Users Say Thank You to Markkyboy For This Useful Post:
Posts: 301 | Thanked: 531 times | Joined on Aug 2010 @ The Netherlands
#42
I hardly dare to ask... Today I decided to try and create an app. But first: install the SDK on Windows 10. It refuses to even start. The installer says:

Git not installed: Please ensure Git is installed and in PATH...

GitHub Desktop was already installed, maybe as an app (as I cannot find it under C:\Programs). So I downloaded and installed Git from
https://git-scm.com/download/win
and this did not help at all. Is there a secret Git to be downloaded?

Thanks!
Rob
__________________
Palm Treo -> N900 -> N9 -> Jolla -> SailfishX -> XA2
Developer mode novice, and enjoying it
 

The Following 2 Users Say Thank You to rob_kouw For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#43
looks like a thread for TJC
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following 3 Users Say Thank You to coderus For This Useful Post:
Posts: 55 | Thanked: 206 times | Joined on Mar 2019
#44
How do you create "advanced" GUI for SFOS apps?

Simple (text centered) designs can be created via IDE in text mode, but how do you create apps which are more "graphical" oriented?

As design mode isn't available in Sailfish IDE, is there another way to create QML-page designs in a more graphic way?
 

The Following User Says Thank You to BGK For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#45
if you not aware of qml you can practice with desktop qt creator to learn qml basics
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following 2 Users Say Thank You to coderus For This Useful Post:
Posts: 55 | Thanked: 206 times | Joined on Mar 2019
#46
Originally Posted by coderus View Post
if you not aware of qml you can practice with desktop qt creator to learn qml basics
Well, it's one way placing UI-elements in colums and rows by defining their width (and other properties) like in HTML/CSS - another would be building UI-design like in graphic software.

The latter I'm looking for...
 

The Following User Says Thank You to BGK For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#47
Originally Posted by BGK View Post
Well, it's one way placing UI-elements in colums and rows by defining their width (and other properties) like in HTML/CSS - another would be building UI-design like in graphic software.

The latter I'm looking for...
main goal is making fluid software ui which will be looking good on any device resolution and screen orientation. show me how to do this in graphic software
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following 2 Users Say Thank You to coderus For This Useful Post:
Posts: 301 | Thanked: 531 times | Joined on Aug 2010 @ The Netherlands
#48
All right coderus, the SDK is up and running. I started with a new QtQuick/Sailfish project. It contains an empty Cover Page and two empty Pages.

I find working with a new environment not easy: where to start? What examples to use? More or less similar would be Daily Comics, but they use python code. I've done some python, but incorporating it into QtQuick seems another hurdle to me.

Now, what I want to do:
1. download the webpage of https://nos.nl/ as a text file
2. zoom in on the <section class="news-in-pictures">
3. take the details from all the (10) <figure>: url, caption, text
4. download the images (each 100 kB, write the files or keep in memory?)
5. display them, optionally with caption and text

I found filedownloader https://wiki.qt.io/Download_Data_from_URL#Usage but the first instruction
Code:
private slots:
 void loadImage();
already gives an error in the IDE. So... maybe not the best start. Any ideas?
__________________
Palm Treo -> N900 -> N9 -> Jolla -> SailfishX -> XA2
Developer mode novice, and enjoying it
 

The Following 2 Users Say Thank You to rob_kouw For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#49
You can always start with component gallery example project, not with dummy one.
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following 3 Users Say Thank You to coderus For This Useful Post:
Posts: 301 | Thanked: 531 times | Joined on Aug 2010 @ The Netherlands
#50
Originally Posted by coderus View Post
You can always start with component gallery example project, not with dummy one.
Right, I found that one too. I was going for that after I solved all the downloading.

The QtQuick examples I found on web pages are aiming to show the url directly in a browser. Do you know a way to download that url as a text?

Maybe QWebDownloadItem? Maybe QNetworkAccessManager with a get method? It's so hard finding an example...
__________________
Palm Treo -> N900 -> N9 -> Jolla -> SailfishX -> XA2
Developer mode novice, and enjoying it

Last edited by rob_kouw; 2019-11-23 at 15:45.
 

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


 
Forum Jump


All times are GMT. The time now is 02:49.