QLayoutItem *child;
while ((child = layout->takeAt(0)) != 0) {
...
delete child;
...
11 Nisan 2018 Çarşamba
10 Nisan 2018 Salı
qt projeye kütüphane ekleme
*Qt mingw consolu acılır
*kullanılacak kutuphane dizinine gidilir
*qmake xx.pro
*mingw32-make
*mingw32-make install
*proje dizini dısında proje ile alakalı yeni bir dizin oldugu gözlenir
*oluşan dizin lib klasorunun adres yolu kopyalanır
*Denetim Masası -> sistem güvenlik->sistem->gelişmis ayarlar -> ortam degiskenleri tıklanır PATH kısmının en başına bu adres yolu eklenir
*Üst...
QWT3 Canvasa Dikey Çizgi ile Koordinat takibi Yapmak (Curve Travker - QwtPlotPicker)
CurveTracker* tracker = new CurveTracker( this->canvas() );
// for the demo we want the tracker to be active without
// having to click on the canvas
tracker->setStateMachine( new QwtPickerTrackerMachine() );
tracker->setRubberBandPen( QPen( "MediumOrchid" ) );
Nesne...
Qwt2 Canvas ve iki nokta arası mesafe ölçme (canvas, distance picker,scatter point)
// canvas tanımlanıyor
canvas()->setStyleSheet(
"border: 2px solid Black;"
"border-radius:55px;"
"background-color: qlineargradient( x1: 0, y1: 0, x2: 0, y2: 1,"
"stop: 0 LemonChiffon, stop: 1 PaleGoldenrod );"
);
// attach curve
//...
Qwt ile Koordinatları Çizme ve Boyama(QwtPlot,QwtPlotGrid,QwtPlotCurve Kullanımı)
QwtPlot plot;
plot.setTitle( "Plot Demo" ); //baslık adı
plot.setCanvasBackground( Qt::white ); // arka plan rengi
plot.setAxisScale( QwtPlot::yLeft, 0.0, 2.0 ); // y eksenin degerleri
plot.insertLegend( new QwtLegend() ); // plota tanımlayıcı legend ekleme
QwtPlotGrid...