Programming :: Use QPainter Over An Xlib Window?

Jan 15, 2011

Suppose i have an XID of a window. How can i wrap QPainter to draw on this window? I need something like cairo_xlib_surface_create(), but Qt-based.

View 3 Replies


ADVERTISEMENT

Programming :: Can't Get Xlib Window To Display / What To Do?

Mar 12, 2009

I am having trouble writing an Xlib application that displays a window. The most frustrating thing is that I've written applications like this before, and never had any problems. For some reason I cannot get this program to work properly. I'm running KDE and when I launch the program, a "button" for the application will appear on the application panel, however, no window will display. It is possible to right click on the panel button and select the Close item which will successfully close the window.

The following is source code that when built will exhibit the behaviour described above code...

View 10 Replies View Related

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.

View 2 Replies View Related

Ubuntu :: Can't Find Xlib.h - Fatal Error: Xlib.h: No Such File Or Directory

Jun 12, 2011

I'm trying to build a program called Obpager, but I'm getting an error saying I don't have xlib.h. From what I understand, that file is included in libx11-dev, which I have installed. Any idea?

Code:

dagoss@MAGIC-PORT:~/Downloads/obpager-1.8$ make
Compiling src/main.cc
In file included from src/main.cc:33:0:

[code]....

View 2 Replies View Related

Programming :: Implementing Scrollbar Using Xlib ?

Oct 17, 2010

I am working on xlib project to develop text editor without using help from any of toolkit/widgets.I get stuck in scrollbar.I have no idea how they work and developed.It become more difficult as I am using low-level C library - xlib.

View 1 Replies View Related

Programming :: Mouse Click C++ XLIB

Mar 3, 2009

The code below seems to do a right mouse click (firefox 2.0.0.7) IF I pass it 3, but I cant get it to do a left mouse click?

View 4 Replies View Related

Programming :: Difference Between Xlib And OpenGL?

Dec 6, 2008

I am starting to learn Linux graphical programming. Most of codes in my hands were written based on xlib, which is a kind of old graphic lib. I see some developers more interested in openGL. Then what's the difference between xlib and openGL? And which one is more popular used in which industry area?

View 2 Replies View Related

Programming :: Get String Width In Pixels In Xlib?

Aug 3, 2009

I'm trying to get the width of a string in pixels this way:

Display *disp;
int len;
disp = XOpenDisplay(0);
font = XLoadQueryFont(disp, desc );

[code]....

I'm getting negative numbers as the the pixel length, eg -7275

View 3 Replies View Related

Programming :: Invoke A ButtonPress Event Using XLib?

Nov 17, 2010

I'm working on an application which generates random shapes when clicking on a window. I designed the window using Motif. I want to invoke the ButtonPress Event .

View 1 Replies View Related

Programming :: Read The State By Using _NET_WM_STATE In Xlib?

Oct 8, 2010

i want to get the state of a particular window by using the _NET_WM_STATE atom. i dont know how to use it with XGetProperty.

View 6 Replies View Related

Programming :: Xlib - C Programming - Get Value From Pixel

Dec 11, 2009

I'm making a game with the xlib library. What I want to do is to know if the character is standing on a trap or something else.

So far I've solved that using the coordinates but when I draw circles or stuff not shaped like a rectangle it gets to hard to make the game exact.

So what I'm asking for is if there is some kind of function in the xlib that tells you which color a pixel has. Because then it'd be much easier.

I've searched but I haven't been able to find anything good. I found XGetPixel() but that appears to work only with images, maybe I can make my window to be an "image"?

View 7 Replies View Related

Programming :: Use Colors In Xlib Programming ?

Apr 27, 2010

I'm trying to understand how to use colors in Xlib programming. What I think I understand so far is that modern displays use 24 or 32-bit TrueColor. And TrueColor uses three colormaps, one for each primary color, and a single pixel value is composed of three indices.

Now the part i'm confused about is how to get my programs to use a 32-bit TrueColor visual. I thought I could inheret the visual from the root window to get color but it seems no matter what pixel value I use it's either black or white.

