Re: [Interest] [interest] how qtwayland to capture weston touch event

2015-04-14 Thread Giulio Camuffo
2015-04-14 5:18 GMT+03:00 Nancy Zou nancy@csr.com:
 Dear All:



 Does anyone know how qtwayland to capture Weston touch event?



 I run my qt demo on platform wayland, the touch don’t have response. my Qt
 version is 5.4.1. Thank you.

Hi,

it should work... Do you see wl_touch events in the protocol dump
generated when exporting WAYLAND_DEBUG=1?


--
Giulio




 Best Regards

 Nancy





 Member of the CSR plc group of companies. CSR plc registered in England and
 Wales, registered number 4187346, registered office Churchill House,
 Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
 More information can be found at www.csr.com. Keep up to date with CSR on
 our technical blog or CSR people blog, YouTube, Facebook or follow us on
 Twitter at twitter.com/CSR_plc.
 You can now access the wide range of products powered by aptX.

 ___
 Interest mailing list
 Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Bad Request

2015-04-14 Thread Gianluca
Dear Wolfgang,
can you check if you can see the link on the browser ?
I can navigate it on Safari … and inspecting the url with wget, I found that 
the link return a 301 (Moved Permanent) error with the correct url with .io 
domain.
So, I think that first we need to be sure that your firewall does not block 
such redirects and you can reach the url.

Ciao,
Gianluca.


Il giorno 14/apr/2015, alle ore 10:42, Wolfgang BETZ wolfgang.b...@st.com ha 
scritto:

 This one I have originally posted on the Qt Forum “Development” / 
 “Installation and Deployment” where I didn’t get an answer to the question 
 and someone (@JKSH) actually suggested me to post it on this list, and such, 
 here it is:
  
 Since a week or so I am experiencing heavy problems when trying to update Qt 
 components over the MaintainanceTool. Basically I am ending up immediately 
 with an error massage of type, e.g.:
  
 Network error while downloading target ...
 Error: Error downloading 
 https://download.qt-project.org/online/qtsdkrepository/... - server replied: 
 Bad Request.
  
 Does anybody else experience the same problem or have an idea how to work 
 around or even solve it?
  
 Thanks in advance,
 Wolfgang
  
  
 P.S.1: I have slightly the impression that the problems is somehow related to 
 the relocation of the qt-project from .org to .io … 
 P.S.2: It happens on both Linux and Windows and
 P.S.3: I am behind a company firewall and need to set up proxy settings in 
 general and in the MaintainanceTool in particular.
 ___
 Interest mailing list
 Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] [interest] how qtwayland to capture weston touch event

2015-04-14 Thread Nancy Zou
Hi Giulio

 it should work... Do you see wl_touch events in the protocol dump generated 
 when exporting WAYLAND_DEBUG=1?

When I touch the demo, there are some wl_touch dumps. But the Qt demo don't 
give any response.  The Weston demo weston-terminal have touch responses. 

So Does qtwayland capture these wl_touch events?

The dumps:
[3998860.276] wl_touch@3.motion(2014043554, 0, 687.00, 247.00)
[3998881.696] wl_touch@3.motion(2014043575, 0, 685.00, 243.00)
[3998901.341] wl_touch@3.motion(2014043595, 0, 684.00, 243.00)
[3998904.053] wl_touch@3.motion(2014043598, 0, 683.00, 243.00)
[3998971.136] wl_touch@3.motion(2014043665, 0, 683.00, 244.00)
[3998994.364] wl_touch@3.motion(2014043688, 0, 683.00, 245.00)
[3999015.816] wl_touch@3.motion(2014043710, 0, 680.00, 260.00)
[3999035.464] wl_touch@3.motion(2014043729, 0, 679.00, 260.00)
[3999038.175] wl_touch@3.motion(2014043732, 0, 677.00, 276.00)
[3999057.815] wl_touch@3.motion(2014043752, 0, 676.00, 276.00)
[3999061.441] wl_touch@3.motion(2014043755, 0, 673.00, 288.00)
[3999080.207] wl_touch@3.motion(2014043774, 0, 672.00, 288.00)
[3999104.508] wl_to...@3.up(20, 2014043798, 0)



