Re: [Interest] terrible font rendering with QtQuick

2014-05-29 Thread Evince Moi
Thanks, Ian. problem solved.

Regards
Evince Moi


On Thu, May 29, 2014 at 1:42 PM, Ian Monroe i...@monroe.nu wrote:


 On May 28, 2014 10:37 PM, bane yue bane...@gmail.com wrote:
 
  It finally works! thanks you, Ian.
 
  Now i know *how* to do it, but *don't know* why to do it this way, would
 you mind to tell me
  more about this, much appreciated.
 
  Regards
  Evince Moi

 Windows OpenGL drivers are notoriously bad, that's the reason ANGLE was
 created. With that llvmpipe Mesa library you aren't using the GPU directly,
 it's traditional Windows GDI calls.

 Ian

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


Re: [Interest] terrible font rendering with QtQuick

2014-05-29 Thread Sean Harmer
On Wednesday 28 May 2014 22:42:44 Ian Monroe wrote:
 On May 28, 2014 10:37 PM, bane yue bane...@gmail.com wrote:
  It finally works! thanks you, Ian.
  
  Now i know *how* to do it, but *don't know* why to do it this way, would
 
 you mind to tell me
 
  more about this, much appreciated.
  
  Regards
  Evince Moi
 
 Windows OpenGL drivers are notoriously bad, that's the reason ANGLE was
 created. With that llvmpipe Mesa library you aren't using the GPU directly,
 it's traditional Windows GDI calls.

You could also try updating the OpenGL drivers to the latest version. The 
Intel drivers have improved vastly over the last 12 months.

Cheers,

Sean
-- 
Dr Sean Harmer | sean.har...@kdab.com | Managing Director UK
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] terrible font rendering with QtQuick

2014-05-29 Thread bane...@gmail.com
 You could also try updating the OpenGL drivers to the latest version

of cause i tried that, that was the first thing i did after the problem 
exploded, but with no luck.
The openGL version of the testing XP machine is 2.1, which is enough for Qt 
(openGL 2+), 
Obviously Qt does not use that.


 
From: Sean Harmer
Date: 2014-05-29 18:05
To: interest
CC: Ian Monroe; bane yue
Subject: Re: [Interest] terrible font rendering with QtQuick
On Wednesday 28 May 2014 22:42:44 Ian Monroe wrote:
 On May 28, 2014 10:37 PM, bane yue bane...@gmail.com wrote:
  It finally works! thanks you, Ian.
  
  Now i know *how* to do it, but *don't know* why to do it this way, would
 
 you mind to tell me
 
  more about this, much appreciated.
  
  Regards
  Evince Moi
 
 Windows OpenGL drivers are notoriously bad, that's the reason ANGLE was
 created. With that llvmpipe Mesa library you aren't using the GPU directly,
 it's traditional Windows GDI calls.
 
You could also try updating the OpenGL drivers to the latest version. The 
Intel drivers have improved vastly over the last 12 months.
 
Cheers,
 
Sean
-- 
Dr Sean Harmer | sean.har...@kdab.com | Managing Director UK
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QtQuickCompiler alternative

2014-05-29 Thread Damian Ivanov
Sorry for the late answer, I did profile the application and also
tried with only a black Rectangle {} in a test. Profiling shows
everything ready @140ms. It still feels like 1sec from click to
application show-up, other Qt/gtk apps doesn't feel that way. Is there
a way that the main.cpp renders just a window first and then puts the
ui into it?

2014-05-23 14:24 GMT+03:00 Torgeir Lilleskog torgeir.lilles...@gmail.com:

 On Fri, May 23, 2014 at 10:36 AM, jen...@gmail.com wrote:


 Perhaps it is time spent populating the font database as we have had some
 issues with that in the past.


 This is my suspicion also.

 I was able to reproduce the slow startup in a Kubuntu setup. (Un)fortunately
 I also has started an upgrade to Kubuntu trusty 14.04 at the same time and
 when I got back to profiling it I couldn't reproduce it anymore.
 I put a qDebug() output at the start of main() and saw messages from
 fontconfig appear ~1s after.

 The errors that I saw wrt fontconfig were gone after the Kubuntu upgrade.

 Best regards,
 - Torgeir




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


