[Qt-interest] Buttons and Windows

John McClurkin jwm at nei.nih.gov
Wed Sep 23 13:48:46 CEST 2009


Ulf-Alexander v. Ceumern-Lindenstjerna wrote:
> Hi,
> 
> a) take a look at QToolButton, and if that does not help, use stylesheets to style your buttons just like you need them.
> 
> b) no idea, sorry
> 
> Regards, Ulf
> 
>> -----Original Message-----
>> From: qt-interest-bounces at trolltech.com [mailto:qt-interest-
>> bounces at trolltech.com] On Behalf Of "Alexander Carôt"
>> Sent: Wednesday, September 23, 2009 9:33 AM
>> To: qt-interest at trolltech.com
>> Subject: [Qt-interest] Buttons and Windows
>>
>> Hi all,
>>
>> I just started a new GUI project, which requires a different approach
>> than I previously worked with:
>>
>> a) Buttons may only appear as the Label a graphic designer has created.
>> How can I solved this ? Right now I am using a normal QPushButton and
>> add an Icon:
>>
>> myButton->setIcon(QIcon("button.png"));
>>
>> This results in the grey button with the icon inside. How can I just
>> display the icon but keeping the pushbutton functionality ?
>>
>> b) The application will contain several subforms of their own
>> functionality. So far I realized them as separate windows to which I
>> added a respective label. Here - the same things as with the buttons -
>> I only want to have the label displayed (and the elements I put on top
>> of that label) but not the window frame and window buttons (resized,
>> delete).

A window's frame is provided by the window manager, not Qt. You can 
change the buttons using hints.

>>
>> Can anyone give me a hint how to solve a) and b) as effectively and
>> quickly as possible ?
>>
>> Thanks in advance
>>
>> -- A l e x
>>
>> --
>> Dr.-Ing. Alexander Carôt
>> Email : Alexander at Carot.de
>> Tel.: +49 (0)177 5719797
>>
>>
>>
>> GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
>> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest



More information about the Qt-interest-old mailing list