Re: [Interest] Updating a model re-add everything in QML. How can i prevent that?

2012-11-08 Thread Bo Thorsen
Den 08-11-2012 01:33, Mark skrev: Hi, I have a models in C++ (a QStringList actually). In QML i'm displaying it using a repeater. Now when i remove some items from the end of the list (which happens quite a few times) then the entire list seems to go through the QML repeater again. What i

Re: [Interest] QTreeView width with scroll bar

2012-11-08 Thread Tony Rietwyk
Sent: Thursday, 8 November 2012 6:40 PM On 2012/11/08 09:23 AM, Alex Strickland wrote: However, when the QTreeView gets long enough to automatically add a scroll bar - my calculations don't work and one of the check box columns is obscured by the scrollbar. How can I check if the

[Interest] Qt 4.8.3 MinGW 4.4.0 undefined reference to WinMain@16 with TEMPLATE = lib

2012-11-08 Thread andy fillebrown
Hi, I'm getting undefined references to WinMain@16 when building my libraries with Qt 4.8.3 using the provided MinGW 4.4.0 toolchain. I did some searching but all I could find was QTBUG-27227, which isn't very helpful since I don't want to build in the source tree. I don't mind hacking on the

Re: [Interest] compiling qt with eglfs

2012-11-08 Thread Samuel Rødal
On 11/08/2012 01:55 PM, pritam.ghang...@gmail.com wrote: I am still stuck with qt 4.8.3 with qpa. It always compiles, but I never got it to work. Now when i try the application its failing at load time itself # ./hellogl_es2 -qpa -platform egl Failed to load platform plugin egl. Available

Re: [Interest] compiling qt with eglfs

2012-11-08 Thread pritam.ghang...@gmail.com
On Thu, Nov 8, 2012 at 8:00 PM, Samuel Rødal samuel.ro...@digia.com wrote: On 11/08/2012 01:55 PM, pritam.ghang...@gmail.com wrote: I am still stuck with qt 4.8.3 with qpa. It always compiles, but I never got it to work. Now when i try the application its failing at load time itself #

Re: [Interest] debug QtService

2012-11-08 Thread BRM
From: Sergey sh0...@gmail.com Hello, all I'm developing windows web service using QtService. To debug it, I launch program in VS2005 debugger with -e argument. It starts in console mode and handles requests. How can I emulate stopping the service, so that all code, which is working usually

Re: [Interest] Updating a model re-add everything in QML. How can i prevent that?

2012-11-08 Thread Nicolás Ulrich
Are you really using this? qRegisterMetaTypePathModel*(PathModel*);(with the * in the string) I guess it should be qRegisterMetaTypePathModel*(PathModel); On Thu, Nov 8, 2012 at 10:36 AM, Mark mark...@gmail.com wrote: On Thu, Nov 8, 2012 at 10:34 AM, Bo Thorsen

Re: [Interest] Updating a model re-add everything in QML. How can i prevent that?

2012-11-08 Thread Mark
On Thu, Nov 8, 2012 at 6:43 PM, Nicolás Ulrich nikola...@gmail.com wrote: Are you really using this? qRegisterMetaTypePathModel*(PathModel*);(with the * in the string) I guess it should be qRegisterMetaTypePathModel*(PathModel); On Thu, Nov 8, 2012 at 10:36 AM, Mark

[Interest] How to force a repaint?

2012-11-08 Thread Eric Clark
Hello All, I am sorry if this sounds like a dumb question, but right now my company has locked us out of getting to the Qt documentation via our ridiculous proxy. Anyway, can anyone tell me of a function or an easy way (other than resizing the widget) to force a Widget to repaint? Thank You,

Re: [Interest] How to force a repaint?

2012-11-08 Thread Bo Thorsen
Den 08-11-2012 20:59, Eric Clark skrev: Hello All, I am sorry if this sounds like a dumb question, but right now my company has locked us out of getting to the Qt documentation via our ridiculous proxy. Anyway, can anyone tell me of a function or an easy way (other than resizing the widget)

[Interest] Dependency Injection

2012-11-08 Thread Yunior Bauta Pentón
Hello. What is Dependency Injection Framework more used actually to Qt and C++ ? Any sample ? Thank -- Ing. Yunior Bauta Pentón Dpto: PostgreSQL/DATEC Universidad de las Ciencias Informáticas http://postgresql.uci.cu 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS

Re: [Interest] How to force a repaint?

2012-11-08 Thread Eric Clark
Thank you Bo! From: interest-bounces+eclark=ara@qt-project.org [mailto:interest-bounces+eclark=ara@qt-project.org] On Behalf Of Bo Thorsen Sent: Thursday, November 08, 2012 2:09 PM To: interest@qt-project.org Subject: Re: [Interest] How to force a repaint? Den 08-11-2012 20:59, Eric

Re: [Interest] Updating a model re-add everything in QML. How can i prevent that?

2012-11-08 Thread Nicolás Ulrich
I got this and it seems to work fine (Qt 4.8), but it's not a model. I remember a similar problem with the constructor but I think it was because I was using Q_DECLARE_METATYPE(MyClass) instead of Q_DECLARE_METATYPE(MyClass*). -- MyClass.h

Re: [Interest] Carbon/Cocoa - browserplugin

2012-11-08 Thread Alexander Carôt
I am working on updating the qtbrowserplugin in order to make it running with current Qt versions. Regarding the MAC version that requires a Cocoa version besides the current Carbon solution. In order to get started: When trying to compile the current version I get these errors:

Re: [Interest] Dependency Injection

2012-11-08 Thread Alex Malyushytskyy
http://en.wikipedia.org/wiki/Dependency_injection On Thu, Nov 8, 2012 at 12:44 PM, Yunior Bauta Pentón ypen...@uci.cu wrote: Hello. What is Dependency Injection Framework more used actually to Qt and C++ ? Any sample ? Thank -- Ing. Yunior Bauta Pentón Dpto: PostgreSQL/DATEC

Re: [Interest] Why is this not working? Assign direct to QML (through setContextProperty) works, as function doesn't.

2012-11-08 Thread Alan Ezust
On Thu, Nov 8, 2012 at 1:19 PM, Mark mark...@gmail.com wrote: Note: i cannot do qRegisterMetaType on the PathModel since it's class that inherits from a class that forbids copying the data (copy constructor stuff). qmlRegisterType can register classes derived from QObject. Although you're

Re: [Interest] Why is this not working? Assign direct to QML (through setContextProperty) works, as function doesn't.

2012-11-08 Thread Mark
On Fri, Nov 9, 2012 at 1:01 AM, Alan Ezust alan.ez...@gmail.com wrote: On Thu, Nov 8, 2012 at 1:19 PM, Mark mark...@gmail.com wrote: Note: i cannot do qRegisterMetaType on the PathModel since it's class that inherits from a class that forbids copying the data (copy constructor stuff).

Re: [Interest] Why is this not working? Assign direct to QML (through setContextProperty) works, as function doesn't.

2012-11-08 Thread Tony Rietwyk
Sent: Friday, 9 November 2012 8:19 AM Hi, Lets take this (pseudo code) as example. I made a custom QStringListModel class and calles it PathModel: pathmodel.h class PathModel : public QStringListModel { public: explicit PathModel(QObject *parent = 0); }; Then i made a custom

Re: [Interest] Why is this not working? Assign direct to QML (through setContextProperty) works, as function doesn't.

2012-11-08 Thread Mark
On Fri, Nov 9, 2012 at 3:36 AM, Tony Rietwyk t...@rightsoft.com.au wrote: Sent: Friday, 9 November 2012 8:19 AM Hi, Lets take this (pseudo code) as example. I made a custom QStringListModel class and calles it PathModel: pathmodel.h class PathModel : public QStringListModel { public:

Re: [Interest] Why is this not working? Assign direct to QML (through setContextProperty) works, as function doesn't.

2012-11-08 Thread Lincoln Ramsay
On 09/11/12 12:56, Mark wrote: Ahh, i was really hoping for that to work! Sadly i was welcomed with this compiler error: pathmodel.o: In function `PathModel::PathModel(QObject*)': pathmodel.cpp:(.text+0x14): undefined reference to `vtable for PathModel' You need to run qmake to regenerate

[Interest] Fwd: compiling qt with eglfs

2012-11-08 Thread pritam.ghang...@gmail.com
sorry, missed the list in reply. On Thu, Nov 8, 2012 at 8:06 PM, pritam.ghang...@gmail.com pritam.ghang...@gmail.com wrote: On Thu, Nov 8, 2012 at 8:00 PM, Samuel Rødal samuel.ro...@digia.comwrote: On 11/08/2012 01:55 PM, pritam.ghang...@gmail.com wrote: I am still stuck with qt 4.8.3

Re: [Interest] How to force a repaint?

2012-11-08 Thread André Somers
Op 8-11-2012 20:59, Eric Clark schreef: Hello All, I am sorry if this sounds like a dumb question, but right now my company has locked us out of getting to the Qt documentation via our ridiculous proxy. I hate those companies, but did they even block hitting F1 in Creator? Usually, the