-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    LinuxDaily.com    Linux42.org    OpenSkillz.com   
 
Apps
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login

-
- global .- user support .- artwork .- developer . 
goto page: prev  ... 5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  20 ...

-
.

 QTabWidgets

 
 by peroxid on: Feb 16 2005
 
Score 50%

I am trying to guess the QTabBar size of a QTabWidget when painting the page frame, PE_PanelTabWidget, The function for this is to change the frame shape when the tabs width > page width, and then buttons are painted and tabs "clipped".

I get the QTabWidget with a dynamic cast to p->painter(), but tabBar() is protected. After a ugly hack, I can get the QTabBar, but the size it provides is not usable, it's always 100 or a crazy big value (i.e. 25556 or 65554). Anyway this hack is *very ugly* and too slow.

Any idea?


Reply to this

-

 Re: QTabWidgets

 
 by thomas12777 on: Feb 17 2005
 
Score 50%

code fragment??

making a inheritance of qtabwidget, you a friend and cast to your class is not really an /ugly/ hack - it's quite common

for the return value:
one will need to see your code, as qwidgets should usually reply nice values fort width() and height()


Reply to this

-

 Re: Re: QTabWidgets

 
 by peroxid on: Feb 17 2005
 
Score 50%

are you kidding? when I had that idea it scared me. I said "uuuuh, that's too hacky, even for me".

class MyTabWidget : public QTabWidget
{
public:
const QTabWidget *tw;
MyTabWidget(const QTabWidget *w) {tw = w;}
~MyTabWidget() {}
QTabBar* myTabBar() { return tabBar(); }
};

That QTabBar rect is always [0,0 - 100x30]. Right now I do not get the random values

BTW, is there any list to talk about this?


Reply to this

-

 Re: Re: Re: QTabWidgets

 
 by thomas12777 on: Feb 17 2005
 
Score 50%

ok, this /is/ (somehow) hackish
try (not in the header file, internal class only)
class MyTabWidget : public QTabWidget
{
friend class MyClass;
public:
MyTabWidget(QWidget * parent = 0, const char * name = 0, WFlags f = 0) : QTabWidget(parent,name,f) {}
};

now you can access the protected members (like the tabbar) of the tabwidget by casting at access ((MyTabWidget*)tw)->protectedmember();
if you need access more often make
MyTabWidget* mw = tw;
and use mw instead of tw (wokrs as MTW inherits QTW).

the qt interest list or the kde developers list are proper places to ask such questions


Reply to this

-
.

 Layout problem

 
 by morgenrot on: Feb 23 2005
 
Score 50%

Hello,

I have a problem with inserting a widget below the top-dock. In most apps the widget stays where it should, but in konqueror after a new tab is open it somehow falls of the layout.

(somewhere in "case PE_PanelDockWindow")

if(!mainwindow->child("wline")) {
QWidget *wline = new QWidget(mainwindow, "wline");
dynamic_cast< QBoxLayout*>(mainwindow->layout())->insertWidget(2, wline, 0, 0);
wline->setPaletteBackgroundColor(Qt::yellow);
wline->show();
}

Here you can see how it looks before and after a new tab was opened:
http://img187.exs.cx/img187/9866/konqline2gu.png


Reply to this

-

 solved

 
 by morgenrot on: Feb 24 2005
 
Score 50%

The if-loop checked only if the widget was in the mainwindow, but it should check if its still in the layout. To place it under PE_PanelDockWindow was also wrong.
Comes time, comes overview :)


Reply to this

-

 Re: solved

 
 by morgenrot on: Feb 24 2005
 
Score 50%

Ups, sorry, this should be a reply to "Layout problem".


Reply to this

-
.

 Is it legal...

 
 by Maxilys on: Mar 27 2005
 
Score 50%

I'm making a window decoration and I realise that I need to get the window base color.

It's not part of the usual colors defined in kdecoration.h and I'm wondering if it's legal to include kglobalsettings.h for a windec? There must be some limits in what you can do in a windec... Otherwise why not a windec that downloads the daily set of buttons from Internet? ;-)

I'm almost a noob so if there's a better way than using kglobalsettings.h, just tell me. Through QT, for example?


(c) MXLS(r)(tm) (Patent pending)
We're living in a free world, ain't we?

Reply to this

-

 Re: Is it legal...

 
 by p0z3r on: Mar 28 2005
 
Score 50%

