[Interest] QFile::encodeName in all platforms

2018-01-16 Thread Alejandro Exojo via Interest
Hello. When having to pass a QString with a file/path to an API that requires an std::string or const char*, I've been using QFile::encodeName. The docs say: "Converts fileName to the local 8-bit encoding determined by the user's locale. This is sufficient for file names that the user chooses."

Re: [Interest] Qt3D: Correct way of using QBuffer and a compute shader

2018-01-16 Thread Konstantin Tokarev
16.01.2018, 20:29, "Esch Lorenz TU Ilmenau" : > Dear Qt Community, > > I am writing my first application using a compute shader based on Qt3D in > C++. My question: What is the correct way of updating the data needed by the > compute shader during run-time? This is what I tried so far: > > I cr

[Interest] Qt3D: Correct way of using QBuffer and a compute shader

2018-01-16 Thread Esch Lorenz TU Ilmenau
Dear Qt Community, I am writing my first application using a compute shader based on Qt3D in C++. My question: What is the correct way of updating the data needed by the compute shader during run-time? This is what I tried so far: I created a QBuffer object (in form of a QPointer) and fill it w

[Interest] Using private QtQuick APIs

2018-01-16 Thread Christopher Probst
Hi, I am looking to use QtQuick private APIs. More specifically I would like to use the QQuickWindowPrivate class. Out of box, I will get either header files missing errors or linking errors once the header file errors are resolved. What is the standard Qt way to use the QQuickWindowPrivate priva

[Interest] Simple Qt3D globe control QML?

2018-01-16 Thread Jason H
With all the press Qt3D has been getting, I was wondering if there is a ready-made dead-simple globe control where I can specify in lat-lon the central view point, and pass a model of lat-lon points that will appear on the map? User-controlled zoom is probably the most advanced feature. Requir

Re: [Interest] QStaticText's size

2018-01-16 Thread Igor Mironchik
Solution is simple: QTextDocument doc; doc.setHtml( d->staticText.text() ); doc.setTextWidth( width ); doc.setDefaultTextOption( d->staticText.textOption() ); auto size = doc.size(); But this is a bug seems... Bug was reported for Qt4 and closed as Qt5 already was in mainstream. Does anybody k

Re: [Interest] QStaticText's size

2018-01-16 Thread Igor Mironchik
https://bugreports.qt.io/browse/QTBUG-26768 16-Jan-18 12:03, Igor Mironchik пишет: Hello, Is it possible to obtain correct size of the QStaticText with set width? I use: QStaticText st( "Some text..." ); st.setTextWidth( width ); and st.size() returns always the same size, what width I woul

[Interest] QStaticText's size

2018-01-16 Thread Igor Mironchik
Hello, Is it possible to obtain correct size of the QStaticText with set width? I use: QStaticText st( "Some text..." ); st.setTextWidth( width ); and st.size() returns always the same size, what width I wouldn't set. Thank you. ___ Interest mailin

Re: [Interest] QTBUG-65414- qrandom.h breaks compilation of MSVC

2018-01-16 Thread Kai Koehne
> -Original Message- > From: Interest [mailto:interest-bounces+kai.koehne=qt...@qt-project.org] On > Behalf Of Sudhir Sharma > Subject: [Interest] QTBUG-65414- qrandom.h breaks compilation of MSVC > > Hi, > > Do we have any workaround for this issue? Have you tried the patch linked into

[Interest] QTBUG-65414- qrandom.h breaks compilation of MSVC

2018-01-16 Thread Sudhir Sharma
Hi, Do we have any workaround for this issue? Regards, Sudhir http://www.mindtree.com/email/disclaimer.html ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] How to get instance of qml singleton on C++ side

2018-01-16 Thread Лагнер , Сергей
Thank you for advice. Indeed, there is note about it in Qt documentation. > NOTE: A QObject singleton type instance returned from a singleton type provider is owned by the QML engine unless the object has explicit QQmlEngine::CppOwnership flag set. But I can't use exactly that way. I need an inst