So i am working on an editor for a game engine. Everything works just fine with a single problem. The UI is not customizable. How can this be reproduced?
SirDarius told me that QDockWidget might be what I needed and is true, thats exactly what I needed.
Related
Trying to learn the fine art of Plasma5 (specifically 5.12) plasmoid development. I'm aspiring to be a minor KDE documentation contributor.
It's a simple plasmoid that pops open when clicked and displays a message. It runs fine inside of plasmoidviewer and "compiles" correctly with kpackagetool5. It shows up in the panel of available widgets, but I can't drag it to my desktop. I've put the (extremely simple) source up on Github; hopefully someone's willing to take a look.
https://github.com/bundito/hellomoid
Thanks a lot. I'm trying to document as I learn. But I've clearly got a lot to learn.
After studying a few existing (and working plasmoids), I found a few differences in the metadata.desktop file. These differ from what's shown in the existing tutorial.
The most important change appears to be the line X-KDE-Library entry. I removed it, and everything works. I'm not sure what it's for - I presume loading some external library - but without it, we're happy hackers again.
So there you go. I hope my discovery will help someone else.
I have a Qwidget inside of which, I have multiple children in the form of QmlApplicationViewer objects, each pointing to a different qml file.
Problem is, when I use mouse, all the qml files take events, but when I try to use the touch screen, only some of them does.
Can someone give a direction as to where the problem might be ? Will appreciate and sort of possible causes which might cause this issue.
Platform : Ubuntu 12.04 - Qt 4.8 - 32 bit
There really is not enough information here to even begin to answer this question. The most obvious answer that comes to mind is some of your qml files are not correctly defining the TouchArea within the qml. If you want more help you need to post code.
I tried using the EG-Touch touch drivers for my platform, which are supposed to have some issues on 12.04(as per some forums). I reverted back to Ubuntu 11.04 and used the e-Galax touch drivers instead, and things are working fine now.
P.S. : If someone finds a working driver for 12.04 or any other work around, please update. I will accept a better answer. Closing this for now.
I'm having a minor problem with an autocomplete search box. My application seems to work fine in IE, but when I try it in Firefox or Chrome, the search box doesn't function.
Unfortunately I'm pretty much of a newbie at mashups and javascript but I've managed to piece something together based on other examples from various sources. So forgive me if it's not the most elegant thing in the world! ;) It's a bit of a hodgepodge that I've been building in stages. I'm nervous about trying to streamline it much because I'm under a time constraint as it's a class project and don't want to mess up what already works. No doubt I have a lot to learn yet and I welcome suggestions. I just may not be able to apply them before I have to turn it in.
Any ideas what I'm doing wrong with the autocomplete? Also, I noticed that the Map/Satellite view buttons no longer worked after I built in the search functionality. My solution to that was to disable/hide the buttons! If anyone has any hints on that too, let me know.
Here's where the app is located: http://webpages.charter.net/nymbli/displays.htm
For some reason, I'm not able to get my code to post here but please feel free to view the source code for the page.
Thanks in advance,
Anne
You have an extra <script type="text/javascript"> tag. Remove that and look at the source in Firefox. The HTML errors are highlighted. In general, never use IE for development. Use a real browser instead. ;-)
I've been looking for some inspiration with wxpython as far as the GUI goes. Everything in the demo looks boring and uninspiring so I want to go in my own direction but I can't figure out how to use my own buttons I made in photoshop or my own background images.
I'm kind of new to GUI programming so I ask if you could please be clear in what steps I should take. Once I intialize the frame...how to I load my custom buttons, or set the panel background?
As acattle pointed out, I already wrote on how to change a panel's background. You should note that wxPython isn't a themable GUI toolkit. It uses the native widgets of the OS wherever possible and most of the time, those just aren't very themable. If you need that, then you should look at Tkinter's (especially ttk) or pyside/pyQt.
If you need bitmap buttons, there are several options:
BitmapButton
GradientButton
AquaButton
PlateButton
I did some googling and I found this tutorial for setting the background of panels.
A bit more googling and I found this post talking about wxPython's Bitmap Button Class and showing some code examples.
I would suggest being very very careful designing your GUI if you're going to use custom images. You need to pay special attention to your spacing and your text sizes or your GUI might come out looking like crap.
Who knows QML scrollbar component with the standard Windows style?
See the blog entry QML Components for Desktop? in the Qt Labs Blog. But beware: this is unfinished code and in my installation (Qt 4.7.2, Vista, MSVC-2008) the example did not work out of the box for me.
You probably don't need this anymore, but I just stumbled into the same problem and this post might be useful to whoever have the same needs. It contains a scrollbar qml source that worked pretty well for me. It doesn't have the standard windows style though, so you'd have to tweak its appearance a little.