Re: [Interest] Using Widgets for new projects

2017-05-17 Thread Ch';Gans
On 17 May 2017 at 21:12, Till Oliver Knoll wrote: > > > Am 17.05.2017 um 03:14 schrieb Tuukka Turunen : > > > > Hi, > > > > If you make a desktop application widgets are often a solid choice – > especially if you want the application to look like other apps in that OS > and not create your own sty

Re: [Interest] building a light weight tree model

2017-05-01 Thread Ch';Gans
On 2 May 2017 at 17:55, Frank Rueter | OHUfx wrote: > Hi all, > > Here is a snippet of test code to mimic a light weight tree model. > All it is trying to do is mimic the parenting according to the directory > structure on disk using QStandardItems in a QStandardModel. > It works, but it took me

Re: [Interest] qobject_cast

2017-04-20 Thread Ch';Gans
On 20 April 2017 at 19:04, Igor Mironchik wrote: > Hi, > > If sender() is a Channel*, then qobject_cast should not fail. > > Try to add this to your slot, this will print the inheritance list > > qDebug() << "Looking for" << &Channel::staticMetaObject << > Channel::staticMetaObject.className()

Re: [Interest] qobject_cast

2017-04-19 Thread Ch';Gans
On 20 April 2017 at 18:10, Igor Mironchik wrote: > > > 20.04.2017 9:01, Ch'Gans пишет: > > On 20 April 2017 at 17:56, Igor Mironchik wrote: > > 20.04.2017 8:47, Ch'Gans пишет: > > On 20 April 2017 at 17:03, Igor Mironchik > wrote: > > Hi, > &g

Re: [Interest] qobject_cast

2017-04-19 Thread Ch';Gans
On 20 April 2017 at 17:56, Igor Mironchik wrote: > > > 20.04.2017 8:47, Ch'Gans пишет: > >> On 20 April 2017 at 17:03, Igor Mironchik >> wrote: >>> >>> Hi, >>> >>> >>> 20.04.2017 7:52, Ch'Gans пишет:

Re: [Interest] qobject_cast

2017-04-19 Thread Ch';Gans
On 20 April 2017 at 17:03, Igor Mironchik wrote: > Hi, > > > 20.04.2017 7:52, Ch'Gans пишет: >> >> On 20 April 2017 at 16:38, Igor Mironchik >> wrote: >>> >>> Hi, >>> >>> What the benefits of qobject_cast<> on simple st

Re: [Interest] qobject_cast

2017-04-19 Thread Ch';Gans
On 20 April 2017 at 16:38, Igor Mironchik wrote: > Hi, > > What the benefits of qobject_cast<> on simple static_cast<>? Or there is no qobject_cast - works only on QObject (obviously) - returns nullptr if the object cannot be casted to the required type - doesn't relies on RTTI, and is way faster

Re: [Interest] Qt3D: Problem with QSkybox basename property

2017-04-18 Thread Ch';Gans
On 18 April 2017 at 22:58, Sean Harmer wrote: > Hi, > > On 18/04/2017 10:10, Ch'Gans wrote: >> >> Hi there, >> >> I have just tried the sky box entity with Qt-5.9-beta, and found a >> small problem: >> If you don't specify a basename or if t

[Interest] Qt3D: Problem with QSkybox basename property

2017-04-18 Thread Ch';Gans
Hi there, I have just tried the sky box entity with Qt-5.9-beta, and found a small problem: If you don't specify a basename or if the basename is malformed, the GUI will freeze. As the documentation doesn't specify that the basename should be in a QUrl compatible format, I stupidly set the basenam

Re: [Interest] Getting a QImage from an QML Image, protocol, , agnostic QImage?

2017-04-16 Thread Ch';Gans
On 17 April 2017 at 02:47, Roland Hughes wrote: > http://www.logikalsolutions.com/wordpress/sample-page/: > Besides consulting and technical writing services, Roland is also a > multi-published author. He has an > award winning technical book series under The Minimum You Need to Know > register

Re: [Interest] Getting a QImage from an QML Image, protocol, , agnostic QImage?

2017-04-16 Thread Ch';Gans
On 17 April 2017 at 00:50, Roland Hughes wrote: > Andre', > > I live in America where only the organized crime family known as Google is > allowed to commit copyright infringement with wanton abandonment. > > Copyright has many international treaties which in many/most cases means > each country i

Re: [Interest] Qt3D: Wireframe

2017-04-13 Thread Ch';Gans
On 14 April 2017 at 00:25, Ch'Gans wrote: > On 13 April 2017 at 18:52, Sean Harmer wrote: >> Hi, >> >> On 13/04/2017 06:15, Ch'Gans wrote: >>> >>> On 13 April 2017 at 14:38, Ch'Gans wrote: >>>> >>>> Hi, >>>

Re: [Interest] Qt3D: Wireframe

2017-04-13 Thread Ch';Gans
On 13 April 2017 at 18:52, Sean Harmer wrote: > Hi, > > On 13/04/2017 06:15, Ch'Gans wrote: >> >> On 13 April 2017 at 14:38, Ch'Gans wrote: >>> >>> Hi, >>> >>> I would like to be able to select at run-time how my entities are >

Re: [Interest] Qt3D: Wireframe

2017-04-12 Thread Ch';Gans
On 13 April 2017 at 14:38, Ch'Gans wrote: > Hi, > > I would like to be able to select at run-time how my entities are > rendered (ideally on a per entity basis). > I would like to have 3 choices: > - 1. wireframe > - 2. shaded > - 3. shaded + wireframe > >

[Interest] Qt3D: Wireframe

2017-04-12 Thread Ch';Gans
Hi, I would like to be able to select at run-time how my entities are rendered (ideally on a per entity basis). I would like to have 3 choices: - 1. wireframe - 2. shaded - 3. shaded + wireframe I had a look at the wire frame QML example, and translated it to C++. The code is working. I have simp

Re: [Interest] Qt3D: Mesh, buffer and tangent

2017-04-11 Thread Ch';Gans
On 11 April 2017 at 20:45, Sean Harmer wrote: > Hi, > > On Tuesday 11 April 2017 10:46:24 Ch'Gans wrote: >> Hi there, >> >> I'm writing some code to display 2D polygons as 3D polygonal plates, >> my input being a 2D triangulated polygon. >> As i

[Interest] Qt3D: Mesh, buffer and tangent

2017-04-10 Thread Ch';Gans
Hi there, I'm writing some code to display 2D polygons as 3D polygonal plates, my input being a 2D triangulated polygon. As i'm pretty new to 3D/OpenGL, I had a look first at how the plane, cylinder, cuboid, cone, and torus are doing this (from Qt3DExtra). I can successfully display my polygonal p

Re: [Interest] smoothest way to zoom/pan QGraphicsView?

2017-04-07 Thread Ch';Gans
On 7 April 2017 at 19:41, Jean-Michaël Celerier wrote: > In my experience setting a GL viewport makes everything much less snappy (at > least on linux & os x, did not test on windows). > > Here is a video of my software with GL viewport: https://vid.me/kjRe > And without: https://vid.me/e2vu > > A

Re: [Interest] Prevent QGraphicsView calling fitInView() after addItem()

2017-04-06 Thread Ch';Gans
On 7 April 2017 at 16:43, Patrick Stinson wrote: > Hi there! > > It appears that the default behavior for QGraphicsView is to call fitInView() > to center all the items in the scene when a new item is added. Is there a way > to prevent this? I don’t see anything in the docs. > I don't think so,

Re: [Interest] smoothest way to zoom/pan QGraphicsView?

2017-04-06 Thread Ch';Gans
On 7 April 2017 at 15:02, Patrick Stinson wrote: > >> On Apr 6, 2017, at 7:57 PM, Ch'Gans wrote: >> >> On 7 April 2017 at 14:38, Patrick Stinson wrote: >>> I am implementing a pan and zoom on pinch via raw touch events and am >>> finding setTransform

Re: [Interest] smoothest way to zoom/pan QGraphicsView?

2017-04-06 Thread Ch';Gans
On 7 April 2017 at 14:38, Patrick Stinson wrote: > I am implementing a pan and zoom on pinch via raw touch events and am finding > setTransform() to be very slow, even with an empty scene. The touch events > are backed up in a queue by slow synchronous calls to > QGraphicsView.setTransform().

Re: [Interest] Is there a way to simulate serial port data?

2017-03-27 Thread Ch';Gans
On 28 March 2017 at 12:58, Murphy, Sean wrote: >> What about writing a “virtual serial port” ? >> >> QSerialPort is a QIODevice, so one thing you can do is to replace it with a >> custom QIODevice where you can write what you from e.g. a “console >> widget” to evaluate what you want from your appl

Re: [Interest] Mapping floating point screen coordinates to QGraphicsScene

2017-03-18 Thread Ch';Gans
On 19 March 2017 at 15:59, Patrick Stinson wrote: > UITouch coordinates are floating point on iOS, for example for the Apple > Pencil. Is there a way to map this? Seems like this would be easy to > implement based on the QPoint version… > In which coordinate system are the UITouch points expres

Re: [Interest] Double-buffering QGraphicsItem with QImage on retina display

2017-03-16 Thread Ch';Gans
On 17 March 2017 at 16:01, Patrick Stinson wrote: > Hi there! > > I am implementing handwriting with the apple pencil and am double-buffering > each stroke on a QImage before passing the resulting pixmap and bounding rect > for the stroke to a QGraphicsItem. The problem is that painting to the Q

Re: [Interest] String best practice

2017-03-14 Thread Ch';Gans
On 14 March 2017 at 22:43, Harald Vistnes wrote: > Hi, > > I'm currently working on reading and parsing large ASCII based text files > and I am wondering what is the current best practice. There are so many > classes and macros available, so it can be a bit confusing to know what to > use when. C

Re: [Interest] dragLeaveEvent never called & nested widget class

2017-02-27 Thread Ch';Gans
On 27 February 2017 at 22:06, Etienne Sandré-Chardonnal wrote: > Just to clarify, ParameterWidget is a namespace, not a class. > > So putting a QWidget subclass inside a namespace did break dragLeaveEvent ... or your namespace breaks QWidget::dragLeaveEvent somehow. Chris > > 2017-02-27 10:04 G

Re: [Interest] QObject::connect returns true, but the, connection does not work

2017-02-25 Thread Ch';Gans
On 26 February 2017 at 06:09, Roland Hughes wrote: > Stupid question, but is this a console app? > > I'm asking because this happens with console apps. It can happen with any > app, but console apps tend to have the problem most often. Here is what I > mean: > > #include > #include > #include >

Re: [Interest] Creating a QVariant of QList knowing only the class name

2017-02-22 Thread Ch';Gans
On 23 February 2017 at 05:42, Thiago Macieira wrote: > On quarta-feira, 22 de fevereiro de 2017 02:40:37 PST Ch'Gans wrote: >> > If you're going to call the QVariant constructor with a pointer, you MUST >> > pass a pointer to the correct, concrete object. Forget th

Re: [Interest] Creating a QVariant of QList knowing only the class name

2017-02-22 Thread Ch';Gans
On 23 February 2017 at 05:42, Thiago Macieira wrote: > On quarta-feira, 22 de fevereiro de 2017 02:40:37 PST Ch'Gans wrote: [...] >> Tanks for all your inputs, but I'm still puzzled, I can't believe this >> is not achievable in a generic way... > > It i

Re: [Interest] QObject::connect returns true, but the connection does not work

2017-02-22 Thread Ch';Gans
On 23 February 2017 at 09:31, Ch'Gans wrote: > On 23 February 2017 at 09:08, Alexander Dyagilev wrote: >> I think it would be a good idea to mention about this in the QSharedPointer >> docs >From QMetaType documentation: Declare new types with Q_DECLARE_METATYPE() to

Re: [Interest] QObject::connect returns true, but the connection does not work

2017-02-22 Thread Ch';Gans
On 23 February 2017 at 09:08, Alexander Dyagilev wrote: > I think it would be a good idea to mention about this in the QSharedPointer > docs > > > > On 2/22/2017 11:07 PM, Alexander Dyagilev wrote: >> >> I googled; ok, it's a QSharedPointer. >> >> >> https://forum.qt.io/topic/6148/qsharedpoin

Re: [Interest] Creating a QVariant of QList knowing only the class name

2017-02-22 Thread Ch';Gans
On 22 February 2017 at 20:58, Thiago Macieira wrote: > On terça-feira, 21 de fevereiro de 2017 18:20:50 PST Ch'Gans wrote: >> Hi there, >> >> I can create a valid QVariant that contains a MyObject pointer with >> just the class name (ie, QString("MyOb

[Interest] Creating a QVariant of QList knowing only the class name

2017-02-21 Thread Ch';Gans
Hi there, I can create a valid QVariant that contains a MyObject pointer with just the class name (ie, QString("MyObject")) and no access to the class declaration. MyObject is derived from QObject. This QVariant has the following properties: - type() == QVariant::UserType - userType() == QMetaTyp

Re: [Interest] Creating a hover form over a QGraphicsView

2017-02-03 Thread Ch';Gans
On 4 February 2017 at 07:55, Lisandro Damián Nicanor Pérez Meyer wrote: > Hi! I am creating a hover form over a QGraphicsView widget. For starters I > used designer to create a QWidget with all the necessary hover form widgets in > it. Then I created a grid layout, added the hover form to it and f

[Interest] Generic Table's row to 2 columns property/value tree

2016-12-27 Thread Ch';Gans
Hi there, In my application i'm dealing a lot with displaying a list of property value based on user's selection, the selection can be made either from a table view (a row) or a graphicsview item (both selections are synchronised). My application is laid out with dock widgets on the left (several

[Interest] Disable QTableView auto-submit

2016-12-14 Thread Ch';Gans
Hi there, I have a dialog that contains a QTableView, the dialog has the usual cancel, reset, apply and ok buttons. I want the user to decide when the model will commit data by pressing apply or ok and revert data by pressing cancel or reset. I've spend an hour debugging my code to understand why

Re: [Interest] boot2qt for production

2016-12-12 Thread Ch';Gans
On 13 December 2016 at 04:20, Ian Geiser wrote: > Greetings, is there documentation on how to extend boot2qt for a production > appliance? I see lots of good docs on Yocto and Qt for development, but > nothing really on the hard stuff like factory image deployment, updating and > injecting cus

Re: [Interest] QPainterPathStroker's curve threshold

2016-12-08 Thread Ch';Gans
On 8 December 2016 at 20:40, Elvis Stansvik wrote: > Den 8 dec. 2016 1:02 fm skrev "Ch'Gans" : >> >> Hi, >> >> The documentation of QPainterPathStroker's curve threshold says: >> ---

[Interest] QPainterPathStroker's curve threshold

2016-12-07 Thread Ch';Gans
Hi, The documentation of QPainterPathStroker's curve threshold says: Specifies the curve flattening threshold, controlling the granularity with which the generated outlines' curve is drawn. The default threshold is a well adjusted v

Re: [Interest] [QGV] Asynchronous painting of millions QGPathItem

2016-12-07 Thread Ch';Gans
On 7 December 2016 at 21:13, Michael Sué wrote: > Hi, > >>I used some naive approach, based on QPainter world transform, and the width, >>height and area of the bounding box. > > You probably know that there is system support for this with the function > "QStyleOptionGraphicsItem::levelOfDetailF

Re: [Interest] [QGV] Asynchronous painting of millions QGPathItem

2016-12-06 Thread Ch';Gans
On 6 December 2016 at 15:53, Ch'Gans wrote: > Something else I had in mind, is to use QPainterPath::simplified() > and/or QPainterPath::toFillPolygons() to paint a "far" item and use > the "real" painter path to paint a "close" item. Basically as you

Re: [Interest] [QGV] Asynchronous painting of millions QGPathItem

2016-12-06 Thread Ch';Gans
On 7 December 2016 at 01:18, Philip Schuchardt wrote: > Since QGraphicsView can only render in the main gui thread, rendering in a > separate process will prevent the blocking on the main thread. You could > even implement "big pixel" zooming. You zoom in on the visible buffer while > a back buffe

Re: [Interest] [QGV] Asynchronous painting of millions QGPathItem

2016-12-06 Thread Ch';Gans
On 6 December 2016 at 22:26, Ulf Hermann wrote: > Hello, > > I had a somewhat similar, but not quite the same problem when building the > timeline view for the QML profiler in Qt Creator. It's currently usable with > up to about 1 million events in the timeline and you can zoom and scroll it. > Th

Re: [Interest] [QGV] Asynchronous painting of millions QGPathItem

2016-12-05 Thread Ch';Gans
QPainterPath path = buildPath(documentData); QList polygons = path.toFillPolygons(); QList region = [poly.boundingRect() for poly in polygons] As my scene is static, the shape container need to be calculated only once, and i could use Qt Concurrent to pre-calculate them, KDE ThreadWeaver [1] seems

Re: [Interest] [QGV] Asynchronous painting of millions QGPathItem

2016-12-05 Thread Ch';Gans
On 8 September 2016 at 18:29, Tomasz Siekierda wrote: > On 8 September 2016 at 04:17, Ch'Gans wrote: >> >> Hi there, >> >> I'm currently working on a Gerber viewer (Gerber is an old file format >> still widely used in the electronics PCB manufacturing

Re: [Interest] C++11 enum class and QSettings

2016-12-04 Thread Ch';Gans
On 5 December 2016 at 16:15, Bob Hood wrote: > I'm trying to save a C++11 enum class value in a QSettings. In a header I > have: > > #include > > enum class ReportStacking > { > Stacked, > Intermixed > }; > Q_DECLARE_METATYPE(ReportStacking) > > And then in th

[Interest] QGV and Drop shadow test, can you run this test please?

2016-11-27 Thread Ch';Gans
Hi there, Out of curiosity, i would like to compare the perfomance of QGraphicsDrodShadowEffect on my PC, with some of yours. I have pushed a small test app here[1], it simply adds an ellipse to a graphics scene, apply a drop shadow effect and start zooming in automatically. As soon as the event

Re: [Interest] QVariant, enums and gcc (Qt 5.5 vs 5.6 vs 5.7)

2016-11-27 Thread Ch';Gans
On 28 November 2016 at 10:19, Thiago Macieira wrote: > On domingo, 27 de novembro de 2016 11:52:32 PST Thiago Macieira wrote: >> On domingo, 27 de novembro de 2016 16:29:09 PST Ch'Gans wrote: >> > OK, thanks for spending time on this, I think i will report this to >&g

Re: [Interest] Model/view: DnD move w/o remove/insert.

2016-11-27 Thread Ch';Gans
On 28 November 2016 at 02:55, Giuseppe D'Angelo wrote: > On Sun, Nov 27, 2016 at 11:25 AM, Ch'Gans wrote: >> My model supports moveRows (without relying on remove/insert), and i >> have a small toolbar under my table view to move the selected item up >> and down.

[Interest] Model/view: DnD move w/o remove/insert.

2016-11-27 Thread Ch';Gans
Hi there, I would like to know if it is possible to implement an internal move (reorder) of items in a table model/view: - using drag and drop - without first removing the source item and then inserting it back above/below the dest item. My model supports moveRows (without relying on remove/inser

Re: [Interest] QVariant, enums and gcc (Qt 5.5 vs 5.6 vs 5.7)

2016-11-26 Thread Ch';Gans
On 27 November 2016 at 16:18, Thiago Macieira wrote: > On domingo, 27 de novembro de 2016 14:32:20 PST Ch'Gans wrote: >> Output with KUbuntu 16.10, Qt 5.6: >> Data changed QVariant(int, 2) Qt::CheckState(Unchecked) >> Data changed QVariant(int, 0) Qt::CheckState(Un

Re: [Interest] Slow graphics effect (due to _dl_resolve_runtime_avx)

2016-11-26 Thread Ch';Gans
On 27 November 2016 at 07:59, Thiago Macieira wrote: > On domingo, 27 de novembro de 2016 00:08:53 PST Ch'Gans wrote: >> > That explains why _dl_runtime_resolve_avx was used, as opposed to the >> > non-AVX version of it. >> > >> > Note that I can't

Re: [Interest] QVariant, enums and gcc (Qt 5.5 vs 5.6 vs 5.7)

2016-11-26 Thread Ch';Gans
On 27 November 2016 at 14:32, Ch'Gans wrote: > On 27 November 2016 at 07:40, Thiago Macieira > wrote: >> On sábado, 26 de novembro de 2016 21:58:03 PST Ch'Gans wrote: >>> So my code is build using the same gcc, but behave differently >>> depending on

Re: [Interest] QVariant, enums and gcc (Qt 5.5 vs 5.6 vs 5.7)

2016-11-26 Thread Ch';Gans
On 27 November 2016 at 07:40, Thiago Macieira wrote: > On sábado, 26 de novembro de 2016 21:58:03 PST Ch'Gans wrote: >> So my code is build using the same gcc, but behave differently >> depending on the qt libraries (qt-5.6-official gives different result >> than q

Re: [Interest] Slow graphics effect (due to _dl_resolve_runtime_avx)

2016-11-26 Thread Ch';Gans
On 26 November 2016 at 19:55, Thiago Macieira wrote: > On sábado, 26 de novembro de 2016 13:01:03 PST Ch'Gans wrote: >> On 26 November 2016 at 11:57, Thiago Macieira > wrote: >> > That's a useless result. Your tool is telling you not the proper time of >> &g

Re: [Interest] QVariant, enums and gcc (Qt 5.5 vs 5.6 vs 5.7)

2016-11-26 Thread Ch';Gans
On 26 November 2016 at 20:02, Thiago Macieira wrote: > On sábado, 26 de novembro de 2016 15:22:43 PST Ch'Gans wrote: >> Why is QVariant behaviour changing depending on the compiler version? > > You did not test multiple compiler versions. Never once in your email did you &g

[Interest] QVariant, enums and gcc (Qt 5.5 vs 5.6 vs 5.7)

2016-11-25 Thread Ch';Gans
Hi there, In a model/view class, i have a column which is Qt::ItemIsUserCheckable, in my model's setData(), i do: if (role == Qt::CheckStateRole && index.column() == VisibleColumn) { Qt::CheckState state = value.value(); item->visible = state == Qt::Checked; emit dataChange

Re: [Interest] Slow graphics effect (due to _dl_resolve_runtime_avx)

2016-11-25 Thread Ch';Gans
On 26 November 2016 at 13:01, Ch'Gans wrote: > On 26 November 2016 at 11:57, Thiago Macieira > wrote: >> On sábado, 26 de novembro de 2016 11:37:39 PST Ch'Gans wrote: >>> I have run valgrind function profiler here, and it seems that my app >>> spend

Re: [Interest] Slow graphics effect (due to _dl_resolve_runtime_avx)

2016-11-25 Thread Ch';Gans
On 26 November 2016 at 11:57, Thiago Macieira wrote: > On sábado, 26 de novembro de 2016 11:37:39 PST Ch'Gans wrote: >> I have run valgrind function profiler here, and it seems that my app >> spend most of it's time in: >> - QApplication::exec()/QGuiApplication::exe

[Interest] Slow graphics effect (due to _dl_resolve_runtime_avx)

2016-11-25 Thread Ch';Gans
Hi there, On my Linux computer (KUbuntu 16.10, AMD CPU), I'm having a big performance problem with a very simple scene containing a single ellipse with a drop shadow effect. When zooming in, the CPU usage goes to 100% and the view takes ages to draw. This is very simple to reproduce, no need for a

[Interest] Weird result with QPainterPath substraction

2016-11-24 Thread Ch';Gans
Hi there, I need to substract a shape from another using QPainterPath, if the 2 shapes don't intersect and the outer fully contains the inner, the most effective way to do that is: resultPath = solidPath.addPath(cutoutPath); This works well and is fast, given that the path use the right fill rule

Re: [Interest] [QGView] Center align text item that ignores inherited transformation

2016-11-23 Thread Ch';Gans
is that the bounding region/rect of the item is expressed in device coordinates (pixels), and the item transform is relative to parent (or scene) coordinates, so you cannot mix both. Chris > > > On Wed, Nov 23, 2016 at 4:15 AM, Ch'Gans wrote: >> >> Hi there, >>

[Interest] [QGView] Center align text item that ignores inherited transformation

2016-11-22 Thread Ch';Gans
Hi there, I'm trying to add a QGraphicsSimpleTextItem as a child of another (shape) item. I want the text to not follow scaling of the view (I use QGraphicsItem::ItemIgnoreTransformations flag), *and* be always centered on it's parent shape. Ideally, i'm looking at a solution that doesn't require

Re: [Interest] QGraphicsScene and writing to file

2016-09-28 Thread Ch';Gans
On 29 September 2016 at 10:31, Petric Frank wrote: > Hello, > > > > i have a QGraphicsScenewhich i want to write to a file (*.png, ...). > > > > As documrmtation states i use the following: > > --- cut --- > > QGraphicsScene scene; // previously filled > >

Re: [Interest] Current QDataStream format documentation?

2016-09-24 Thread Ch';Gans
On 25 September 2016 at 10:38, Giuseppe D'Angelo wrote: > Hi, > > Il 24/09/2016 02:50, Ch'Gans ha scritto: >> Adding my 2 cents, I haven't use QDataStream stream much, yet i'm very >> well aware of this restriction. I think the documentation is very >

Re: [Interest] Current QDataStream format documentation?

2016-09-23 Thread Ch';Gans
On 24 September 2016 at 05:05, Giuseppe D'Angelo wrote: > Il 23/09/2016 17:14, Thiago Macieira ha scritto: >> The expectation is that you read QDataStream with QDataStream. You don't need >> to know what it writes, only that it can read what it writes. > > Where has this expectation *ever* been st

Re: [Interest] Qt, running as root (sudo/setuid), DBus and OS X

2016-09-18 Thread Ch';Gans
On 19 September 2016 at 07:56, Thiago Macieira wrote: > On sexta-feira, 16 de setembro de 2016 14:22:03 PDT René J.V. Bertin wrote: >> Hi, >> >> Is it possible to use Qt-based applications on OS X that run with elevated >> privileges (= as root), in general and > > It's possible, but not recommend

[Interest] [QGV] Asynchronous painting of millions QGPathItem

2016-09-07 Thread Ch';Gans
Hi there, I'm currently working on a Gerber viewer (Gerber is an old file format still widely used in the electronics PCB manufacturing industry, dating as far back as the old photo-plotter methods), some of these files can get pretty big and I end up with a scene that contains up to 2 millions QG

Re: [Interest] QQueue::enqueue hangs in QList::append

2016-08-08 Thread Ch';Gans
On 9 August 2016 at 05:09, Nilesh Kokane wrote: > On Aug 8, 2016 9:06 PM, "Thiago Macieira" wrote: >> >> On segunda-feira, 8 de agosto de 2016 20:11:38 PDT Nilesh Kokane wrote: >> > Hello, >> > >> > I've a QQueue designed for threadsafe as[1]. I push to the QQueue from >> > one thread and pop fro

Re: [Interest] best qt class to use to detect line/polygon/region collision

2016-08-08 Thread Ch';Gans
On 9 August 2016 at 04:05, maitai wrote: > Hello all, > > I have a list of lines (QLineF) in 2D space. Some might represent a closed > polygon, some others are just a line or represent a non closed polygon. > Classical problem: I need to detect if another given line is crossing one of > the lines

[Interest] [QtSerialBus] CAN & J1939

2016-08-07 Thread Ch';Gans
Hi there, Is there any plan to add support for J1939 in QtSerialBus? Has anyone out there worked on this, have some information to share, maybe code, experience feedback, ...? Regards, Chris ___ Interest mailing list Interest@qt-project.org http://lists

Re: [Interest] Syncing tree views.

2016-07-30 Thread Ch';Gans
On 30 July 2016 at 03:51, william.croc...@analog.com wrote: > >>> >>> IIRC: The first 'L' in LGPL stands for 'Lesser', not 'Library'. >> >> >> For version 2 (which the above text refers to), it was called >> "Library". You are free to use the later versions, whatever name they now >> have. >> See

Re: [Interest] ThreadSafeQueue class deadlocks after consumer acquire

2016-07-30 Thread Ch';Gans
On 31 July 2016 at 09:44, Konstantin Shegunov wrote: > Hello, > > On Sat, Jul 30, 2016 at 10:17 PM, Nilesh Kokane > wrote: >> >> The push function is called for 1000 times though. Any clue? > > > When the pushing of data finishes all threads that are waiting for new data > will be hanging on cons

Re: [Interest] Syncing tree views.

2016-07-29 Thread Ch';Gans
On 29 July 2016 at 22:25, william.croc...@analog.com wrote: > Hello: > > This is a desk top widgets question. > No QML here. > > I have two QTreeView instances. > They both use the same base model, > but differ in subsequent layers of proxy models. > > What is the most convenient way to keep then

Re: [Interest] Is it a LGPLv3 infringement to copy paste qFuzzyCompare implementation

2016-07-22 Thread Ch';Gans
On 22 July 2016 at 21:49, André Somers wrote: > > > Op 22/07/2016 om 11:41 schreef Ch'Gans: > >> On 22 July 2016 at 20:25, Jean-Michaël Celerier >> wrote: >>>> >>>> I was pointed out that there's a potential LGPLv3 license >>> &

Re: [Interest] Is it a LGPLv3 infringement to copy paste qFuzzyCompare implementation

2016-07-22 Thread Ch';Gans
e LGPL. >> Note that this is only a guess as only judges can rule if a piece of >> code is original >> enough to be protected. >> >> If you want to be sure your best move is to contact the FSF or a >> lawyer specializing in copyright. >> >> BR, >>

Re: [Interest] Is it a LGPLv3 infringement to copy paste qFuzzyCompare implementation

2016-07-22 Thread Ch';Gans
ramework, hoping to raise some attention to it. Since it not always a joy to have to re-invent the wheel all the time thx, Chris > > If you want to be sure your best move is to contact the FSF or a > lawyer specializing in copyright. > > BR, > > Benjamin > > 2016-07

[Interest] Is it a LGPLv3 infringement to copy paste qFuzzyCompare implementation

2016-07-21 Thread Ch';Gans
Hi there, I've recently added a "bool FuzzyCompare(float f1, float f2)" function to a proprietary software I'm currently paid to work on (this is plain C++ project, it doesn't use the Qt framework at all). Being a more-than-happy Qt user in my spare time I decided that I would first checkout the q

Re: [Interest] [QtCharts] Logarithmic QDateTimeAxis

2016-07-13 Thread Ch';Gans
On 28 June 2016 at 07:55, Thompson, Adam B. wrote: > > The software package I co-develop at work is dependent on Qt 4.8, but we plan > to move to Qt 5 > when we have time/funding. We currently depend on a third-party plotting > package for our 2D data > visualization, but we'd like to be able to

Re: [Interest] how to install qt enterprise using command line only?

2016-07-07 Thread Ch';Gans
On 7 July 2016 at 19:05, Ben Lau wrote: > > > On 7 July 2016 at 12:42, Thiago Macieira wrote: >> >> On quinta-feira, 7 de julho de 2016 10:29:43 PDT Лагнер, Сергей wrote: >> > Does not work as well >> > >> > ~/Downloads$ ./qt-enterprise-linux-x64-android-5.6.1-1.run -platform >> > minimal >> > Un

Re: [Interest] how to install qt enterprise using command line only?

2016-07-06 Thread Ch';Gans
On 4 July 2016 at 02:28, Лагнер, Сергей wrote: > Hello all. > > I'm trying to use qt enterprise and I want to install it on my build server. > There is no any GUI on the server, so I need some way to install qt without > it. I downloaded qt-enterprise-linux-x64-android-5.6.1-1.run, but it seems >

Re: [Interest] QGraphicsScene & removing item

2016-06-26 Thread Ch';Gans
Sorry, have triggered send accidentally: On 26 June 2016 at 04:40, Igor Mironchik wrote: > My delete method is: > > void > Form::deleteItems( const QList< QGraphicsItem* > & items ) > { My feeling is you should try to remove as much logic as possible from here, there are too many things hapennin

Re: [Interest] Packaging a Qt App for Linux/MacOSX/Windows

2016-06-17 Thread Ch';Gans
ble without CMake. Anyway, I would prefer a solution based on Qt IFW and Qbs. Thanks, Chris > > On 18 June 2016 at 01:17, Ch'Gans wrote: >> >> On 18 June 2016 at 00:19, Ch'Gans wrote: >> > Hi there, >> > >> > I've recently added a (

Re: [Interest] Packaging a Qt App for Linux/MacOSX/Windows

2016-06-17 Thread Ch';Gans
On 18 June 2016 at 00:19, Ch'Gans wrote: > Hi there, > > I've recently added a (very basic) offline installer to my project > using the Qt installer framework and i'm looking for a multi platform > solution to detect my app dependencies and to ship (some of) them in

[Interest] Packaging a Qt App for Linux/MacOSX/Windows

2016-06-17 Thread Ch';Gans
Hi there, I've recently added a (very basic) offline installer to my project using the Qt installer framework and i'm looking for a multi platform solution to detect my app dependencies and to ship (some of) them into my installer. Ideally I would like to automate this... The following pages give

[Interest] Fwd: Building app with clang++ and Qt 5.x/gcc_64 SDK

2016-06-16 Thread Ch';Gans
, 16 de junho de 2016 20:21:40 PDT Ch'Gans wrote: >> Hi there, >> >> I'm on Ubuntu Linux 16.04, i have installed Qt 5.5, 5,6 and 5.7 using >> the Qt unified online installer. I would like to know if it is >> supported to build a Qt app using clang++/64 and

Re: [Interest] Building app with clang++ and Qt 5.x/gcc_64 SDK

2016-06-16 Thread Ch';Gans
Reposting to interest@qt-project.org Chris On 16 June 2016 at 22:36, Chris Gagneraud wrote: > On 16 June 2016 at 20:54, Michael Sué wrote: >> Hi, >> >>> I'm on Ubuntu Linux 16.04 >> >> I build Qt 5.6.1 on Ubuntu 16.04 LTS 64-bit yesterday using the default gcc >> v 5.3.x and had no problems. >

[Interest] Building app with clang++ and Qt 5.x/gcc_64 SDK

2016-06-16 Thread Ch';Gans
Hi there, I'm on Ubuntu Linux 16.04, i have installed Qt 5.5, 5,6 and 5.7 using the Qt unified online installer. I would like to know if it is supported to build a Qt app using clang++/64 and Qt 5.x gcc/64 official binaries. Right now, I'm having building errors like: -

Re: [Interest] Rendering simple QPainterPath with Qt3D

2016-03-15 Thread Ch';Gans
On 15 March 2016 at 22:34, Sean Harmer wrote: > On Tuesday 15 Mar 2016 17:41:07 Ch'Gans wrote: >> On 14 March 2016 at 22:03, Sean Harmer wrote: >> > On Monday 14 Mar 2016 16:50:32 Ch'Gans wrote: >> >> >> >> Could anyone shed some light on how

Re: [Interest] Rendering simple QPainterPath with Qt3D

2016-03-14 Thread Ch';Gans
On 14 March 2016 at 22:03, Sean Harmer wrote: > On Monday 14 Mar 2016 16:50:32 Ch'Gans wrote: >> Hi there, >> >> I have an application that use heavily the Qt graphics view framework, >> where each item represent a flat, solid object on a layer of material. >>

[Interest] Rendering simple QPainterPath with Qt3D

2016-03-13 Thread Ch';Gans
Hi there, I have an application that use heavily the Qt graphics view framework, where each item represent a flat, solid object on a layer of material. They all have a "simple" shape, that is they only use line and arcs and have no windings/overlaps. Items represents a deposit of material or a mat

Re: [Interest] QGraphicsView and ViewPortMargin question

2016-02-21 Thread Ch';Gans
On 21 February 2016 at 00:39, Ch'Gans wrote: > Hi There, > > I have sub-classed a QGraphicsView to add some custom rulers on the > top and on the left. > For this I've followed the principle used here [1], basically what's > done there is: > - set a QGridLay

[Interest] QGraphicsView and ViewPortMargin question

2016-02-20 Thread Ch';Gans
Hi There, I have sub-classed a QGraphicsView to add some custom rulers on the top and on the left. For this I've followed the principle used here [1], basically what's done there is: - set a QGridLayout to the QGV - Add an horizontal ruler at top and left - set QGV's viewPort as the "central widge

Re: [Interest] [Development] [Proposal] Future QtSerialPort with plugins architecture

2016-02-13 Thread Ch';Gans
Hi Denis, Indeed it would be nice to have an extended API for controlling vendor specific extension in a uniform way. Switching between RS232/422/485 is a pretty common feature (including switching b/w full/half duplex, (des)activating termination resistor), as is controlling a few extra GPIO. The

[Interest] QVariant conversion (QString->QChar)

2016-01-19 Thread Ch';Gans
Hi there, According to the documentation of "bool QVariant::canConvert(int targetTypeId) const" [1] a QVariant holding a QString should be able to convert to QChar as "QMetaType::QString converts automatically to QMetaType::QChar" but the following code: QVariant from = QVariant::fromValue(QS

Re: [Interest] New CI for Qt (and OpenSource Qt/QtC 3rd parties)

2015-12-09 Thread Ch';Gans
On 9 December 2015 at 20:22, Alejandro Exojo wrote: > El Monday 07 December 2015, Ch'Gans escribió: >> Sorry to hijack the thread a bit, but I was thinking recently about >> adding contributor projects to some sort of CI. >> >> There's some nice Qt libra

Re: [Interest] New CI for Qt (and OpenSource Qt/QtC 3rd parties)

2015-12-07 Thread Ch';Gans
On 8 December 2015 at 07:25, m...@rpzdesign.com wrote: > I was reading at various places about Qt putting in place a new CI system. > > Where can I get the specs of the new CI build system? > > Where are you running your IOS builds? > Android builds? Sorry to hijack the thread a bit, but I was th

[Interest] Introspecting Qt based shared object (DLL)

2015-11-26 Thread Ch';Gans
Hi there, In short, here is the problem I'm trying to solve: Given a shared object that contains QObject derived classes, I want to: - Enumerate the class names - Create instances of these class and interact with them I would like to do that with Qt and I would like it to be platform independent

[Interest] Qt and 'FitNesse' acceptance testing framework

2015-11-08 Thread Ch';Gans
Hi there, Couldn't find anything related on the net, so asking here: FitNesse[1] is a wiki based acceptance testing framework, it includes a (very basic) C/C++ 'SLim' server. Has anyone around here used the 'FitNesse' acceptance testing framework with a Qt based application? The C/C++ server ha

Re: [Interest] Error following the ICS page

2014-08-15 Thread Ch';Gans
On 16/08/14 07:20, Amey Patil wrote: > Hello, > > I followed this page; > https://www.ics.com/blog/beaglebone-black-low-cost-embedded-platform-part-3#.U-1NP_7fEew > > When i copied the ipk files to the beaglebone black to install them as > mentioned, > opkg install .ipk > > I got following erro

  1   2   >