Re: [Interest] qobject_cast

2017-04-20 Thread nikita baryshnikov
Hi, Igor Your example is incorrect, cause you forget about Q_OBJECT macro in Channel class On Thu, Apr 20, 2017 at 8:56 AM, Igor Mironchik wrote: > > > 20.04.2017 8:47, Ch'Gans пишет: > >> On 20 April 2017 at 17:03, Igor Mironchik >> wrote:

Re: [Interest] Mac OS X Qt 5 QCoreApplication application crashes if linking with webenginewidgets

2016-04-12 Thread nikita baryshnikov
Then there should be assertion that qApp is a QApplication to provide user-friendly error On Tue, Apr 12, 2016 at 5:53 PM, Thiago Macieira wrote: > On terça-feira, 12 de abril de 2016 11:07:04 PDT DAS Loop wrote: >> If the current Qt behaviour is acceptable, I will

Re: [Interest] QJSEngine replacement for QScriptEngine misses newFunction

2016-02-23 Thread nikita baryshnikov
As a workaround you can use QQmlContext::setContextObject: QQmlEngine::rootContext()->setContextObject(myMath); On Tue, Feb 23, 2016 at 2:11 PM, Stephen Bryant wrote: > Hi Stefan, > > On Tuesday 23 February 2016 05:34:03 Walter Stefan wrote: > [...] >> >> And in this way. I can

Re: [Interest] question about Qt Regx to match hexdecimal

2013-04-01 Thread nikita baryshnikov
QRegExp re(([0-9a-f]+), Qt::CaseInsensitive); Q_ASSERT(re.indexIn(12345ABC) == 0); Q_ASSERT(re.capturedTexts()[0] == 12345ABC); On Sat, Mar 30, 2013 at 5:07 PM, Vincent Cai w...@cypress.com wrote: Dear all, I tried to create a Qt Regx to match hexdecimal, below is the

[Interest] Qt5 and QtQuick1.1 bug

2013-01-22 Thread nikita baryshnikov
Hi everyone I have project which uses Qt5 and QtQuick 1.1 imports in qml. For QtQuick 1.1 was used desktop components from qt4 branch bit ported to Qt5. Crash happend on dynamic Window component creation. For example this code will cause the segfault. Window { width: 360; height: 360; id: