maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   [Qt Help] Which widgets are these? (https://talk.maemo.org/showthread.php?t=67644)

gionni88 2010-12-30 12:51

[Qt Help] Which widgets are these?
 
I'm trying to figure out which kind of widget those screenshots have:


http://img442.imageshack.us/img442/7...0123012290.png

http://img7.imageshack.us/img7/1023/...0123012324.png

PushButtons with checkable properties true or horizontal combobox? Or custom ones?

Thanks.

epage 2010-12-30 12:57

Re: [Qt Help] Which widgets are these?
 
Quote:

Originally Posted by gionni88 (Post 907525)
I'm trying to figure out which kind of widget those screenshots have:


http://img442.imageshack.us/img442/7...0123012290.png

http://img7.imageshack.us/img7/1023/...0123012324.png

PushButtons with checkable properties true or horizontal combobox? Or custom ones?

Thanks.

The menu can be achieved by having an action group with each desired action as a child. You then add each individual action to the windows menu. If you want an example (in python) check Gonvert's source code
http://wiki.maemo.org/Gonvert

I am unsure what is done for the non-menu buttons.

Venemo 2010-12-30 14:39

Re: [Qt Help] Which widgets are these?
 
Quote:

Originally Posted by gionni88 (Post 907525)
I'm trying to figure out which kind of widget those screenshots have:

http://img442.imageshack.us/img442/7...0123012290.png

This is done by adding filters to a HildonAppMenu. It is also doable from Qt by adding a radiobutton thingy to the menu (I think).

Quote:

Originally Posted by gionni88 (Post 907525)

This one seems like a tab control, maybe your theme gives the same appearance to the tabs as the menu filters.

hqh 2010-12-30 16:17

Re: [Qt Help] Which widgets are these?
 
Quote:

Originally Posted by gionni88 (Post 907525)

This one looks familiar ;)
They are grouped QRadioButtons

MohammadAG 2010-12-30 19:14

Re: [Qt Help] Which widgets are these?
 
Quote:

Originally Posted by gionni88 (Post 907525)
I'm trying to figure out which kind of widget those screenshots have:

http://img442.imageshack.us/img442/7...0123012290.png

In C++/Qt:
http://gitorious.org/qt-mediaplayer/...dow.cpp#line12
Thanks to tswindell for help with those :)

gionni88 2010-12-30 20:07

Re: [Qt Help] Which widgets are these?
 
QActionGroup for the menu one and a QGroupBox with an horizontal layout for the other one. The first in the second screenshot seams like the standard tab and it has black vertical lines to space the choises. Thanks everyone!


All times are GMT. The time now is 16:45.

vBulletin® Version 3.8.8