Programming :: QSplashScreen And QPainter - Draw Shapes And Gradients
Apr 7, 2011
Following on from my issues with QSplashScreen, I am wanting to investigate the QPainter class(es) some more.
Code:
How would I best achieve this:
- Draw some shapes and gradients with QPainter/QPen etc
- Create a splash screen out of it
- Display SplashScreen.
I cannot find anything that doesn't involve
Code:
I am comfortable making splash screens out of images, but now I want to try drawing one myself.
One requirement of a project I am currently working on (for Maemo) is that the Qt application displays a QSplashScreen when it loads.
My issue is that the application is fairly small and I have written it to load components etc as they are required rather than at start-up. This has lead to quick start up times (which, in a perfect world is what we all strive for!)
How would I intentionally delay the start-up time so that the splash shows for longer?
I have investigated
Quote:
QTimer:: oneShot() (Space added to prevent smiley)
however, its prototype dictates that it be connected to a slot. I am running this QSplashScreen from inside main so this is neither needed nor feasible.
What is the best way to essentially do this:
Code: Display Splash Timer for 3 seconds Close Splash Display mainWindow
I do not want to use native system calls such as sleep() and would instead rather a Qt based solution.
Here is my program. It asks the user for input and then prints a shape of a certain length. The errors I get when I compile are:
shape.c: In function "main": shape.c:22: error: expected identifier or "(" before "int" shape.c:58: error: expected expression before "return" shape.c:59: error: expected expression before "}" token shape.c:59: error: expected expression before "}" token #include<stdio.h> .....
I am looking for a way to draw on the screen in X Windows using c++, the GNU g++ compiler. I don't want to mess with requirements so just how to draw in x windows. Can it be done with g++ or is there something else I need to use.
I am very new to Linux and I hope someone on here can provide some help.
Goal: I am am developing an embedded application on Linux 2.6 that will hopefully run without a GUI. There will be no user input just simply displaying information to the user in a graphical form. I will be drawing the screen in C and outputting this to the display.
Problem: I don't know how to draw to the display? From reading and talking with others, I think I can write to the frame buffer and that will output to the display, but I am not sure this is rite. If it is correct, can someone explain how this is done? Is there another way to draw to the screen without using the windows API?
I have this function that is supposed to print draw the first image from a function then hide the rest of the images using 'display: none' however for some reason the boolean test does not seem to work on one of my servers however it works on another, is there some php.ini setting I am missing or can you see any issues with the following code:
After updating today, my buttons and scrollbars now look like this:The gradients on them are gone. Similarly, the transparant parts in the right-mouse menu dividers are white too, as is the active part of my gnome-do panel.What can I do to fix this? Ubuntu 10.04, nvidia drivers, using the ambiance theme and compiz (already tried turning off compiz but that didn't help)
Is it possible to get rid of the windowshapes in the desktop switcher application? I just want to see the square of the desktop an it's title, not the ugly shapes of all open windows on it.Or any alternatives?
For example, if I fill in a circle with black (using the ellipse tool), then fill the surrounding with another color (a dark color) there will be a nearly white outline of the circle. I don't want there to be an outline. The whole canvas should be ALL black.
I have a Macbook Pro which i want to install Opensuse 11.2 64bit(Upgrades to 11.3) The problem is that once i install opensuse and then boot via rEFIt, it loads up till the desktop is supposed to appear. All i get at this stage is darkness with a few coloured shapes in the background (Video driver not loaded).I can however reboot and go in via the failsafe option. Once in here i can use the GUI. I am a total noob with linux, can some one give me the instructions on how to install this driver. Its driving me insane. When i run uname -r, the results are 2.6.33-6-default I have added the following http repository (download.nvidia.com/opensuse/11.2/)
I have Wacom Bamboo Fun Pen & Touch pen tablet and I'd like to use it to draw on the top of the screen.. For example if I have Evolution opened on the screen, I want use my pen tabled to draw with freehand on the top of Evolution. Did you understand? Is there any small application which allows to do that?
Does anyone know an application that can draw UML graphs automatically from Java code for linux platform. I've tried startuml, but in doesn't work very well.
i am using Kubuntu 9.04 with KDE4 installed. I created some bash scripts and used Kdialog to display the graphical items and other things, only the progressbar in Kdialog, I am unable to use. I read the tutorial in KDE's website but still it shows me an error saying "ERROR: Couldn't attach to DCOP server!".
I need a program (to draw or paint patents like the example below Example: http://www.google.com./patents?id=-K...page&q&f=false
I remember that the Word version of Windows XP had tools to create drawings but I can not find (or help) equal tools in Ubuntu Ooo. Also, Windows has the "Paint" program that I used (pasting Word drawings) to erase, create mirror-effects, etc
Can somebody recommend me a good program (not CAD way) for simple drawings for patents?
if this isnt correct place to ask my question, forum seems large and im not familiar with it yet. I would like to draw to windows with conky. I allready have an idea with launching conky ~/. config1 & conky ~/.config2 and this should work but is it possible to have 2 conky windows without launching second instance of conky ?
I have a card project in OpenOffice Draw. In this project is a bitmap with the year 2009 embedded in it. I want to change that to read 20 and I can place the current year as a text layer on top of it.
I have a grid laid out on this bitmap, and I have overlaid text information such as date, time and frequency.
I got hold of the bitmap and cut it, leaving my data there but the form behind it missing. I pasted that into gimp and did the editing, saved it as a .bmp file and loaded that into Draw. I copied the bitmap from this bmp file and pasted it back into my card project.
The bitmap is now sitting on top of my data and I want to send it to the rear so my data sits on top of it.
I can not find a single reference to how to send layers to the front or to the back in OpenOffice Draw.
Launchpad.net is a way to get help online, but I am completely lost on that site, so I am asking here on the Ubuntu forum.
I would like to know if there is a program such as edraw:
[URL]
that I can use to make directional diagrams in linux. I know about inkscape but I would like a program that has a premade library of shapes. I also know about Dia Diagram but it doesnt have a sheet of shapes that suits me.
I am using Openbox, i would like Nautilus to handle the desktop, which it does nicely, but i would like it so it draws the desktop at startup. So far the only way i have managed to do this is by adding "nautilus &" to the "autostart.sh", however, this, of course, launches an instance of the nautilus file browser.Can anyone help me to get Nautilus to draw the desktop automatically at startup without having to first launch the file manager?
Okay, so I may sound like an idiot for asking this question (whether the answer is obvious or it is not possible at all) but, how do I rotate text so that it is upside-down in Open Office Draw? I am making a Birthday Card....
I tried upgrading to Hugin 2011. (latest stable) and it turned out that the panorama preview window did not properly draw the preview. Image flickers only quickly or is not drawn at all. For a not so great video of this see [URL]...
I tried switching to open source ATI drivers but for some reason I was unsuccessful in purging the ATI driver. I tried different computer with Inter hardware and it worked OK. If anyone happens to be using latest Hugin with ATI hardware can you comment on if the preview window works OK. I would like to get some more feedback to maintainers and to know if just proprietary ATI driver or Radeon HD5650 is affected. I am running lucid, but info from other releases is relevant.
I find xcompmgr more than adequate for making a desktop look pretty modern, and I don't like the more extravagentCompiz gimmicks - but there is one thing that irritates when using xcompmgr which someone here might have worked round.
Rounded window borders don't draw and redraw properly when using the Terminal (gnome-terminal and the LXDE and Xfce ones) or system monitor and moving them from their default place. You get this little white botch at the corners. I'm not massively technical and I'm ambivalent about how much more I want to learn as I have plenty of creative outlets already, but I would like to solve this. Somehow xcompmgr is treating these programs as a different class? It's capable of drawing the window borders properly as it is just these two programs that get botched. Possibly this doesn't get noticed as maybe people usually use xcompmgr with openbox and LXDE and their square window borders. I did do a search but there was nothing matching what I saw.