Fullscreen widget

QWidget::showFullScreen() is what you need – works great under Linux+Windows in my projects for years – but be careful, there shouldn’t be two calls of this function (eg. first call of QMainWindo->showFullScreen() and then MyWidget->showFullScreen()). ciao, Chris

Android Widget using Cordova

Yes, widgets are native Android constructions. But you CAN create your widget for your app with the help of cordova plugin called “cordova-plugin-ace”. Made by Microsoft and opened to everyone. Documentation: Official site – http://microsoft.github.io/ace/ Doc for creating widget – http://microsoft.github.io/ace/docs/native-ui/#four I hope it’ll be helpfully for you, me and others cordova devs.

How to use a custom typeface in a widget?

What is needed is to render the font onto a canvas, and then pass it on to a bitmap and assign that to an ImageView. Like so: public Bitmap buildUpdate(String time) { Bitmap myBitmap = Bitmap.createBitmap(160, 84, Bitmap.Config.ARGB_4444); Canvas myCanvas = new Canvas(myBitmap); Paint paint = new Paint(); Typeface clock = Typeface.createFromAsset(this.getAssets(),”Clockopia.ttf”); paint.setAntiAlias(true); paint.setSubpixelText(true); paint.setTypeface(clock); …

Read more

Your choice of cross-browser javascript GUI [closed]

When considering a JavaScript library/framework for usage you should first define on your goals. I used to separate all JavaScript libraries/frameworks into three categories by their purpose and architecture: I want to pimp up my page with some really “cool” features. Go for JavaScript library. jQuery ZenoUI old: Prototype, Mootools I want to build an …

Read more

Hiding Qt widget and keeping widget space

In Qt 5.2 it is possible to do the following: QSizePolicy sp_retain = widget->sizePolicy(); sp_retain.setRetainSizeWhenHidden(true); widget->setSizePolicy(sp_retain); I earlier posted the same solution here: How to make a Qt widget invisible without changing the position of the other Qt widgets? (which seems to be a duplicate of this question).