I'm subclassing QProgressBar in a custom widget, and I overwrote the paintEvent method with the following code :
void myProg::paintEvent(QPaintEvent *pe)
{
QProgressBar::paintEvent(pe);
QRect region = pe->rect();
QPainter *painter = new QPainter(this);
QPen *pen = new QPen;
painter->begin(this);
painter->setBrus...
(I am new to GUI programming; experienced programmer otherwise)
(Using wxPython; but generic advice welcome)
I am looking for advice / direction on implementing a widget that can do area selection on a plot. Any pointers from experienced users would be much appreciated.
What needs to be done is:
Implement a two dimensional plot.
Imp...
I decided to start my blog recently. Anyway I put it on blogger.com and was looking at the widgets you can add. There are some 100k+ of them.
By the way, I tried to add the StackOverflow search widget and it complained it was broken.
Anyway, I'm after some suggestions on good programming related widgets worth adding.
...
All Search engines I know of search text. I want to search for example for all the sites that use jQuery. Any creative idea on how to do that?
...
How suitable ASP.Net MVC for developing anything like
http://www.google.com/ig
I haven't seen or failed to find any examples yet. Does MVC approach imply that user interface is not supposed to look like that ?
...
We want to create a widget platform for a particular website.
I couldn't find any articles on doing this, but what I need right now is for someone to point me in the right direction.
What framework should we use? I am proficient with RoR, and okay with Java/.Net, but I don't know if doing this in rails is easy because I can't see how t...
Hi all,
In widget's code I need to get access to HTML id of the rendered element. I know I can run regexp on the rendered string and get the ID, but I believe there must be an easy way.
Let's assume this is the widget I have:
class TextInputWithHint(TextInput):
...
def render(self, name, value, attrs):
res = super(Tex...
I give customers javscript code that adds a widget to their website.
Currently I ask them to paste this right above the </body> tag:
<script type="text/javascript">
var myHost = (("https:" == document.location.protocol) ? "https://" : "http://");
document.write(unescape("%3Cscript src='" + myHost + "www.mywebsite.com/mycode.js.php?u="+e...
Quick question about the Dijit.Form.DateTextBox
http://docs.dojocampus.org/dijit/form/DateTextBox
This page contains the following: "also validates against developer-provided constraints like min, max, valid days of the week, etc."
I can't seem to find documentation allowing me to provide a constraint on the days of the week. For ins...
How to calculate approximately the connection speed of a website using JavaScript?
I want to create a javascript widget like, which will calculate the speed opening the current opened page.
I am asking if this can be done using just javascript and what will be the idea.
Update
Note that the page size is always Unknown.
...
Referring to this question , how can i get the current page size in kb, this size i will use to know the connection speed for this page.
...
I have a JS script (widget) which is added to other websites. Technically its similar to Google analytics. My question is: what are your advices for ensuring robustness, keeping the code from interfering with other code on the site, avoiding errors for users etc. In general, what should I know to write a professional grade widget.
Notes...
I'm building a Dashboard Widget and I'm attempting to store preferences that persist across "sessions" (i.e., a user closing the widget and opening it again).
I've tried:
function setEmail(event)
{
var preferenceKey = "email";
var preferenceValue = $F("email");
widget.setPreferenceForKey(preferenceValue, preferenceKey);
}
function get...
Context
In LAYOUT, i got 2 input fields and submit button.
If user authentication is successfully, i want to redirect him somewhere,
if not - i want page to be updated with some validation text.
Problems
Cause widget is supposed to be located in layout, i dont know which is current page, therefore - cant get back on failed authenticat...
I want to have the addthis widget available for my users, but I want to lazy load it so that my page loads as quickly as possible. However, after trying it via a script tag and then via my lazy loading method, it appears to only work via the script tag. In the obfuscated code, I see something that looks like it's dependent on the DOMCont...
I am developing a "game platform" on ruby on rails. It is not a 2D or 3D intensive game but more like quiz games, imagine typical Facebook quiz or even "how big is your brain" kind of games.
The platform will be used by students here to develop easily their own ideas. The point is to create a series of widgets they can just place in the...
I want to develop an application with simple Quiz-like games (think of a question , answer, a timer, high-scores/ranking, not much more)
For that I want to use Rails and some javascript library that let me have some modern effects on the GUI (being a GUI the least you can ask is for an atractive interface)
I first considered ExtJS but ...
So, my boss wants me to look into creating a widget for our product. Something to keep our users abreast of their information easily. So, I'm looking through the interwebs and it seems I have quite a few options. Google Widgets, Konfabulator/Yahoo Widgets, Spring Widgets, etc. etc.
I'm wondering if there's any resources to make a decisi...
Can I use Silverlight to build cross-platform desktop widgets?
...
Hi,
I would like to create a button with circular or rectangular background, text and an image below or above the text.
Here is the CustomButton Layout where I added the objects (background and text - ImageView is missing):
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="wrap_content"
...