}
walkEntity(entity, depth + 1);
}
}
}
```
On Sat, 6 Aug 2022 at 00:09, Mike Krus wrote:
> the computations are done a background thread, you may have to wait 1
> frame before they are valid.
> Or call QBoundingVolume::updateImplicitBounds() before reading them.
&
Any insight ?
On Wed, 3 Aug 2022 at 15:44, Nicholas Yue wrote:
> I have the following code
>
> ```
> void SceneWalker::walkEntity(Qt3DCore::QEntity *e, int depth)
> {
> Qt3DCore::QNodeVector nodes = e->childNodes();
> for (int i = 0; i < nodes.count(); ++i)
loading
> is asynchronous), you can use
> QSceneLoader::entity() to get a loaded entity by name, and then
> QEntity::componentsOfType() to get the component.
> Loaded entities are children of the entity that the QSceneLoader component
> was assigned to, and components and
> en
at the root and the
> same properties will be updated.
>
> In Qt5, the QGeometry node associated with each render has similar min/max
> properties (note that they only valid if the mesh uses all the geometry).
>
> Hope this helps,
>
> Mike
>
>
> > On 1 Aug
StringLiteral("Open a scene file"));
} else {
sourceFileName = QUrl::fromLocalFile(args[1]);
}
if (sourceFileName.isEmpty())
return 0;
sceneLoader->setSource(sourceFileName);
view.setRootEntity(sceneRoot);
view.show();
return app.exec();
}
```
Cheers
--
Nicholas Yue
https://www.linkedin.com/in/nicholasyue/
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest
> > Interest@qt-project.org
> > https://lists.qt-project.org/listinfo/interest
> >
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
--
Nicholas Yue
https://www.linkedin.com/in/nicholasyue/
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest
190, 190 ) );
p1.quadTo(QPointF(190, 10 ),QPointF(10,10) );
p1.moveTo(50,50);
p1.quadTo(QPointF( 150, 50 ),QPointF( 150, 150 ) );
p1.quadTo(QPointF(50, 150 ),QPointF(50,50) );
painter.fillPath(p1, thrusterColor);
painter.end();
}
```
On Sun, 15 Aug 2021 at 10:32, Ni
Hi,
I would like to generate SVG via QSvgGenerator with additional attribute
to the path object
```
```
Where should we be adding such attributes e.g. fill, fill-rule, so that
QSvgGenerator will embed them in the generated SVG file ?
Cheers
--
Nicholas Yue
https://www.linkedin.com/in
, 300, 150)
self.setWindowTitle('Buttons')
self.show()
def main():
app = QtWidgets.QApplication(sys.argv)
ex = Example()
ex.show()
sys.exit(app.exec_())
if __name__ == '__main__':
main()
Cheers
--
Nicholas Yue
https://www.linkedin.com/in/nicholasyue/
__
heir true content.
>
> Regards, Tony
>
>
> On 12/07/2021 7:27 am, Nicholas Yue wrote:
>
> Hi,
>
> I have a horizontal layout, self.viewHorizontalLayout
>
> I am adding the following items
>
> # Inputs/View/Outputs panel
> self.ui_inputs = Qt
f.ui_outputs so that later on, when I do add items to them, it does not
pop in size to accommodate the additional content ?
Cheers
--
Nicholas Yue
https://www.linkedin.com/in/nicholasyue/
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-
I figured it out,
QNetworkAccessManager networkManager;
needs to be a member of the class (not within the doSubmit() method),
otherwise it would have gone out of scope before the reply returns
Cheers
On Sat, 12 Jun 2021 at 10:29, Nicholas Yue wrote:
> I have now moved the c
urn" here and let your slot be called when the time is
> right.
> >
>
> Right, too much Python lately... "should" have been `processEvents()`
> which is when I realized there were no events to process w/out a Qt loop
> in the first place. Returning from main(
Manager::finished, ...
>
> -Max
> _______
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
--
Nicholas Yue
Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5
Custom Dev - C++ porting,
der,
//"application/x-www-form-urlencoded");
QNetworkAccessManager networkManager;
QNetworkReply* reply;
reply = networkManager.post(request,
postData.toString(QUrl::FullyEncoded).toUtf8());
QVariant statusCode = reply->attribute(
QNetworkRequest::HttpStatu
required wasm_shell.html was not installed in
the expected place by qmake.
I had a look at Qt 6.1.1 release notes hoping to find out if there was any
mention of wasm/webassembly but did not see any.
Cheers
--
Nicholas Yue
Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5
Custom Dev - C++ porting
Hi,
In widget approach for QLineEdit, one can associate a QCompleter with it.
In QML, is there a way to have completion assistance for a TextField
control ?
Cheers
--
Nicholas Yue
Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http
: 3dextras 3dcore 3drender 3dinput
3dquick 3dquickextras
```
Should I consider Qt 6.x i.e. it is definitely supported in the latest
version ?
Cheers
--
Nicholas Yue
Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in
e Qt QML examples? How is your C++ code different to those?
>
> Hope that helps, Tony
>
>
> On 3/06/2021 11:33 am, Nicholas Yue wrote:
>
> Hi,
>
> I am learning about QML.
>
> I would like to find out why the PySide2 loading of the QML file results
> in a
ore.QUrl.fromLocalFile('MenuBar.qml')
engine.load(url)
if not engine.rootObjects():
sys.exit(-1)
sys.exit(app.exec_())
--
Nicholas Yue
Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholas
, the Qt Creator created files do not have a ui.qml, just the qml
files.
Are ui.qml files important as QML projects get larger/more-complex ?
Cheers
--
Nicholas Yue
Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in
plitter->layout()->addWidget(w);
#endif
}
```
Cheers
--
Nicholas Yue
Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
https://vimeo.com/channels/naiadtools
___
Int
from QWindow and not QWidget ?
Cheers
--
Nicholas Yue
Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
https://vimeo.com/channels/naiadtools
___
Interest mailing list
Answering my own email.
I found this and it worked.
https://wiki.qt.io/Qt_for_WebAssembly#Files_and_local_file_system_access
Cheers
On Sat, 15 May 2021 at 17:32, Nicholas Yue wrote:
> Hi,
>
> Given the sandbox security of WASM, application only have access to the
> virtua
/practice I can deploy ?
Cheers
--
Nicholas Yue
Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
https://vimeo.com/channels/naiadtools
___
Interest mailing list
tps://wiki.qt.io/Qt_for_WebAssembly
I am hosting the example on an HTTPS server and connecting it via
Chrome and Firefox, both of which the clipboard does not get the
updates.
Any suggestions?
Cheers
--
Nicholas Yue
Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5
Custom Dev - C++ porting,
Hi,
Is there a way to set the maximum allowable columns e.g. set to 80, and
when the user try to type pass that column, the word is automatically
wrapped to the next line to allow the user to continue ?
Cheers
--
Nicholas Yue
Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5
Custom Dev - C
solely by itself ?
Cheers
--
Nicholas Yue
Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
https://vimeo.com/channels/naiadtools
___
Interest mailing list
Interest@qt
ernal UI files to be
> available to the application... or if this is a one-time sort of issue.
> My point being that you may be better off using plugins to being with,
> since dynamically loading UI files has very limited functionality.
>
> Cheers,
> -Max
>
> (Please reply to
h you probably don't need to do).
> See:
>
>
> https://stackoverflow.com/questions/58714879/my-custom-widget-is-not-shown-in-qt-creator-qt-designer-but-it-is-shown-when-i
>
> https://stackoverflow.com/questions/23275909/adding-widgets-to-qt-designer
>
>
> HTH,
> -Max
--
Nicholas Yue
Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
https://vimeo.com/channels/naiadtools
___
Interest mailing list
Interest@qt-project.org
https://lists.qt
");
}
This works for compiled applications as an *.exe but I notice that it does
not work when I build it as a WASM package.
I believe this is likely due to security/sandbox reasons.
Any recommendation of possible solution for the wasm use case ?
Cheers
--
Nicholas Yue
Graphics - Arnol
// qApp->removeTranslator(&ui_translator);
bool installed = qApp->installTranslator(&ui_translator);
if (installed) {
this->retranslateUi();
}
}
}
void MainWindow::retranslateUi()
{
ui_label = findChild("label");
Hi,
Learning about QtCreator, I see that one may obtain a Path or URL to a
resource.
When loading files (via e.g. c++) a resource what is the difference ?
i.e. which should one use as a best practice ?
[image: image.png]
Cheers
--
Nicholas Yue
Graphics - Arnold, Alembic, RenderMan, OpenGL
ed method by uic
>
> It should automatically react to language change events, see:
>
> https://doc.qt.io/qt-6/quiloader.html#setLanguageChangeEnabled
>
> Regards, Friedemann
>
> --
>
> Friedemann Kleint
> The Qt Company GmbH
>
> ___
> Interest mailing list
>
/QtQuestions/blob/main/Qt5/language_change/mainwindow/MainWindow.cpp
The examples and documentation I found focuses on Form/Widget but not
MainWindow
Any advice ?
Cheers
--
Nicholas Yue
Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http
ug() << "HELLO WORLD";
bool installed = qApp->installTranslator(&translator);
if (installed) {
loadLanguage("German");
}
qDebug() << "installed = " << installed;
*Form)
In my situation, how should I retranslate my UI ?
Cheers
--
Nicholas Yue
Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
https://vimeo.com/channels/naiadtools
Hi,
When building a Qt app with qmake that was build as WASM, it generate a
corresponding *.html which references the qtlogo.svg file
cme.html:
Is there some option in the *.pro I can specify to tell qmake to use a
different SVG file instead?
Cheers
--
Nicholas Yue
Graphics
Thank you Thorsten for the insight :-)
On Wed, 28 Apr 2021 at 09:55, Thorsten Glaser wrote:
> On Wed, 28 Apr 2021, Nicholas Yue wrote:
>
> > I am new to locale handling in general and definitely new to locale on
> the
> > web browser.
>
> If you’re targetting a we
t;
std::endl;
if (QLocale::system().name().startsWith("de_")) {
if (translator.load(":/language/.qm/cme_de.qm")) {
app.installTranslator(&translator);
} else {
std::cerr << "ERROR: Translation failure to load" << std::endl;
}
}
CMEForm cme;
cme.show();
r_lang.qrc
**
hellotr_la.ts
hellotr_la.ts
*
QPushButton
Hello world!
hellotr,pro
SOURCES = main.cpp
TRANSLATIONS = hellotr_la.ts
target.path = $$[QT_INSTALL_EXAMPLES]/linguist/hellotr
INSTALLS += target
QT += widgets
:
> Hi Nicholas,
>
> On 24.01.21 18:42, Nicholas Yue wrote:
> >I am troubleshooting the failure to configure Qt6 qxcb for building
> > on Ubuntu 20.04
> >
> >A number of sites I saw references 18.04 which I tried to adapt but
> > to no avail.
> >
Hi,
I am troubleshooting the failure to configure Qt6 qxcb for building on
Ubuntu 20.04
A number of sites I saw references 18.04 which I tried to adapt but to no
avail.
Anyone know of the canonical list of dependencies required to build Qt6
with qxcb on Ubuntu 20.04 ?
Cheers
--
Nicholas
ation system has features that may be useful for other things as
> well. I'd highly recommend reading the whole Internationalization
> section of the Qt docs:
> https://doc.qt.io/Qt-5/internationalization.html
>
> HTH,
> -Max
>
>
> On 1/23/2021 12:05 PM, Nicholas
Hi,
I am starting to learn more about supporting multiple languages.
I had a browse through the following URL
https://wiki.qt.io/How_to_create_a_multi_language_application
If I am not using qmake + *.pro files, how are the initial
*_.ts files created?
Cheers
--
Nicholas Yue
Graphics
more easily and was better with Qml.
>
>
>
> *From:* Interest *On Behalf Of *Nicholas
> Yue
> *Sent:* January 18, 2021 11:13 PM
> *To:* Thiago Macieira
> *Cc:* interest@qt-project.org
> *Subject:* Re: [Interest] QPA display system query ?
>
>
>
> T
8 Jan 2021 at 19:12, Thiago Macieira
wrote:
> On Monday, 18 January 2021 16:15:23 PST Giuseppe D'Angelo via Interest
> wrote:
> > Hi,
> >
> > Il 19/01/21 00:33, Nicholas Yue ha scritto:
> > > Is there some command line query I can make to determine the QPA
>
_______
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
--
Nicholas Yue
Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
https://vi
Thanks for your reply Giuseppe.
I will extract the "xcb" from the output of qtdiag.
Cheers
On Mon, 18 Jan 2021 at 16:18, Giuseppe D'Angelo via Interest <
interest@qt-project.org> wrote:
> Hi,
>
> Il 19/01/21 00:33, Nicholas Yue ha scritto:
> > Is there s
Hi,
Is there some command line query I can make to determine the QPA display
system that is being used? For example, running that command on e.g. an
Ubuntu box may return something like *xcb*
Cheers
--
Nicholas Yue
Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5
Custom Dev - C++ porting
>
> Regards
>
>
>
> Kai
>
>
>
> *From:* Interest *On Behalf Of *Nicholas
> Yue
> *Sent:* Monday, January 18, 2021 6:02 AM
> *To:* interest@qt-project.org
> *Subject:* [Interest] How to use Qt6::qmake ?
>
>
>
> Hi,
>
>
>
> I would lik
Hi,
I would like to use qmake within a CMake build with the following
find_package(Qt6 COMPONENTS CoreTools UiTools LinguistTools Widgets OpenGL
OpenGLWidgets REQUIRED CONFIG)
execute_process(Qt6::qmake
OUTPUT_VARIABLE
qmake_stdout
)
How ever, the following reports that Qt6::qmake is
ou can call this:
>
> QAction *actionP(qobject_cast(QObject::sender()));
>
>
> and you'll get the action that caused the sending.
> you can have previously stuffed something interesting into the objectName
> of the action, then recover it in your handler
>
> does t
connect(specialistMenuAction[specialistMenuActionIndex],
SIGNAL(triggered()), this, SLOT(specialistMenuHandler()));
}
}
:
:
}
```
```
void MainWindow::specialistMenuHandler()
{
std::cout << "MainWindow::specialistMenuHandler()" << std::endl;
}
```
Cheers
--
Nicholas Yue
\quicktest.cpp.obj
ninja: build stopped: subcommand failed.
Cheers
--
Nicholas Yue
Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
https://vimeo.com/channels/naiadtools
__
gh, maybe you should do a rendering into a framebuffer of each
> layer with a different z. That would make the rendering very easy and super
> fast on GPU.
>
>
>
> After you could put the result into a QImage or QPixmap.
>
>
>
>
>
> *From:* Interest *On Behalf O
where I can write those
rectangular buckets of pixels individually ?
Cheers
--
Nicholas Yue
Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
https://vimeo.com/channels/naiadtools
about bundle/fixupbundle, I was wondering with the release of
Qt6 and CMake being the default build system, if there is any
improvement/streamline of the process.
Cheers
--
Nicholas Yue
Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http
Hi,
Is there any pre-build version of Qt which can produce webassembly code?
Preferably on Linux.
I wish to learn and experiment with what Qt can create for *.wasm but
lack the resources to build a WebAssembly version of Qt from source.
Cheers
--
Nicholas Yue
Graphics - Arnold, Alembic
Thanks Giuseppe,
Got it working.
Cheers
On Mon, 15 Jun 2020 at 02:46, Giuseppe D'Angelo
wrote:
> Il 15/06/20 03:26, Nicholas Yue ha scritto:
> > The return widget object does not have a viewport() method from looking
> > at the QWidget - docs <https://doc.
t->widget();
} else
QGraphicsItem::mousePressEvent(event);
}
On Sun, 14 Jun 2020 at 17:22, Giuseppe D'Angelo via Interest <
interest@qt-project.org> wrote:
> Il 15/06/20 00:50, Nicholas Yue ha scritto:
> > Hi,
> >
> >I understand that a QGraphicsS
Hi,
I understand that a QGraphicsScene may be view by multiple QGraphicsView
When handling a mouse event, what is the Qt way to find out from which
view the event was from ?
Cheers
--
Nicholas Yue
Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux
;)
fm = QtGui.QFontMetrics(font)
Cheers
--
Nicholas Yue
Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
https://vimeo.com/channels/naiadtools
___
Interest mailing list
--
Nicholas Yue
Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
https://vimeo.com/channels/naiadtools
___
Interest mailing list
Interest@qt-project.org
https://lists.qt
(Alembic) that follows Qt3D best
practices so that I can concentrate on the geometry and leverage the other
aspect like material/shading that is already part of Qt3D
Cheers
--
Nicholas Yue
Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http
66 matches
Mail list logo