I guess my question is, how can I setup my programs so that I can specify a pixel value that is a combination of RGB values to get the color I want?

I come from windows where I simply used RGB(r,g,b) macro to specify colors and never had to worry about depth and colormaps and visuals, so I'm a bit overwhelmed by all of these concepts.

View 1 Replies View Related

Programming :: Xlib Documentation With GUI Programming?

Dec 14, 2008

I want to do some experimentation with GUI programming. What mostly interests me is how the toolkits actually work (what are the drawing mechanisms, how it communicates with X, etc.) and how the window managers work. I know it's quite a lot but I don't plan on developing the next best DE/Toolkit/Window Manager, just to play with API, mostly to learn. It seems that there is a shortage of documentation on this topics, I'm trying to find anything for 2 days now with no result.

View 7 Replies View Related

Programming :: Xlib C Program Doesnt Work Every Time

Jul 24, 2010

I tried to draw two lines with xlib.h in C. If I start this compiled program it show me in most cases a window with two lines as it should be.

But sometimes the two lines are not drawn.If I insert XFlush() before the second XSync() it worked better but not every time.Why?How can I solve the problem?How works the X-Server buffer in detail?

Code:

View 1 Replies View Related

Programming :: Small "?" Next To Font In Xlib Font Used As A Graphic?

Mar 16, 2011

I am seeing a weird error in a font display. I see a small question mark next to a font that I am using as a simple graphic. Does this mean that some function call in xlib is being passed an invalid paramter?

View 1 Replies View Related

Software :: Compile Xlib And All Its Dependencies ?

May 20, 2009

I have a linux system set up. Very minimal. I have a compiler and I need to compile xlib and all its dependencies so that I can use it. I don't have any type of package management system because it is an embedded application. So I need to know what all I need to build before xlib. Assume that I only have the core utils and gcc. Please don't tell me to download binaries, I cant do that, it wont work. Unless you have armeb binaries for me.

View 1 Replies View Related

General :: Error: X11/Xlib.h: No Such File Or Directory

Aug 1, 2011

I am trying to compile the code. I am getting this following error. Am I missing any package?

x86_screen.h:12:22: error: X11/Xlib.h: No such file or directory
In file included from osal_event.c:12:
x86_screen.h:25: error: expected specifier-qualifier-list before �Display�
make[1]: *** [osal_event.o] Error 1

View 5 Replies View Related

Software :: Error: X11/Xlib.h: No Such File Or Directory

Jun 21, 2011

I tried to install the pgplot, and I faced this error: X11/Xlib.h: No such file or directory

to solve this, I did this:
sudo apt-get install libx11-dev
but I face the other error which is:
f77 -c -u /usr/local/src/pgplot/drivers/gidriv.f
gidriv:
Error on line 247: syntax error

[Code]...

View 1 Replies View Related

Debian Multimedia :: Xlib - Extension GLX Missing On Display 0.0

Oct 6, 2010

I am trying to run the SDK for Meego with Qt. When I try to launch my simulator I get the error message: Xlib: extension "GLX" missing on display ":0.0". The answer I got on Meego's forum is that I am missing glx extensions. I have tried to find a way to get the glx extensions but I do not seem to get it. My searches on the web all point to Nvidia, but I have got ATI. I run Lenny 5.0.6 amd64.

View 2 Replies View Related

OpenSUSE :: Xlib - Extension RandR Missing On Display

Feb 5, 2010

I've verified that xorg-x11-libs is installed. This package provides libXrandr.so.2. However, when I run a program, in this case the python script for blueproximity (start_proximity.sh), I get the error in the title.

Code:
grep -ni randr /var/log/Xorg.0.log
237:(==) RandR enabled
247:(==) RandR enabled
257:(==) RandR enabled
274:(II) Initializing built-in extension RANDR

View 5 Replies View Related

General :: While Compiling Wine Got Error Xlib/Xfree86