Re: [Interest] terrible font rendering with QtQuick

2014-05-29 Thread Giuseppe D'Angelo

Il 29/05/2014 12:17, bane...@gmail.com ha scritto:

The openGL version of the testing XP machine is 2.1, which is enough for
Qt (openGL 2+),
Obviously Qt does not use that.


Actually the problem is that Qt uses it (because Qt doesn't know it's 
broken), resulting in glitches. That's why we have ANGLE and llvmpipe as 
workarounds.


--
Join us Oct 6-8 at BCC Berlin for Qt Developer Days 2014!
Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Software Engineer
KDAB (UK) Ltd., a KDAB Group company
Tel. UK +44-1738-450410, Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions



smime.p7s
Description: Firma crittografica S/MIME
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Refreshing Audio Device List

2014-05-29 Thread Randy Yates
Hello,

I'm maintaining a combobox with a list of the audio devices obtained
from QAudioDeviceInfo::availableDevices() and I'd like to refresh the
list with a refresh button. However, re-executing
 
  audioDeviceList = QAudioDeviceInfo::availableDevices(QAudio::AudioInput); 
 
within the same running application doesn't update the device list.

If I exit the app and restart, it shows me the new device list. I'm
hot-plugging a USB audio device in and out.

How do I get a refreshed availableDevices()?

Note that I found an almost identical bug reported here:

https://bugreports.qt-project.org/browse/QTBUG-16842?page=com.atlassian.jira.plugin.system.issuetabpanels:changehistory-tabpanel

The reporter said the problem went away when using QApplication instead
of QCoreApplication, but I'm already using QApplication:

#include cvrgui.h include cvrguiwindow.h include 
#QApplication  int main(int argc, char* argv[]) { 
  Q_INIT_RESOURCE(cvrgui); QApplication app(argc, argv); 
  app.setApplicationName(Continuous Voice Recognition GUI); 
  app.setOrganizationName(Digital Signal Labs); 
 
  CvrGuiWindow cvrGui; cvrGui.show(); 
 
  return app.exec(); 
} 
 
Any help would be appreciated.
-- 
Randy Yates
Digital Signal Labs
http://www.digitalsignallabs.com
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] binding two QML object within C++

2014-05-29 Thread Alex Montgomery
Hello,

I'm trying to do something that seems very simple, but I can't find a
solution anywhere. If I have two QML items that I've created from
components in C++, how do I bind a property on one to follow a property on
the other one? Here's a simple example:

// Simple.qml
Rectangle
{
   property bool myBool : false
}

// C++ code
QQmlComponent simpleFactory;
simpleFactory.loadUrl(QUrl(qrc:///Qml/Simple.qml));
QQuickItem* item1 = qobject_castQQuickItem*(m_simpleFactory.create());
QQuickItem* item2 = qobject_castQQuickItem*(m_simpleFactory.create());

// how do I bind item2's myBool to the value of item1's myBool?

This is very simply done within QML, but I don't see how to do that glue in
C++.

Any help would be appreciated,
Alex
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] binding two QML object within C++

2014-05-29 Thread Thiago Macieira
Em qui 29 maio 2014, às 12:35:11, Alex Montgomery escreveu:
 // C++ code
 QQmlComponent simpleFactory;
 simpleFactory.loadUrl(QUrl(qrc:///Qml/Simple.qml));
 QQuickItem* item1 = qobject_castQQuickItem*(m_simpleFactory.create());
 QQuickItem* item2 = qobject_castQQuickItem*(m_simpleFactory.create());
 
 // how do I bind item2's myBool to the value of item1's myBool?
 
 This is very simply done within QML, but I don't see how to do that glue in
 C++.

It doesn't exist.
-- 
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


Re: [Interest] binding two QML object within C++

2014-05-29 Thread Ian Monroe
On Thu, May 29, 2014 at 12:35 PM, Alex Montgomery
apmontgom...@gmail.com wrote:
 Hello,

 I'm trying to do something that seems very simple, but I can't find a
 solution anywhere. If I have two QML items that I've created from components
 in C++, how do I bind a property on one to follow a property on the other
 one?

Seems like it would be pretty easy to create a generic 'bind'
function. QMetaProperty has everything you need.

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