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."
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
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
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
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
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
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
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
> -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
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
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
11 matches
Mail list logo