Sep 29, 2010

compiling wine i got error Xlib/Xfree86 how can the package of it for RHEL 5.3

View 1 Replies View Related

Software :: Xlib - Run A Graphical Application At A Remote Host ?

Dec 21, 2008

When trying to run a graphical application at a remote host i get the error

Xlib: 'connection to ":0.0" refused by server'

Xlib: No protocol specified

How to address this?

View 1 Replies View Related

CentOS 5 :: Xlib Resource Id Allocation Space Exhausted?

Aug 25, 2009

Now I'm using Centos 5.3. when I let ADP (a EDA Tools) to idle more than 1 hours. The tools will display incorrectly. The per letter will be displayed as pane. So I must close it and re-open it.When the status is displayed, the system always said:xlib resource id allocation space exhausted!Forestall I use Centos 4.7, the system always works well. But I'm using Centos 5.3.How to maintenance it

View 2 Replies View Related

CentOS 5 :: Can't Find LibXpm Xlib.h And Intrinsic.h When Install NCL?

Mar 17, 2010

When I install NCL on my system. There are many error about X11 appeared. Such like:

xdevice.c(40): catastrophic error: could not open source file "X11/Xlib.h"
rasdraw.c(30): catastrophic error: could not open source file "X11/Intrinsic.h"
w_idt.c(26): catastrophic error: could not open source file "X11/Intrinsic.h"

[code]....

View 1 Replies View Related

Programming :: Code For Generating A Pop-Up Window In C

Aug 4, 2010

Unfortunatelly since i have no background at all about GUI programming, i dont know even the keyword for that i want to generate a pop up window from my program (written in C) which show a message and an OK button. in my opinion, maybe i should use directly the Xlib library and not the GTK or QT library for example so the program can work almost on every linux system. A code snippet/hint for the pop-up window then?

View 2 Replies View Related

Programming :: GUI - Custom Polygon Window ?

Jun 12, 2009

I would like to make a GUI that is not a standard rectangle, but instead is whatever polgon/shape I would like it to be.

A good example of an app that does this would be winamp.

It seems that all GUI programming is related to using tools similar to Visual C++, with buttoms and widgets.

How does one go about making a custom gui like this?

I am versed in C++ but I would not mind learning a new language.

View 2 Replies View Related

Programming :: Do A Popup Window On A Webpage?

Mar 2, 2010

I want to do a "gallery" on a webpage, ie. a series of thumbnails, whhich when clicked, will popup a new window of a bigger image of that same things (with more details about it, etc.). How do I do that? (I think it's soemthing to with "window.popup" in Javascript, but how do I use that? Can I do it with <a href="something" target=new>?)

View 12 Replies View Related

Programming :: JavaScript - Window.onbeforeunload

Nov 13, 2010

I am using window.onbeforeunload to keep people from accidentally leaving. I was hoping to intercept this event, run my own dialog box and load another page that closes the window, or of course, cancel.

I'm needing this because my site is a single page and I can't figure out how long people are visiting for, if I could load an exit page, then I can figure this out.

View 6 Replies View Related

Programming :: Multiple Window GUI App In Qt Creator

Aug 3, 2010

For example I want my Qt Creator app to have multiple custom dialogs. How do I manage them? Also, what if I want to replace all the widgets in a window with new ones, how do I manage that in Qt Designer?

View 4 Replies View Related

Programming :: WM-hints And Moving Window?

Sep 7, 2010

I have a toplevel window that I want to place depending on another toplevel window. I use gtk_window_move(widget, x, y); At startup this function is called several times and y is changed ones from 412 to 413 and x is always 0(checked with gdb in netbeans). The window gets placed at x=10 and y=400 or so. If I do not use variables but pure ints for x and y it gets placed correctly even if its the same values. I suspect that my window manager notice this change of y and place the widget for me. Is this correct and how do I tell the WM not to do so?

This change of y is due to window size is just a local size and not the correct one as in X. Can i force uppdates from X to the local cache?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved