[Interest] [interest] Getting QMetaProperty for a dynamically added property

2013-06-03 Thread Prashant
I need to come up with a property browser (for dynamic properties) like interface table for QObject derived class objects. Properties can be enumerated using QObject::dynamicPropertyNames() function. For each entry, I intend to read the property from the object using QObject:roperty(). That will ta

Re: [Interest] documentation for QString::right(int n) confuse

2013-06-03 Thread Constantin Makshin
If 'x' is equal to "Pineapple", then x[0] = 'P' x[1] = 'i' x[2] = 'n' x[3] = 'e' x[4] = 'a' x[5] = 'p' x[6] = 'p' x[7] = 'l' x[8] = 'e' No offence, but I don't understand how the phrase "n rightmost characters" can be confusing to anyone. :-) On Jun 4, 2013 7:39 AM, "Duan,Lin" wrote: > here it

Re: [Interest] documentation for QString::right(int n) confuse

2013-06-03 Thread Scott Aron Bloom
I think saying "the n rightmost characters" is pretty clear... If it was from the index (which makes no sense for a "right" function) it would be 0 index'ed based, and would return the right characgters starting from the 5th 0 based position which would be the 6th character, and be pple Scott

[Interest] documentation for QString::right(int n) confuse

2013-06-03 Thread Duan,Lin
here it says: QString QString::right(int n) const Returns a substring that contains the n rightmost characters of the string. The entire string is returned if n is greater than size

Re: [Interest] Target machine not set in projects generated by qmake for Visual Studio

2013-06-03 Thread Tony Rietwyk
Thanks Ben, that was the clue I was looking for. Tony > Hi Tony, > > This is how I modified the .pro files of my projects: > > win32 { > contains(QMAKE_HOST.arch, x86_64) { > QMAKE_LFLAGS += /MACHINE:X64 > } else { > QMAKE_LFLAGS += /MACHINE:X86 > } > } > > IIRC

Re: [Interest] Long menus on Windows

2013-06-03 Thread Alex Malyushytskyy
I will try to recall what I did once. Instantiate and add subclass of QWidgetAction to the menu. Such subclass had to instantiate your widget (better not to derive it from dialog). To do this override createWidget. Such widget can be any complex or simple widget. If not mistaken I had explicitly

Re: [Interest] Target machine not set in projects generated by qmake for Visual Studio

2013-06-03 Thread Ben Swerts
> Hi Everybody! > > When I build my Qt 4.8.4 projects on Windows 7, I always get this warning: > > LINK : warning LNK4068: /MACHINE not specified; defaulting to X86 > > and later: > >- 0 error(s), 1 warning(s) > > which sucks. I have tried changing mkspecs/win32-msvc2008/qmake.

[Interest] Getting QTextDocument page break positions

2013-06-03 Thread Joshua Grauman
Hello all, I have a QTextEdit/QTextDocument that I want to print. I call document()->setPageSize(QSizeF(pageWidth,pageHeight)); to set the page size and can print it fine. I have some custom drawing I need to do though and so I need to have a reliable way to see where QTextDocument did the pag

[Interest] QtMultimedia examples don't play video on all systems?

2013-06-03 Thread Nikos Chantziaras
I've built the video examples that come with the 5.1.0 beta ("videowidget" and "player"). They are unable to play video when running the *.exe in a VMWare environment running XP and 7. It works fine on a native Windows 7 environment with the NVidia drivers installed. The same videos play jus

Re: [Interest] What is the "right" way to make a cpu monitor like animation in QML?

2013-06-03 Thread Mark
Hi, That's nice! Thank you very much for giving me that pointer. Regards, Mark On Mon, Jun 3, 2013 at 1:55 PM, Pasion Jerome wrote: > Hello, > > The snippets in the Custom Geometry page are fixed for 5.1: > http://doc-snapshot.qt-project.org/qt5-stable/qtquick/scenegraph-customgeometry.html > >

Re: [Interest] QBS automoc

2013-06-03 Thread Joerg Bornemann
Hi Ivan, For qbs questions we have this mailing list: http://lists.qt-project.org/mailman/listinfo/qbs > Hello, how do i enable "automocing" with qbs? It is automatically enabled once your product depends on a Qt module. > I'm have a cpp file (qcolorbutton.cpp), which includes moc file: > > #in

[Interest] QBS automoc

2013-06-03 Thread Иван Комиссаров
Guys? Does anyone know? Иван Комиссаров 02.06.2013, в 3:21, Иван Комиссаров написал(а): > > Hello, how do i enable "automocing" with qbs? > > I'm have a cpp file (qcolorbutton.cpp), which includes moc file: > #include "qcolorbutton.moc" > However, qbs ignores that line and generates wrong moc

Re: [Interest] What is the "right" way to make a cpu monitor like animation in QML?

2013-06-03 Thread Pasion Jerome
Hello, The snippets in the Custom Geometry page are fixed for 5.1: http://doc-snapshot.qt-project.org/qt5-stable/qtquick/scenegraph-customgeometry.html Feel free to file a bug if there are other issues in the documentation. Jerome P. Documentation Engineer - Digia, Qt