Re: [Qt-creator] generate a new interface
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 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 >> Qt-creator@trolltech.com >> http://lists.trolltech.com/mailman/listinfo/qt-creator > > > ___ > Qt-creator mailing list > Qt-creator@trolltech.com > http://lists.trolltech.com/mailman/listinfo/qt-creator > ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] generate a new interface
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 > Qt-creator@trolltech.com > http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] generate a new interface
The qt-creator mailing list is for questions pertaining specifically to the Qt Creator IDE. Your question is a general Qt question, which needs to be asked on the qt-interest mailing list. /s/ Adam On Sat, Oct 9, 2010 at 3:05 AM, 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 > Qt-creator@trolltech.com > http://lists.trolltech.com/mailman/listinfo/qt-creator > > ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
[Qt-creator] generate a new interface
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 Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator