That doesn't answer the question, though; while that will create a UI,
that doesn't make it appear on button-press, which is what the
question was.

Anyway, as I said, this should be on qt-interest.

/s/ Adam

On Sat, Oct 9, 2010 at 8:36 AM, Jeffrey Newman <[email protected]> wrote:
> My first reply,
> Use designer to create your U/I.
> if you want the image on the button. Add it with a QPixmap. I do this in
> my constructors.
>
> And if you want some fancy pictures, just sub-class the QFrame, and add
> your drawing code to the paint event. Then in designer drop a frame on
> your UI and promote it to the new sub-classed frame you created.
>
> Also, Qt is a framework, not a language. The language is C++, but there
> are a number of bindings to other languages too (or so I have read and
> heard).
>
> And, I think you will find the U/I very easy to build with designer.
>
> Jeffrey
>
> On Sat, 2010-10-09 at 09:05 +0100, atef gharbi wrote:
>> Good morning everybody,
>>
>> I am interested with the Qt language which offers many opportunities
>> to generate  usefull applications.
>>
>> Unfortunately, I always find difficulty when I work on graphical
>> interface (not especially Qt language).
>>
>> The most problem is how to create a new interface containing some
>> painting elements when I push on a button.
>>
>> Thanks a lot for your help.
>>
>> With my best regards.
>>
>> _______________________________________________
>> Qt-creator mailing list
>> [email protected]
>> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
>
> _______________________________________________
> Qt-creator mailing list
> [email protected]
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>

_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-creator

Reply via email to