I thank you for your answers and solutions.
Before I wrote, I tried to use QMetaType::create function to instantiate an
instance but since QObject have deleted copy constructor and copy
assignment operator, I have ended up using QObject pointer with QMetaType..
And when I see that QMetaType::creat
Hi Tony,
yesterday when I compiled with Q_OBJECT I got error, but today it works, I have
no idea why...but
yes I agree I should have Q_OBJECT. But this doesn't solve my problem. Also I
guess I can rewrite a
new class who inherits of QWebEngineView with all Q_PROPERTY and stuff to make
it works a
Hi,
I dont understand how QQmlProperty works, consider this example :
main.cpp : http://pastebin.com/B17uY2Av [1]
MainForm.ui.qml : http://pastebin.com/N3JKnU2h [2]
output :
Property value: QVariant(int, 3)
Property value: QVariant(int, 3)
Property value: QVariant(double, 10)
Property val
Hi everyone,
I want to create a webview embedded in a widget under iOS. I have tried
createwindowcontainer but I could not get the geometry right. With QQuickwidget
I can set the Geometry as I want, but when I embed it in a QWidget, the web
page will not be displayed/loaded.
Following is a mini
John Weeks wrote:
> Which is complicated by Qt's insistence on creating the platform-specific
> thing (wID as NSView, HWND, etc.) only when the QWidget becomes visible.
That would mean I'd need to hook into platform-specific events.
> Or are you writing a plug-in using Qt that is to work with a
> Actually, I'm also seeing QNSWindows (even the occasional QNSPanel). I'm not
> perfectly sure if I've ever seen instances of those because of a WId I
> received;
> can you be that all WIds are always and exclusively of the (Q)NSView
> persuasion?
Well, my experience is only with our applicat
Op 01/03/2016 om 17:21 schreef Thiago Macieira:
On terça-feira, 1 de março de 2016 17:06:49 PST André Somers wrote:
The meta *object* system has no registration.
The meta *type* system requires that the registered type be default-
constructible and copyable, but QObject is not copyable. There
But we can do this though
--
#include
#include
#include
class Object1 : public QObject
{
Q_OBJECT
public:
Q_INVOKABLE Object1(QObject *parent=0) : QObject(parent) { }
~Object1() { }
};
class Object2 : public QObject
{
Q_OBJECT
public:
Q_INVOKABLE Object2(QObject *parent=
On terça-feira, 1 de março de 2016 17:06:49 PST André Somers wrote:
> > The meta *object* system has no registration.
> >
> > The meta *type* system requires that the registered type be default-
> > constructible and copyable, but QObject is not copyable. Therefore,
> > QObject- derived classes ca
Op 01/03/2016 om 16:30 schreef Thiago Macieira:
On terça-feira, 1 de março de 2016 13:59:07 PST André Somers wrote:
I think you did not get the point about QMetaType and QMetaObject. They
_can_ be used together:
I don't think that they can.
1) mark the constructors in the classes you want t
On terça-feira, 1 de março de 2016 13:59:07 PST André Somers wrote:
> I think you did not get the point about QMetaType and QMetaObject. They
> _can_ be used together:
I don't think that they can.
> 1) mark the constructors in the classes you want to be able to construct
> from your file as Q_INV
John Weeks wrote:
Thanks,
> On OS X with Qt 5, WId's are NSViews. You can get the NSWindow from [NSView
Actually, I'm also seeing QNSWindows (even the occasional QNSPanel). I'm not
perfectly sure if I've ever seen instances of those because of a WId I
received;
can you be that all WIds are al
Op 01/03/2016 om 13:40 schreef Sina Dogru:
Hello everyone,
Basically, I have a file which I do save some QObject-derived
instances states. I do save them to be able to use those to recover
the states of those QObject-derived instances.
I do also save the QMetaObject::className() in the fil
Hello everyone,
Basically, I have a file which I do save some QObject-derived instances
states. I do save them to be able to use those to recover the states of
those QObject-derived instances.
I do also save the QMetaObject::className() in the file. And at the
run-time, I would like to dynamicall
14 matches
Mail list logo