[Interest] Writing custom Qt Widgets is overly complicated

Matthew Woehlke mwoehlke.floss at gmail.com
Wed Apr 29 19:37:24 CEST 2020


On 28/04/2020 06.04, Jonathan Purol wrote:
> Hello everyone,
> 
> I'm at a bit of a rough point right now. Up until this point Qt has
> never disappointed me - everything I wanted to do was possible to do in
> a seamless and understandable way.
> 
> Yesterday however I put my hands on trying to implement my first custom
> widget.
> The item in question is what I would describe as a "Tag Textfield".
> You can find an example of this when asking a question on stack-overflow
> at the very bottom.
> [...]

I think you may be taking a poor approach. My knee-jerk reaction is that 
you should be using a custom object in a rich text edit. While this 
appears feasible for rendering, it seems¹ that mouse handling is not 
well thought-out.

(¹ https://stackoverflow.com/questions/22538270)

-- 
Matthew


More information about the Interest mailing list