Best Regards
Nancy



Member of the CSR plc group of companies. CSR plc registered in England and 
Wales, registered number 4187346, registered office Churchill House, Cambridge 
Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
More information can be found at www.csr.com. Keep up to date with CSR on our 
technical blog, www.csr.com/blog, CSR people blog, www.csr.com/people, YouTube, 
www.youtube.com/user/CSRplc, Facebook, 
www.facebook.com/pages/CSR/191038434253534, or follow us on Twitter at 
www.twitter.com/CSR_plc.
You can now access the wide range of products powered by aptX at www.aptx.com
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Fwd: [interest] UITools - how to modify the GUI?

2015-04-14 Thread Tamás Nagy
Hi,

A forum says:

You need to change your QFile constructor argument

QFile out(:/test.txt);

to a correct path that could be

QFile out(./test.txt);

or

QFile out(C:/test.txt);

This way I cannot read and write it at the same time. It does not read it
in, as there is no resource path there.

It can be that I use 2 QUILoaders: one for the :\test.txt resource path,
because it reads it in.
And a .\test.txt resource path, because it can write it.

But 2 files cannot be open at the same time.

Tamas


2015-04-14 9:42 GMT+02:00 Tamás Nagy tamas.nagy@gmail.com:
 Hi,

 Ok, I added the mainwindow.ui to a resource file, now it can be opened.

 With your solution it works and finds the tabs:

 if (!file.open(QIODevice::ReadOnly | QIODevice::Text));

 But I also have to modify the GUI, so I have to set it ReadWrite:

 if (!file.open(QIODevice::ReadWrite | QIODevice::Text))

 With this I get Unknown Error for trying to open the file.
 I checked the file: it is not read only.

 Tamas


 2015-04-13 18:48 GMT+02:00 Alejandro Exojo s...@badopi.org:
 El Monday 13 April 2015, Tamás Nagy escribió:
 Hi,

 It was almost impossible, but it does not load the UI file:

 GuiParser::GuiParser(QTreeWidget *tree)
 {
 treeWidget = tree;

 QUiLoader uiLoader;
 QFile file(mainwindow.ui);   // I also copied file to C: root
 and wrote fix path here
 // I also wrote here a file.open, but it does not help to change
 it from unknown error to a better one

 I don't understand that sentence. Were you able to open the file with QFile
 and confirm that the application can read it?

 QMessageBox msgBox0;
 msgBox0.setText( file.errorString() );  // gives UNKNOWN ERROR

 Well, in this code, you didn't call file.open().

 Try just this:

 QFile file(mainwindow.ui);
 if (!file.open(QIODevice::ReadOnly | QIODevice::Text));
 qWarning()  Could not open the file  file.errorString();
 else
 qDebug()  file.readLine(50);

 Then just look at the output in the console, or the output panel in 
 creator,
 or whatever you are using. If you see the warning, you have the explanation
 there. If you see garbage output instead of text, your file is not how it
 should be. If you see something like the UI file contents (?xml 
 version=1.0
 encoding=UTF-8? for example), then the problem is in the code below. But 
 at
 least let's confirm this first.

 --
 Alex (a.k.a. suy) | GPG ID 0x0B8B0BC2
 http://barnacity.net/ | http://disperso.net
 ___
 Interest mailing list
 Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Bad Request

2015-04-14 Thread Wolfgang BETZ
This one I have originally posted on the Qt Forum Development / Installation 
and Deploymenthttps://forum.qt.io/topic/53121/bad-request where I didn't get 
an answer to the question and someone (@JKSHhttps://forum.qt.io/user/jksh) 
actually suggested me to post it on this list, and such, here it is:

Since a week or so I am experiencing heavy problems when trying to update Qt 
components over the MaintainanceTool. Basically I am ending up immediately with 
an error massage of type, e.g.:

Network error while downloading target ...
Error: Error downloading 
https://download.qt-project.org/online/qtsdkrepository/... - server replied: 
Bad Request.

Does anybody else experience the same problem or have an idea how to work 
around or even solve it?

Thanks in advance,
Wolfgang


P.S.1: I have slightly the impression that the problems is somehow related to 
the relocation of the qt-project from .org to .io ...
P.S.2: It happens on both Linux and Windows and
P.S.3: I am behind a company firewall and need to set up proxy settings in 
general and in the MaintainanceTool in particular.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] [interest] UITools - how to modify the GUI?

2015-04-14 Thread Tamás Nagy
Hi,

Ok, I added the mainwindow.ui to a resource file, now it can be opened.

With your solution it works and finds the tabs:

if (!file.open(QIODevice::ReadOnly | QIODevice::Text));

But I also have to modify the GUI, so I have to set it ReadWrite:

if (!file.open(QIODevice::ReadWrite | QIODevice::Text))

With this I get Unknown Error for trying to open the file.
I checked the file: it is not read only.

Tamas


2015-04-13 18:48 GMT+02:00 Alejandro Exojo s...@badopi.org:
 El Monday 13 April 2015, Tamás Nagy escribió:
 Hi,

 It was almost impossible, but it does not load the UI file:

 GuiParser::GuiParser(QTreeWidget *tree)
 {
 treeWidget = tree;

 QUiLoader uiLoader;
 QFile file(mainwindow.ui);   // I also copied file to C: root
 and wrote fix path here
 // I also wrote here a file.open, but it does not help to change
 it from unknown error to a better one

 I don't understand that sentence. Were you able to open the file with QFile
 and confirm that the application can read it?

 QMessageBox msgBox0;
 msgBox0.setText( file.errorString() );  // gives UNKNOWN ERROR

 Well, in this code, you didn't call file.open().

 Try just this:

 QFile file(mainwindow.ui);
 if (!file.open(QIODevice::ReadOnly | QIODevice::Text));
 qWarning()  Could not open the file  file.errorString();
 else
 qDebug()  file.readLine(50);

 Then just look at the output in the console, or the output panel in creator,
 or whatever you are using. If you see the warning, you have the explanation
 there. If you see garbage output instead of text, your file is not how it
 should be. If you see something like the UI file contents (?xml version=1.0
 encoding=UTF-8? for example), then the problem is in the code below. But at
 least let's confirm this first.

 --
 Alex (a.k.a. suy) | GPG ID 0x0B8B0BC2
 http://barnacity.net/ | http://disperso.net
 ___
 Interest mailing list
 Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Bad Request

2015-04-14 Thread Wolfgang BETZ
Hi Gianluca,

thanks for your quick reply!
I have already tried in the browser and there it correctly redirects to 
download.qt.io.
Another interesting thing is, that it is not always the same URL which makes 
the installation or maintenance tools complain.

Ciao Wolfgang

On 04/14/2015 10:55 AM, Gianluca wrote:
Dear Wolfgang,
can you check if you can see the link on the browser ?
I can navigate it on Safari … and inspecting the url with wget, I found that 
the link return a 301 (Moved Permanent) error with the correct url with .io 
domain.
So, I think that first we need to be sure that your firewall does not block 
such redirects and you can reach the url.

Ciao,
Gianluca.


Il giorno 14/apr/2015, alle ore 10:42, Wolfgang BETZ 
wolfgang.b...@st.commailto:wolfgang.b...@st.com ha scritto:

This one I have originally posted on the Qt Forum “Development” / “Installation 
and Deployment”https://forum.qt.io/topic/53121/bad-request where I didn’t get 
an answer to the question and someone (@JKSHhttps://forum.qt.io/user/jksh) 
actually suggested me to post it on this list, and such, here it is:

Since a week or so I am experiencing heavy problems when trying to update Qt 
components over the MaintainanceTool. Basically I am ending up immediately with 
an error massage of type, e.g.:

Network error while downloading target ...
Error: Error downloading 
https://download.qt-project.org/online/qtsdkrepository/... - server replied: 
Bad Request.

Does anybody else experience the same problem or have an idea how to work 
around or even solve it?

Thanks in advance,
Wolfgang


P.S.1: I have slightly the impression that the problems is somehow related to 
the relocation of the qt-project from .org to .io …
P.S.2: It happens on both Linux and Windows and
P.S.3: I am behind a company firewall and need to set up proxy settings in 
general and in the MaintainanceTool in particular.
___
Interest mailing list
Interest@qt-project.orgmailto:Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] harfbuzz support?

2015-04-14 Thread René J . V . Bertin
On Sunday April 12 2015 08:21:40 Christoph Feck wrote:

My interest in this isn't completely satisfied yet :)

Harfbuzz is responsible for layout (positioning) of glyphs, not 
rendering them to bitmaps.

My question does remain how Qt4 includes or links to the harfbuzz functions. 
Even after building with -harfbuzz none of the binaries in the resulting 
frameworks link to libharfbuzz, and the 3rdparty/harfbuzz directory in the Qt 
source/build tree hasn't even been configured.
Harfbuzz does show up in the feature list printed after the configure step, 
though.

R.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Bad Request

2015-04-14 Thread Koehne Kai


 -Original Message-
 From: interest-bounces+kai.koehne=theqtcompany@qt-project.org
 [mailto:interest-bounces+kai.koehne=theqtcompany@qt-project.org]
 On Behalf Of Wolfgang BETZ
 Sent: Tuesday, April 14, 2015 11:10 AM
 To: Gianluca
 Cc: interest@qt-project.org
 Subject: Re: [Interest] Bad Request
 
 Hi Gianluca,
 
 thanks for your quick reply!
 I have already tried in the browser and there it correctly redirects to
 download.qt.io.
 Another interesting thing is, that it is not always the same URL which makes
 the installation or maintenance tools complain.

This is most likely caused by the switch from http to https in the online 
installers.

Could you 

- create  a proper bug report for this on bugreports.qt.io , Qt project, 
Packaging and Installer component
- include details about your networking setup: Did you configure a HTTPS proxy 
in the installer settings? If so, do you know details about the proxy?

Kind regards

Kai

 Ciao Wolfgang
 
 
 On 04/14/2015 10:55 AM, Gianluca wrote:
 
 
   Dear Wolfgang,
   can you check if you can see the link on the browser ?
   I can navigate it on Safari ... and inspecting the url with wget, I 
 found
 that the link return a 301 (Moved Permanent) error with the correct url with
 .io domain.
   So, I think that first we need to be sure that your firewall does not
 block such redirects and you can reach the url.
 
   Ciao,
   Gianluca.
 
 
   Il giorno 14/apr/2015, alle ore 10:42, Wolfgang BETZ
 wolfgang.b...@st.com ha scritto:
 
 
   This one I have originally posted on the Qt Forum
 Development / Installation and Deployment
 https://forum.qt.io/topic/53121/bad-request  where I didn't get an
 answer to the question and someone (@JKSH
 https://forum.qt.io/user/jksh ) actually suggested me to post it on this 
 list,
 and such, here it is:
 
   Since a week or so I am experiencing heavy problems when
 trying to update Qt components over the MaintainanceTool. Basically I am
 ending up immediately with an error massage of type, e.g.:
 
   Network error while downloading target ...
   Error: Error downloading https://download.qt-
 project.org/online/qtsdkrepository/... - server replied: Bad Request.
 
   Does anybody else experience the same problem or have an
 idea how to work around or even solve it?
 
   Thanks in advance,
   Wolfgang
 
 
   P.S.1: I have slightly the impression that the problems is
 somehow related to the relocation of the qt-project from .org to .io ...
   P.S.2: It happens on both Linux and Windows and
   P.S.3: I am behind a company firewall and need to set up
 proxy settings in general and in the MaintainanceTool in particular.
 
   ___
   Interest mailing list
   Interest@qt-project.org
   http://lists.qt-project.org/mailman/listinfo/interest
 
 

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] harfbuzz support?

2015-04-14 Thread René J . V . Bertin
On Tuesday April 14 2015 10:04:15 Lisandro Damián Nicanor Pérez Meyer wrote:

Qt5 has the -system-harfbuzz compile switch, I don't know Qt4. If it doesn't 
it maybe tries to autodetect the lib at build time.

That would have been my guess, but 1) there's no trace of that in the configure 
log and 2) I'd expect at least one of the frameworks (libraries) to show 
libharfbuzz when doing the OS X equivalent of ldd (probably 
QtGui.framework/QtGui or else QtCore).

