I have been playing with the demos of Draw2D Graphiti, just curious to know if its possible to scale (change width/height in editor) SVGFigure for example the OpAmp, just like how basic shapes can be scaled ?
Thanks.
The new version of graphiti (0.9.87) has this feature built-in.
Related
Let's take the horizontal sprite of images of my previous question:
So, I have 4 images in 1. Let's say that I want to use only the green circle for styling a QComboBox arrow. I know I can style it with a single image with
QComboBox::down-arrow {
image: url(:/downarrow.png);
}
but is it possible (in the stylesheet or by another means) to get only a piece of the image used?
Unfortunately that is not possibile with Qt Style Sheets, since they do not support absolute values for background-position, as stated in the documentation
The answer to the linked question is still the best way to implement this with Qt.
I am trying to make a Gtkmm::Entry bigger both vertically and horizontally so that in the end it would match the shape of a square. I wasn't able to find any documentation on this and would really appreciate if someone could help.
I have seen that it is possible to use the set size request method to give it a square shape however it is too small and the text written in it is illegible. Does anyone know how to achieve this?
You could use a GtkTextView which supports resizing. TextEntries are typically not re-sizable.
I found that video on Youtube. It shows how to flip something called QML Flipable. I'm completely unfamiliar with QML so I have the following questions:
1) Is it possible to flip an ordinary QLabel like this? If yes how do I do that?
2) If it's not possible then how do I add that Flipable entity to my QMainWindow?
Thanks, everyone
You could use the QGraphicsPixmap with your image , set the rotation center with setTransformOriginPoint and animate the transformation matrix with QProertyAnimation
There's no convenient way to do this. Desktop OS's don't provide this functionality.
One option is to use QGraphicsView. You can add widgets to a QGraphicsScene using QGraphicsScene::addWidget(), for example, and then transform the view the way you want.
Quick google search points me to a blog article where author of the video (Kunal Parmar) describing how this particular effect was done.
i need to create GTK GUI with image and transparent label (darker) that is placed over the image. The first problem is overlapping. I tried Gtk::Table and Gtk::Fixed container but it behaves strangely. The second problem is transparency. I would like to use CSS styles or transparent background image. Is there anybody who can help me posting some sources or examples? Thanks
You could subclass GtkWidget, or GtkDrawingArea since I think it will be faster than the altenatives. But you could use GtkOverlay, plus GtkImage and GtkLabel to acomplish what you're looking for.
gtk3-demo app that comes with Gtk+-3.0 give some examples of how to use GtkOverlay.
Maybe you could give a look to clutter-gtk ? You can do nice things with it.
I am currently planning a little sightseeing-app (game) for my iPhone. It should be something like geocaching with Augmented-Reality features. The user should search and then pick up virtual elements. These elements should be "stored".
Would you recommend using cocos2D for this? I am a programmer with no iPhone programming experience ;-)
Thanks
I think this depends on some of the deeper technical requirements of your game. Cocos2D is great, I have been using it for several months now and have little to complain about with it.
You mention "augmented-reality" features which to me says using the camera while overlaying annotations on top of the camera display. Is that right? I could see Cocos2D being used as a transparent overlay over the camera display where you markup various parts of the display. It would be a bit of a challenge no doubt to make sure your annotations match up with what is shown in the camera but I think it could be done.
Best to do a quick tech demo and see if that meets your needs.