Trying to get the color of the background used in the window contents?

Where client is your KDecoration extended class.
QColorGroup widgetGroup;
widgetGroup = client->widget()->colorGroup();
widgetGroup.background()

That worked for me in Smooth Blend. Look at some source code. Plastik uses that color as well.


cheers,
-p0z3r

Reply to this

-

 Re: Is it legal...

 
 by MDonoughe on: Apr 22 2005
 
Score 50%

You probably can read the images off the internet. If you can read them from the disk using KIO, then you can read things from the internet(afaik).


Reply to this

-

 text scroll superk..

 
 by abattoir on: Apr 11 2005
 
Score 50%

I am doing a small xmms theme in superkaramba, i want the artist and track details to scroll(like a marquee), how do i do that?
Thank you.


Reply to this

-

 Re: text scroll supe

 
 by p0z3r on: Apr 12 2005
 
Score 50%

It depends on if you are doing the theme approach or the python script approach.
I'm not aware of an option to make scrolling work directly with the theme approach, unless you write some amazing bash script to handle it via dcop calls to xmms or something.
Of course with python you have all the options in the world.
There was some work to create a scrolling text function in the karamba api, but we were not satisfied with it's performance.


cheers,
-p0z3r

Reply to this

-

 Re: Re: text scroll

 
 by abattoir on: Apr 15 2005
 
Score 50%

Thank you, now i am getting the hang of python, I am doing a gmail rss notifier for superkaramba which helped me a lot with python(and superkaramba!!!).I'll try implementing scroll with python soon. Thanks a lot.


Reply to this

-
.

 KTabBar close button

 
 by therp on: Apr 24 2005
 
Score 50%

KTabBar provides a close tab button. This
button is implemented as QPushButton, which
is very anxious to draw its background.

As you can see from

http://clemens.endorphin.org/misc/ktabbar-close-button.png
(look at the close button background of texhacks.tex)

this does not look nice in my theme, as
non-active tabs are a bit darker than
regular window background. Unfortunately,
QPushButton is drawn with the regular
background color. This looks ugly.

I tried various things, like forcing
QPushButtons to NoBackgroundMode. But,
still my PE_PushButtonLabel method
is provided a cleared background.
That sucks donkey balls. Any ideas how
to convince QT to provide a "transparent"
background?


Reply to this

-

 Re: KTabBar close button

 
 by attendant on: Apr 25 2005
 
Score 50%

try setting the mask of the close image

regards


Reply to this

-

 Re: Re: KTabBar clos

 
 by therp on: Apr 25 2005
 
Score 50%

I'm afraid that won't help. I'm not sure what mask you're talking about, but if I disable icons drawing (by commenting drawPixmap in my theme) the background is also cleared. So, that can't be the method to blame.


Reply to this

-

 Re: Re: Re: KTabBar clos

 
 by attendant on: Apr 26 2005
 
Score 50%

you're right... i meant to say the close widget's mask (i'm just guessing, but it's probably implemented as another button on top of the tab)
unfortunately, i've realise that you won't be able to do that (since that will be implemented in KTabBar code...)
if the close image is really a button, i think you won't be able to fix your problem (unless you do something like specially treating that button, that is, if you can identify it)


Reply to this

-

 Re: Re: Re: Re: KTab

 
 by therp on: Apr 28 2005
 
Score 50%

Can you specify what you mean by "mask"?

I already tried to get hold of the button and change a few things like backgroundMode. I can do that within the polish method. So.. hm what mask :)?


Reply to this

-

 Re: KTabBar close button

 
 by thomas12777 on: May 7 2005
 
Score 50%

when drawing pushbuttons, simply check the parent (grampa?) for the tabwidget and omit painting the button in this case


Reply to this

goto page: prev  ... 5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  20 ...

Add commentAdd commentBack



-
-
How do you like Plasma 5?
 The best KDE Desktop ever.
 Definitely a nice improvement.
 Not decided yet. Haven't tried it yet.
 I do not like some of the changes.
 KDE is taking the wrong way.
 I am still sticking with KDE 3.5.
 I have no opinion, but wanted to vote anyway.

resultmore
 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Facebook App
Content RSS   
Events RSS   

Participate
Groups
Forum
Add App
Public API
About KDE-Apps.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2003-2014 KDE-Apps.org Team  
All rights reserved. KDE-Apps.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
KDE and K Desktop Environment are trademarks of KDE e.V.