Active Topics

 



Notices


Reply
Thread Tools
Halftux's Avatar
Posts: 868 | Thanked: 2,516 times | Joined on Feb 2012 @ Germany
#21
Released a experimental version for Sailfish OS on openrepos.

Known problem focus after user input (click any bit button twice).
 

The Following 2 Users Say Thank You to Halftux For This Useful Post:
velox's Avatar
Posts: 394 | Thanked: 1,341 times | Joined on Dec 2009
#22
Originally Posted by Halftux View Post
Released a experimental version for Sailfish OS on openrepos.

Known problem focus after user input (click any bit button twice).
While I don't know what I would use it for, I really like the techy look.

The window/page does not seem to be in real landscape mode (have you rotated the elements?), because the on screen keyboard pops up on the right hand side when focussing an input element.
__________________
slumber: sensors enabled sleep timer for SFOS (translations/input/… appreciated if you've got some spare time)
talefish: directory based audiobook player for SFOS
nofono: ofono restart for SFOS
___
list of i486/noarch packages on openrepos (jolla tablet)
 

The Following User Says Thank You to velox For This Useful Post:
Halftux's Avatar
Posts: 868 | Thanked: 2,516 times | Joined on Feb 2012 @ Germany
#23
Originally Posted by velox View Post
The window/page does not seem to be in real landscape mode (have you rotated the elements?), because the on screen keyboard pops up on the right hand side when focussing an input element.
Yes I rotated the elements, as far as I know there is no rotation support for qt widgets apps like in maemo. QT5 has in general some rotation but when I was trying some time ago, I could not get it to work in SFOS.

So I used a qgraphicsview to rotate and scaling the application.
If somebody knows a way for rotating or if it is implemented already, it would be much appreciated to let us know how.

But do not tell me to abondon widgets and use qml instead. I know I should do but I don't want it right now.
 
velox's Avatar
Posts: 394 | Thanked: 1,341 times | Joined on Dec 2009
#24
Perhaps this is useful to you?
I don't know much about c++ and qt, but perhaps it works similarly with qdialog (which I just saw being used on the sourceforge page, no idea about qgraphicsview). If thats the case, perhaps you can drop the rotation part.
This is just poking around stuff I know nothing about in my lunch break, feel free to ignore if it's rubbish…
__________________
slumber: sensors enabled sleep timer for SFOS (translations/input/… appreciated if you've got some spare time)
talefish: directory based audiobook player for SFOS
nofono: ofono restart for SFOS
___
list of i486/noarch packages on openrepos (jolla tablet)
 

The Following User Says Thank You to velox For This Useful Post:
Halftux's Avatar
Posts: 868 | Thanked: 2,516 times | Joined on Feb 2012 @ Germany
#25
Originally Posted by velox View Post
Perhaps this is useful to you?
That looks interesting, I will try to play with it.

Originally Posted by velox View Post
I don't know much about c++ and qt, but perhaps it works similarly with qdialog (which I just saw being used on the sourceforge page, no idea about qgraphicsview). If thats the case, perhaps you can drop the rotation part.
Which qdialog at sourceforge? Is it a dialog tool for shell scripts, btw does something like this exists for SFOS?
 
velox's Avatar
Posts: 394 | Thanked: 1,341 times | Joined on Dec 2009
#26
Originally Posted by Halftux View Post
Which qdialog at sourceforge? Is it a dialog tool for shell scripts, btw does something like this exists for SFOS?
Sorry, that wasn't well phrased: I had a quick look at the sourceforge page of hextool and saw "qdialog" there…
https://sourceforge.net/p/hextool/gi...e/qt/hextool.h

I can't say if stuff like it exists for SFOS, sorry.
__________________
slumber: sensors enabled sleep timer for SFOS (translations/input/… appreciated if you've got some spare time)
talefish: directory based audiobook player for SFOS
nofono: ofono restart for SFOS
___
list of i486/noarch packages on openrepos (jolla tablet)
 

The Following User Says Thank You to velox For This Useful Post:
Posts: 578 | Thanked: 994 times | Joined on Dec 2012
#27
So another (beside kodi) great application which have broken gestures...
After digging through qtwayland and lipstick sources I found it in qt docs:
Code:
hextool-git/qt/main.cpp
hextool-git_a/qt/main.cpp
@@ -1,11 +1,14 @@
-#include <QtGui/QApplication>
+#include <QtWidgets/QApplication>
 #include "hextool.h"
+#include <QWindow>
 
 int main(int argc, char *argv[])
 {
     QApplication a(argc, argv);
     HexTool w;
     w.show();
+    QWindow *window = w.windowHandle();
+    window->reportContentOrientationChange(Qt::LandscapeOrientation);
 
     return a.exec();
 }
https://sourceforge.net/p/hextool/git/ci/master/tree/ looks outdated so application have wrong orientation.
Attached Images
 
 

The Following 2 Users Say Thank You to elros34 For This Useful Post:
Halftux's Avatar
Posts: 868 | Thanked: 2,516 times | Joined on Feb 2012 @ Germany
#28
Originally Posted by elros34 View Post
So another (beside kodi) great application which have broken gestures...
After digging through qtwayland and lipstick sources I found it in qt docs:
Code:
+    QWindow *window = w.windowHandle();
+    window->reportContentOrientationChange(Qt::LandscapeOrientation);

 }
Thank you very much I was thinking a way to complicated. Started already to write my own class.
That small code snippet will boost my work on hextool a lot.

The code at sourceforge was my starting point and I changed the gui and keyhandling. Some work I have done could be seen in the maemo repo. However I will try to upload my code changes to github. But this will take some time because I have different source codes for different platforms, so I need to cook them together and publishing only one code.
 

The Following 2 Users Say Thank You to Halftux For This Useful Post:
Halftux's Avatar
Posts: 868 | Thanked: 2,516 times | Joined on Feb 2012 @ Germany
#29
New version released for SFOS 1.7.1-2 on openrepos.
Thank you elros34 for the handling landscape system report fix.

* Fri Mar 18 2017 Halftux 1.7.1-2
- fixed gesture to landscape
- fixed user input focus

* Thu Mar 16 2017 Halftux 1.7.1-1
- Initial release
 

The Following 3 Users Say Thank You to Halftux For This Useful Post:
Halftux's Avatar
Posts: 868 | Thanked: 2,516 times | Joined on Feb 2012 @ Germany
#30
New version released. Modiefied the lineedit to have an easier input with a virtual keyboard. This can be toggled in the options page.

* Tue Mar 21 2017 1.7.1-3
- added dialog animation ok cancel
- added moveable lineedit (virtual keyboard)
- fixed option widget mouse event bug

 

The Following 4 Users Say Thank You to Halftux For This Useful Post:
Reply

Tags
binary, calculator, conversion, decimal, harmattan, hexadecimal, maemo 5


 
Forum Jump


All times are GMT. The time now is 15:44.