Re: [Interest] QVariant cannot take custom type

2013-04-05 Thread Aekold Helbrass
m: Aekold Helbrass [helbr...@gmail.com] > Sent: Friday, April 05, 2013 5:59 PM > To: Pritam Ghanghas > Cc: Qt-interest Interest > Subject: Re: [Interest] QVariant cannot take custom type > > Complete QtCreator project in attachment. I'm running it on QtCreator > 2.7.0 and Qt 5

Re: [Interest] QVariant cannot take custom type

2013-04-05 Thread Aekold Helbrass
m: > interest-bounces+pritam_ghanghas=infosys@qt-project.org[interest-bounces+pritam_ghanghas= > infosys@qt-project.org] on behalf of Aekold Helbrass [ > helbr...@gmail.com] > Sent: Friday, April 05, 2013 4:45 PM > To: Qt-interest Interest > Subject: Re: [Interest] QVarian

Re: [Interest] QVariant cannot take custom type

2013-04-05 Thread Aekold Helbrass
___ > From: > interest-bounces+pritam_ghanghas=infosys@qt-project.org[interest-bounces+pritam_ghanghas= > infosys@qt-project.org] on behalf of Aekold Helbrass [ > helbr...@gmail.com] > Sent: Friday, April 05, 2013 4:15 PM > To: Conti Manuele > Cc: Qt-interest Int

Re: [Interest] QVariant cannot take custom type

2013-04-05 Thread Aekold Helbrass
is and work perfectly: > Q_DECLARE_METATYPE(QSharedPointer) > qRegisterMetaType< QSharedPointer >(); > > > Bye > > On 04/05/2013 12:27 PM, Samuel Gaist wrote: > > He explains how to handle QObject * so a pointer to QObject instance, > not a QObject instance. > &g

Re: [Interest] QVariant cannot take custom type

2013-04-05 Thread Aekold Helbrass
So, it is absolutely impossible to use QObject-derived class with QVariant? I'm storing QList of pointers already, and I want to write that with QMetaProperty. The only thing that needs copy-constructor, in my understanding, is qRegisterMetaType invocation. I even read an article where guy explain

Re: [Interest] QVariant cannot take custom type

2013-04-05 Thread Aekold Helbrass
might be of interest > http://stackoverflow.com/questions/7872578/how-to-properly-use-qregistermetatype-on-a-class-derived-from-qobject > > Hope it helps > > On 5 avr. 2013, at 09:37, Aekold Helbrass wrote: > > > Hi All! > > > > Short story is: I'm trying t

[Interest] QVariant cannot take custom type

2013-04-05 Thread Aekold Helbrass
Hi All! Short story is: I'm trying to put custom type into QVariant and it doesn't work, on debug I see QVariant with value and trying to read it I'm getting segfault. Long story, I'm new to Qt/C++ so I'm trying to do everything very carefully, but I'm almost sure it's some rookie mistake in my

Re: [Interest] Why QString and not std::string?

2012-06-15 Thread Helbrass
On Fri, 15 Jun 2012 17:39:06 +0300, Rui Maciel wrote: > On 06/15/2012 03:13 PM, Giuseppe D'Angelo wrote: >>> > But it's standard and it is C++. >> But (I think) the point was: what should have we used for the last >> 10-15 years of QString? > > I could've been a bit clearer in my initial post,

Re: [Interest] QML: How to create reusable containers?

2012-05-16 Thread Aekold Helbrass
That's excellent idea! Will do just that, thank you! On Wed, May 16, 2012 at 5:28 PM, Sivan Greenberg wrote: > Hello Aekold, > > On Wed, May 16, 2012 at 5:15 PM, Aekold Helbrass wrote: >> Lame question which I cannot figure out myself: how to create reusable >> c

[Interest] QML: How to create reusable containers?

2012-05-16 Thread Aekold Helbrass
Hi All! Lame question which I cannot figure out myself: how to create reusable container components in QML? Here is what I have in mind: Rectangle { Header { } Row { anchors.bottom: parent.bottom anchors.right: parent.right

Re: [Interest] Color Picker (Pipette)

2012-05-13 Thread Helbrass
Hi, I suggest you to start here: http://qt-project.org/doc/qt-4.8/desktop-screenshot.html I'm almost sure that you'll be able to get exact pixel instead of full desktop screenshot. On Sun, 13 May 2012 12:11:28 +0300, wrote: > Hello, > > I try to develop a small tool for my own to select a

[Interest] Need "best practice" recommendation on MouseArea

2012-05-11 Thread Helbrass
Hi All! Impressed with QML power I've been experimenting with some ideas I have that I would not dare to do with any other toolkit, and got some behavioural problems with MouseArea that I cannot resolve in a clean way. I can do it with some boolean flags and setting them with some complicated log

[Interest] QML, write, generate and view documentation

2012-04-21 Thread Aekold Helbrass
Hi All! Writing my very first project with QtQuick, and have first bunch of questions: 1. In documentation I see comment for every property. C++ part of Qt had /* */ for simple comment and /** */ for documentation comment, but I can't find that kind of documentation comment for QML. Is there any?