Hi!
When selecting a font for a widget in Qt Creator 4.6.2, some of the fonts have
a postfix
[Qt embedded] in their name. E.g. "DejaVu Sans Mono [Qt Embedded]".
What does [Qt Embedded] mean exactly?
--
Best Rergards,
Bernhard
___
Interest mailing l
On Wednesday July 11 2018 14:27:25 Furkan Üzümcü wrote:
>dynamic_cast returns nullptr when the class you are casting is cannot be
>cast down to Type. Casting does not create a new instance for you.
Yeah, I think I was misinformed or I misunderstood something at some point when
someone first int
> That's
> what dynamic_cast also does when it doesn't simply return the original
> pointer, no?
dynamic_cast returns nullptr when the class you are casting is cannot be
cast down to Type. Casting does not create a new instance for you.
Regards,
Furkan Üzümcü
On Jul 11, 2018, 13:33 -0400, René J
On Wednesday, 11 July 2018 07:59:28 PDT Thiago Macieira wrote:
> On Wednesday, 11 July 2018 07:44:46 PDT Oleg Yadrov wrote:
> > qDebug() << a.absolutePath().startsWith(b.absolutePath());
> >
> > qDebug() << a.absolutePath().startsWith(c.absolutePath());
>
> Except that this has a bug
On Wednesday, 11 July 2018 10:30:37 PDT René J.V. Bertin wrote:
> On Wed, 11 Jul 2018 08:01:25 -0700, Thiago Macieira wrote:
> > There's no such C++ concept as "promote a class". What you're asking is
> > not possible.
>
> I think I got confused myself with dynamic_cast, but of course what I had
>
On Wed, 11 Jul 2018 08:01:25 -0700, Thiago Macieira wrote:
> There's no such C++ concept as "promote a class". What you're asking is
> not possible.
I think I got confused myself with dynamic_cast, but of course what I had
in mind was not modifying the instance itself, but create a new
QApplica
Ha. I hope I didn't screw up this time.
#include
#include
#include
// returns true if 'a' is a subdirectory of 'b'
bool isSubdirectory(QDir a, QDir b)
{
while (!a.isRoot()) {
if (a.absolutePath() == b.absolutePath())
return true;
a.cdUp();
}
On Wednesday, 11 July 2018 07:48:31 PDT René J.V. Bertin wrote:
> The only guarantee I can think of is would be promoting a QGuiApplication
> instance to QApplication at runtime, in the plugin.
There's no such C++ concept as "promote a class". What you're asking is not
possible.
If the QCoreAppl
On Wednesday, 11 July 2018 07:44:46 PDT Oleg Yadrov wrote:
> qDebug() << a.absolutePath().startsWith(b.absolutePath());
>
> qDebug() << a.absolutePath().startsWith(c.absolutePath());
Except that this has a bug (which we had in Qt too): these two directories are
considered to be parent-ch
On Wednesday July 11 2018 17:20:51 Konstantin Tokarev wrote:
Hi
> If application object is created as QGuiApplication, you obviously cannot
> cast it to QApplication.
Maybe for casting, but
> If you want to do something only when application object is created as
> QApplication (or its subcla
Hi there,
You can compare their absolute paths.
#include
#include
#include
int main(int argc, char *argv[])
{
QCoreApplication app(argc, argv);
QDir a("/Users/olegyadrov/one/two/three");
QDir b("/Users/olegyadrov/one/two");
QDir c("/Users/olegyadrov/one/four");
11.07.2018, 12:29, "René J.V. Bertin" :
> Hi,
>
> I'm tinkering with using a Qt plugin that expects a QApplication in a
> QGuiApplication (specifically, a QML application using QGuiApplication).
> I'm not doing anything that causes a straight crash (or haven't run into that
> one fatal instruct
Hi,
I'm tinkering with using a Qt plugin that expects a QApplication in a
QGuiApplication (specifically, a QML application using QGuiApplication).
I'm not doing anything that causes a straight crash (or haven't run into that
one fatal instruction yet), but I do wonder:
is it in any way possible
Is there any way of finding if one QDir is a subdirectory of another? So for
instance:
C:\One\Two\Three
is a subdirectory of:
C:\One\Two
but not of:
C:\One\Four
Thanks.
Tom Isaacson
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-pro
14 matches
Mail list logo