I'm not even sure how to check if the -harfbuzz switch had any effect, it's not 
like layout has all of a sudden become that much better or worse :)

R.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] To rpath or not when building Qt

2015-04-14 Thread Mike Jackson
On Wed, Mar 11, 2015 at 7:59 PM, Thiago Macieira thiago.macie...@intel.com
wrote:

 On Wednesday 11 March 2015 23:50:52 Nikos Chantziaras wrote:
  On 10/03/15 21:07, Scott Aron Bloom wrote:
   When building Qt for distribution via LGPL of a closed source product
   using shared libraries.
  
   What is the best method to make sure the plugins pickup the Qt
 libraries
   you are shipping?
 
  As Thiago mentioned, you can use RPATH. However, RPATH is overridable.

 s/overridable/non-overridable/

  What you *really* want to set is RUNPATH. If you want to load the
  plugins from a directory that exists inside the directory of your
  executable, then use $ORIGIN as the prefix.

 I personally prefer RUNPATH, so that I can override when I want to.

  For reference, if you want to use RPATH instead of RUNPATH, use:
 
 -Wl,-rpath=\$ORIGIN/lib,--disable-new-dtags
 
  Note: it is somewhat of a nightmare to escape the $ in \$ORIGIN in a
  way that can make it undamaged to the final link command. The shell must
  receive \$ORIGIN, and until it makes it there, it can pass through
  several processing stages. You might need an unholy amount of escape
  sequences ($ORIGIN or similar.) Trial end error :-/

 See Creator's source code for the way to do it with qmake.

 --
 Thiago Macieira - thiago.macieira (AT) intel.com
   Software Architect - Intel Open Source Technology Center


Is there a way to do this _during_ the packaging of the application? If I
add those link commands then will I not need to copy all the Qt Libraries
into my build folder? Anyone have any experience doing any of this from
CMake? It looks like CMake may have something already figured out,
Possibly...

-- 
Mike Jackson
imikejackson _at_ gee-mail dot com
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] To rpath or not when building Qt

2015-04-14 Thread Thiago Macieira
On Tuesday 14 April 2015 12:37:32 Mike Jackson wrote:
   For reference, if you want to use RPATH instead of RUNPATH, use:
  -Wl,-rpath=\$ORIGIN/lib,--disable-new-dtags
   
   Note: it is somewhat of a nightmare to escape the $ in \$ORIGIN in a
   way that can make it undamaged to the final link command. The shell must
   receive \$ORIGIN, and until it makes it there, it can pass through
   several processing stages. You might need an unholy amount of escape
   sequences ($ORIGIN or similar.) Trial end error :-/
  
  See Creator's source code for the way to do it with qmake.
  
 Is there a way to do this _during_ the packaging of the application? 

No, the RPATH fields need to be created during linking.

What you can do is write a very, very long path and then use the chrpath tool 
to modify it during packaging.

 If I
 add those link commands then will I not need to copy all the Qt Libraries
 into my build folder?

Do you mean whether you have to ship the Qt libraries with your application? 
That is orthogonal to the question here. If you want to rely on your users 
installing Qt from their distro, you can.

 Anyone have any experience doing any of this from
 CMake? It looks like CMake may have something already figured out,

The tool shouldn't matter here.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Camera.focus.focusZones.length is 0?

2015-04-14 Thread Jason H
I am trying to get more reliable (read: in-focus) images. It seems that 
Camera.searchAndLock() is not enough, for various reasons that I won't go into. 
I am approaching this problem from multiple angles. I now include accelerometer 
data to reduce motion blur (our subjects are still) and I went to make sure the 
camera thought it was in focus. I even copied the example (included below) from 
the docs which shows the focus rects, but none are shown. I'm using 

Camera {
  id: camera
  focus.focusMode: Camera.FocusContinuous
  focus.focusPointMode: Camera.FocusPointCenter
}

I would figure there would be at least one focus zone. So how can I tell if the 
camera thinks it is a focus?

// Example from docs
VideoOutput {
  anchors.fill: parent
  autoOrientation: true
  source: camera
  Repeater {
model: camera.focus.focusZones
Rectangle {
  border {
width: 2
color: status == Camera.FocusAreaFocused ? green : white
}
color: transparent
  // Map from the relative, normalized frame coordinates
property variant mappedRect: viewfinder.mapNormalizedRectToItem(area);
x: mappedRect.x
y: mappedRect.y
width: mappedRect.width
height: mappedRect.height
  }
 }
}


Many thanks in advance!
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] QML detecting swipe gesture for open side menu

2015-04-14 Thread Gianluca
Hello,
I’m trying to achieve something very common on the mobile app: the swipe from 
left to right made from the left side of the screen that display the lateral 
menu of the app.
I didn’t find any way to do with QML.
First of all, there is no SwipeGesture item into QML (while there is 
PinchArea). (why there is no QML item for recognize the other common gestures?)
Then I tried to cover the entire screen with a MouseArea with an high z value 
in order to implement a simple recognizer by myself, but I didn’t find any way 
to propagate all mouse events in order to allow to all other MouseArea present 
behind to work properly.

I’m blocked. I don’t have any other ideas.

Any idea ? suggestions ?

Thanks,
Gianluca.

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] MenuBar QML not usable on Yosemite OSX

2015-04-14 Thread mark diener
Hello:

Tried using a MenuBar QML component with a Window component on OSX
yosemite, but
the Menubar does not appear at all.

Anybody have a tip on menubar visibility or usage on OSX?   (Any gotchas in
windows?)

Thanks all,

md


import QtQuick 2.4

import QtQuick.Window 2.2

import QtQuick.Controls 1.3


import main.js as Gjs


Window {


id: mainwindow


visible: true


width: Screen.width

height: Screen.height

color: black

title: Mockup


MenuBar

{

id: mainmenu

Menu

{

title: qsTr(RpzMockup)

MenuItem

{

text: qsTr(Exit)

onTriggered: Qt.quit() ;

}

}

}

}
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] MenuBar QML not usable on Yosemite OSX

2015-04-14 Thread Daiwei Li
You have to use an ApplicationWindow as your top-level item and assign your
MenuBar to the menuBar property of it:
http://doc.qt.io/qt-5/qml-qtquick-controls-applicationwindow.html#menuBar-prop

On Tue, Apr 14, 2015 at 10:05 AM, mark diener rpzrpz...@gmail.com wrote:

 Hello:

 Tried using a MenuBar QML component with a Window component on OSX
 yosemite, but
 the Menubar does not appear at all.

 Anybody have a tip on menubar visibility or usage on OSX?   (Any gotchas
 in windows?)

 Thanks all,

 md


 import QtQuick 2.4

 import QtQuick.Window 2.2

 import QtQuick.Controls 1.3


 import main.js as Gjs


 Window {


 id: mainwindow


 visible: true


 width: Screen.width

 height: Screen.height

 color: black

 title: Mockup


 MenuBar

 {

 id: mainmenu

 Menu

 {

 title: qsTr(RpzMockup)

 MenuItem

 {

 text: qsTr(Exit)

 onTriggered: Qt.quit() ;

 }

 }

 }

 }



 ___
 Interest mailing list
 Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QML detecting swipe gesture for open side menu

2015-04-14 Thread Daiwei Li
Here's an example of a NavigationDrawer implementation in QML that I found
online: https://gist.github.com/jbache/2b625d40efd4c344ab20

On Tue, Apr 14, 2015 at 9:26 AM, Gianluca gmax...@gmail.com wrote:

 Hello,
 I’m trying to achieve something very common on the mobile app: the swipe
 from left to right made from the left side of the screen that display the
 lateral menu of the app.
 I didn’t find any way to do with QML.
 First of all, there is no SwipeGesture item into QML (while there is
 PinchArea). (why there is no QML item for recognize the other common
 gestures?)
 Then I tried to cover the entire screen with a MouseArea with an high z
 value in order to implement a simple recognizer by myself, but I didn’t
 find any way to propagate all mouse events in order to allow to all other
 MouseArea present behind to work properly.

 I’m blocked. I don’t have any other ideas.

 Any idea ? suggestions ?

 Thanks,
 Gianluca.

 ___
 Interest mailing list
 Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QAudioDecoder

2015-04-14 Thread John Weeks
 I fed it a .wav file. QAudioFormat told me it was a signed 8-bit file. But a 
 .wav file is apparently always unsigned if it is 8-bit.
 
 Question 2: Hm... I guess there is no question, it's just a bug.

I reported it yesterday: https://bugreports.qt.io/browse/QTBUG-45540

It's fixed today!

Now for my other question...

-John Weeks

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] MenuBar QML not usable on Yosemite OSX

2015-04-14 Thread rpzrpz...@gmail.com
Mr Li:

That was tried as well and did not work.

A copy of your suggestion is below and it does not work on:

Yosemite OSX 10.10.2
Xcode 6.1.1
Qt 5.4.1
Qt Creator 3.3.2

Anyone else with some ideas?

Thanks

#

import QtQuick 2.4

import QtQuick.Window 2.2

import QtQuick.Controls 1.3



ApplicationWindow {


 id: mainwindow


 visible: true


 width: Screen.width

 height: Screen.height

 color: black

 title: Mockup


 menuBar: MenuBar

 {

 id: mainmenu

 Menu

 {

 title: qsTr(Mockup)

 MenuItem

 {

 text: qsTr(Exit)

 onTriggered: Qt.quit() ;

 }

 }

 }
}


On 4/14/2015 12:25 PM, Daiwei Li wrote:
 You have to use an ApplicationWindow as your top-level item and assign
 your MenuBar to the menuBar property of it:
 http://doc.qt.io/qt-5/qml-qtquick-controls-applicationwindow.html#menuBar-prop

 On Tue, Apr 14, 2015 at 10:05 AM, mark diener rpzrpz...@gmail.com
 mailto:rpzrpz...@gmail.com wrote:

 Hello:

 Tried using a MenuBar QML component with a Window component on OSX
 yosemite, but
 the Menubar does not appear at all.

 Anybody have a tip on menubar visibility or usage on OSX?   (Any
 gotchas in windows?)

 Thanks all,

 md


 import  QtQuick  2.4

 import  QtQuick.Window  2.2

 import  QtQuick.Controls  1.3


 import  main.js  as  Gjs


 Window  {


  id:  mainwindow


  visible:  true


  width:  Screen.width

  height:  Screen.height

  color:  black

  title:  Mockup


  MenuBar

  {

  id:  mainmenu

  Menu

  {

  title:  qsTr(RpzMockup)

  MenuItem

  {

  text:  qsTr(Exit)

  onTriggered:  Qt.quit()  ;

  }

  }

  }

 }



 ___
 Interest mailing list
 Interest@qt-project.org mailto:Interest@qt-project.org
 http://lists.qt-project.org/mailman/listinfo/interest




-- 
No spell checkers were harmed during the creation of this message.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] harfbuzz support?

2015-04-14 Thread Lisandro Damián Nicanor Pérez Meyer
On Sunday 12 April 2015 01:20:36 René J.V. Bertin wrote:
 Hi,
 
 Qt can be built with or without support for text rendering using
 harfbuzz. Qt4 and Qt5 seem to differ slightly in this aspect, but from
 what I understand both can be made to use harfbuzz at runtime even
 when not compiled to use it (by default).
 I'd like to test this, as it would probably let text rendering benefit
 from the Infinality patches I have applied to my FreeType library.
 
 I checked my build of the Qt 4.8.7 snapshot released the other day:
 it's been built without giving a harfbuzz option, which should be
 equivalent to
 
  *  -no-harfbuzz ... Disable HarfBuzz on Mac. It can still be
 enabled by setting
  QT_ENABLE_HARFBUZZ environment variable.

Qt5 has the -system-harfbuzz compile switch, I don't know Qt4. If it doesn't 
it maybe tries to autodetect the lib at build time.

-- 
Dadme voto electrónico y con una terminal os haré presidente.
  el.machi

Lisandro Damián Nicanor Pérez Meyer
http://perezmeyer.com.ar/
http://perezmeyer.blogspot.com/


signature.asc
Description: This is a digitally signed message part.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest