My motivation for the custom title bar is not the fonts, but the general look (style).I think your custom titlebar helps set the font you like. But some other problems will appear:
But my title bar allows any font or pixamap as a title.
That is why I don't use normal push button, but a custom widget I made which is a styled button, which allows the user to "skin" it as he/she likes, in addition the button has the ability to have any amount of states and a pixmap to each state (i.e mouseover, pressed etc).1. The configuration (position, color etc) of control buttons (minimize, close, maximise) will be different from button configuration of managed (by window manager) widgets. Also the color of titlebar will be different. It will not be good for some sort of applications.
My styled button offers all the nessery "look" customization you make it fit to the users wishes.
This point of yours is correct, but was dealt with.
This is true, I will have to check this, thanks for the tip3. You should test whether your widget will appear in the window list? I'm not sure. I think, no!![]()
As I said, the title bar plugin allows customizing its look and font as the user wants them.4. May be, some users dislike your font.
The programmer using this plugin can then query the widnow manger and use the window manager colors and fonts, but for that he wont need this plugin.
Hehe... do you think I would do such a think just for fun?I think, that you shouldn't write your custom titlebar without absolute necessity.
Hmm... I might...but this is not the case..
Besides, as I said in my previous post, the REALY right way to do this, would be to derive QStyle (I used that aproach on the styled buttons), but it is much harder than the above implementation.
Thanks for the input!
Bookmarks