Re: [Interest] Styling a QPushButton via stylesheet destroys sizing

2015-09-09 Thread Hamish Moffatt
On 08/09/15 01:04, Thiago Macieira wrote: > On Monday 07 September 2015 17:38:07 Hamish Moffatt wrote: >> I'm trying to style buttons via the stylesheet. Just colours, border, >> font and so forth. >> >> However as soon as I apply any property as simple as a border, the >> button no longer sizes it

[Interest] How to improve Qt3D rendering for big mesh?

2015-09-09 Thread Bin Chen
Hi, guys, I am testing Qt3D to render a big triangle mesh, >1000,000 triangles. I put all triangles in one QAbstractMesh subclass and added to a QEntity, but it is very slow. Then I separate these triangles into a quadtree and map them into a QEntity hierarchy. It became even slower and doesn’

[Interest] How to use QStyle.sizeFromContents with QStyleOptionFrame?

2015-09-09 Thread Tony Rietwyk
Hi Everybody, Using Qt 5.5.0 from installed binaries, in my QFrame based custom widget sizeHint override I want to have: QSize contentSize = ; QStyleOptionFrame optFrame; initStyleOption(&optFrame); QSize styleSize = style()->sizeFromContents( QStyle::CT_Fra

Re: [Interest] Trouble setting stylesheet for widget

2015-09-09 Thread Shinnok
Mike, Although not specifically named in the documentation, my approach has worked for years and is used by many projects. However, using that method doesn't yield results either... Worth mentioning is that the same stylesheet you see in my link has been like that since the start of the projec

Re: [Interest] Trouble setting stylesheet for widget

2015-09-09 Thread Mike Chinander
For styling named widgets, I thought you needed to use QWidgetType#Objectname::element { } In your case: QTabWidget#mainTabWidget::tab { } On Wed, Sep 9, 2015 at 11:14 AM, Shinnok wrote: > Hi list, > > I'm currently having a lot of trouble setting object specific stylesheet. > I'm on Qt 5.4.2/

[Interest] Trouble setting stylesheet for widget

2015-09-09 Thread Shinnok
Hi list, I'm currently having a lot of trouble setting object specific stylesheet. I'm on Qt 5.4.2/OSX 10.10/Creator 3.5.0. The stylesheet is set from Creator -> Designer on the object property: #mainTabWidget::tab { ... } #mainTabWidget::tab:selected { } However this: #mainTabWidget::tab {

Re: [Interest] QCanBusDevice inheritance

2015-09-09 Thread Thiago Macieira
On Wednesday 09 September 2015 13:18:33 Blasche Alexander wrote: > The QIODevice architecture was not a good fit for CAN bus. The API must > enable the user to interpret the various frames received on the bus. In > addition to the payload, each frame may come from different sources, has > different

Re: [Interest] QCanBusDevice inheritance

2015-09-09 Thread Benjamin TERRIER
2015-09-09 15:18 GMT+02:00 Blasche Alexander : > Hi, > > >>Thanks for your response but I still don't get why QIODevice has been >>discarded for CAN while it is used for QUdpSocket. > >>First, frames can always be divided into bytes, there length is an >>integer multiple of byte. If you are talking

Re: [Interest] QCanBusDevice inheritance

2015-09-09 Thread Blasche Alexander
Hi, >Thanks for your response but I still don't get why QIODevice has been >discarded for CAN while it is used for QUdpSocket. >First, frames can always be divided into bytes, there length is an >integer multiple of byte. If you are talking about the fact that >fields within a frame are not 8 bi

Re: [Interest] QCanBusDevice inheritance

2015-09-09 Thread Blasche Alexander
Hi, >Thanks for your response but I still don't get why QIODevice has been >discarded for CAN while it is used for QUdpSocket. >First, frames can always be divided into bytes, there length is an >integer multiple of byte. If you are talking about the fact that >fields within a frame are not 8 bi

Re: [Interest] QCanBusDevice inheritance

2015-09-09 Thread Denis Shienkov
Benjamin, I forwarded your message to the mailing list back (you likely forgot to do it?). Now it could available to comments and for other developers (if you don't object). BR, Denis 2015-09-09 15:46 GMT+03:00 Denis Shienkov : > Benjamin, > > I forwarded your message to the mailing list back (

Re: [Interest] Errors trying to import an external QML module to my project

2015-09-09 Thread Daniel França
Anyone? Em dom, 6 de set de 2015 às 23:42, Daniel França escreveu: > It's running fine for desktop... but when I try to deploy to IOS I get the > same errors: *"module Material is not installed"*. > The path was added to the env var QML2_IMPORT_PATH > > My first thought was that to deploy an ext

Re: [Interest] How to combine glLineWidth call with Qt3D in QML?

2015-09-09 Thread Bin Chen
Thanks Guys, I will try that. Cheers, 陳斌 Bin Chen > On 9 Sep 2015, at 6:44 pm, Sean Harmer wrote: > >> On Wednesday 09 Sep 2015 10:17:13 Björn Breitmeyer wrote: >> Hi, >> >> you shouldn't rely on glLineWidth at all. It works only for a very limited >> amount of values, if at all. Its a de

Re: [Interest] How to combine glLineWidth call with Qt3D in QML?

2015-09-09 Thread Sean Harmer
On Wednesday 09 Sep 2015 10:17:13 Björn Breitmeyer wrote: > Hi, > > you shouldn't rely on glLineWidth at all. It works only for a very limited > amount of values, if at all. Its a deprecated feature, if you want thick > lines you will need to create a triangle strip. Good point. I was thinking ab

Re: [Interest] How to combine glLineWidth call with Qt3D in QML?

2015-09-09 Thread Björn Breitmeyer
Hi, you shouldn't rely on glLineWidth at all. It works only for a very limited amount of values, if at all. Its a deprecated feature, if you want thick lines you will need to create a triangle strip. Best regards Björn Breitmeyer -- Björn Breitmeyer | bjoern.breitme...@kdab.com | Senior Softw

Re: [Interest] How to combine glLineWidth call with Qt3D in QML?

2015-09-09 Thread Sean Harmer
On Wednesday 09 Sep 2015 03:39:10 Bin Chen wrote: > Hi, Guys, > > I am evaluating Qt3D with a new project. I wrote a customised Qt3D object > for loading and displaying triangle mesh lines in 3d scene and wondering > where I can put in glLineWidth to change the line width. > What I am doing is i