New button
-
hi
how can i create new button by my parameters.
for example i want create a button that in rollover style be big or create a button in my own shape
thanks -
You should try QML and then give the action for the button clicked.
-
i know that i can create it by qml.but is it best way?
-
in fact i want start my work by qml but i worry that there is another simple way
-
There are two possibilities:
- modify an existing button using a style or a style sheet
- create your own button and reimplement QWidget::paintEvent()
-
and using QML programming witch case is?
-
As I Think of QML as the best thing for designing..!
You can add images, icons..and many other stuffs..!
So if you have designer work or something learn QML..! -
thank
is here any simple way to learn it or samples that i start with it? -
I think you will like this "wiki page":http://qt-project.org/wiki/How_to_Use_QPushButton
-
yes i like it and i use some of this properties in my programs...
but i think QML is my problem solver
thanks -
Have a look at "onentered":http://qt-project.org/doc/qt-4.8/qml-mousearea.html#onEntered-signal
Don't forget to set hoverEnabled
Something like:
@Onentered : true ? Size 1 : size 2@ -
yes,i got it,but my question is just for example and changing size of button is not exactly my mean...
thanks you eddy -
a new question...is here any designer for QML that i create a button visually like adobe flash???
-
[quote author="mehrdad" date="1331632780"]a new question...is here any designer for QML that i create a button visually like adobe flash??? [/quote]
Qt Creator has QML designer (the 'Design' tab) in it.
-
:)
yes,i know it,my mean is not a designer that create windows by widgets
a designer that create widgets by pictures
for example in adobe flash you can create a button by 4 pictures that this 4 pictures make 4 states of button(normal over clicked hit)... -
Adobe photoshop and The Gimp both have the possibility to export layers as QML
see this "Qt Labs blog":http://labs.qt.nokia.com/2010/10/19/exporting-qml-from-photoshop-and-gimp/
-
its good but in qt-samples i see pictures loaded in svg formats?