Skip to content

3rd Party Software

Combining Qt with 3rd party libraries or components? Ask here!
1.1k Topics 5.5k Posts
  • Installing Qwt

    7
    0 Votes
    7 Posts
    8k Views
    S

    bq. Have you already checked this : Qwt Install Note [qwt.sourceforge.net] ?

    Thank you.

    I can't managed to use qt.conf. will ask in another post ;-)

  • 0 Votes
    4 Posts
    4k Views
    V

    Thanks @soroush. It worked perfectly.

  • QwtPlotZoomer zooming off canvas

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • QWT Zoomer Problems

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • 0 Votes
    7 Posts
    6k Views
    K

    This is how my code goes...

    @
    int Nightcharts::draw(QPainter *painter)
    {
    painter->setRenderHint(QPainter::Antialiasing);
    painter->setPen(Qt::NoPen);
    if (this->ctype==Nightcharts::Pie)
    {
    pW = 0;
    double pdegree = 0;

    //Options QLinearGradient gradient(cX+0.5*cW,cY,cX+0.5*cW,cY+cH*2.5); gradient.setColorAt(1,Qt::black); //Draw //pdegree = (360/100)*pieces[i].pPerc; if (shadows) { double sumangle = 0; for (int i=0;i<pieces.size();i++) { sumangle += 3.6*pieces[i].pPerc; } painter->setBrush(Qt::darkGray); painter->drawPie(cX,cY+pW+5,cW,cH,palpha*16,sumangle*16); } QPen pen; pen.setWidth(2); for (int i=0;i<pieces.size();i++) { gradient.setColorAt(0,pieces[i].rgbColor); painter->setBrush(gradient); pen.setColor(pieces[i].rgbColor); painter->setPen(pen); pdegree = 3.6*pieces[i].pPerc; painter->drawPie(cX,cY,cW,cH,palpha*16,pdegree*16); palpha += pdegree; }

    @

    my idea is when user clicks on a pie, get the RGB at that particular co-ordinates(X,Y)..compare the RGB with pieces[i].rgbColor..get the pie name and hence diaplay the details in a new window..

    but I need your help in writing the code to get the pixel color of a window on mouse click..

    many thanks in advance...

  • 0 Votes
    10 Posts
    21k Views
    M

    Thanks & done ...

    Greetings,
    Mike

  • QExtSerialPort readyRead Signal

    4
    0 Votes
    4 Posts
    8k Views
    A

    [quote author="kruvva" date="1306436734"]
    When I write data to the port, it is triggering the ReadPacket() slot for every byte in the data. I want the slot to be triggered only once when the new data is arrived. How can I achieve this? Is there some thing wrong in the port settings?[/quote]
    How would the class know that all your data (or all the data you are interested in) has arrived?

    If you get your data in bursts (a block of data, then nothing for a little while, then another block of data), you may look into "this wiki entry":http://developer.qt.nokia.com/wiki/Delay_action_to_wait_for_user_interaction. I explain how to fix this issue when related to UI's, but the code is equally applicable to this case. Or alternatively, you can simply check how many bytes are available when the slot is triggered, and if that number is too low, don't do anything.

  • Static plugin VS static library

    5
    0 Votes
    5 Posts
    6k Views
    L

    Ok, thanks.
    Now it's more clear.

  • Question for QWT in Qt application

    Solved
    3
    0 Votes
    3 Posts
    2k Views
    A

    I used QWT in Qt 4.7.x, it works.

  • QExtSerialPort port-&gt;write Problem

    5
    0 Votes
    5 Posts
    6k Views
    A

    Normally, you should not have to start from scratch at all, since they both simply subclass QIODevice. That means most of your code can stay stable.

  • QExtSerialPort && waitForReadyRead

    15
    0 Votes
    15 Posts
    12k Views
    S

    This project is not very popular but for me is better than Qextserialport.

    [quote author="Luca" date="1304430744"]
    [quote author="stuk" date="1304425688"]Have you look this project? "https://gitorious.org/qserialdevice":https://gitorious.org/qserialdevice[/quote]

    Thanks, It seems to works. I must do some tests but it goes in the right way.[/quote]

  • Creating and adding a static library

    3
    0 Votes
    3 Posts
    6k Views
    R

    Hi,
    Here is the complete project code (http://www.4shared.com/file/FFtrqBMR/qextserialport.html ), in which I tried the project in the examples/event folder, i.e

    @
    PROJECT = event
    TEMPLATE = app
    DEPENDPATH += .
    INCLUDEPATH += ../../src
    QMAKE_LIBDIR += ../../src-build-desktop/build
    CONFIG += staticlib

    OBJECTS_DIR = tmp
    MOC_DIR = tmp
    UI_DIR = tmp

    SOURCES += main.cpp PortListener.cpp
    HEADERS += PortListener.h

    CONFIG(debug, debug|release):LIBS += -lqextserialportd
    else:LIBS += -lqextserialport
    @
    I am using Qt libraries version 4.7.0, Qt Creator IDE version 2.0.1 in Windows
    Thanking You,
    Ras

  • Customizing QDial

    15
    0 Votes
    15 Posts
    17k Views
    A

    I would use png, I think. Qt has good support for it, and it produces not artifacts that can hinder readability of text. I do suggest two separate images for the background and the needle, yes.

  • Check platform on .pro [Solved]

    9
    0 Votes
    9 Posts
    8k Views
    Z

    You're welcome. I know these build issues can be frustrating.

  • Linked library not found at compilation.

    3
    0 Votes
    3 Posts
    6k Views
    A

    INCLUDEPATH, as "documented":http://doc.qt.nokia.com/4.7/qmake-variable-reference.html#includepath, is for including header files. I think you were looking for VPATH and/or DEPENDPATH.

  • Help with GPS integration basics

    2
    0 Votes
    2 Posts
    3k Views
    A

    Most GPS's are simply serial devices. You could use QextSerialPort to open the port your device talks at. The output stream is most likely NMEA (refer to your GPS manual for details on communication speeds and protocol used).

  • QwtPlot how to create an weekly Xaxis&#63;

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • 0 Votes
    3 Posts
    6k Views
    S

    first. thank you. unclewerner.

    i solved.

    reference example
    C:\Qt\qwt-5.2.1\examples\cpuplot

    [ check point ]

    edit ui. (create widget)
    Promoted Widgets
    QWidget - CWg_plot - wg_plot.h

    add code
    @
    CWg_plot* wg_plot = new CWg_plot(this); //create widget
    wg_plot->resize(300, 300); //need resize
    or (other way.)
    CWg_plot* wg_plot = ui->wg_unit; //auto resize (follow ui.)
    @

    code in wg_plot
    @
    qwt_plot = new QwtPlot(this); //create plot
    CPlotitem_bg* plot_bg = new CPlotitem_bg(); //create CPlotItem
    plot_bg->attach(qwt_plot); //add CPlotitem in qwt_plot
    @
    and
    @
    void CWg_plot::resizeEvent(QResizeEvent* event) //plot resize
    {
    if(qwt_plot == NULL){ return ; }
    qwt_plot->resize(this->width(), this->height());
    }
    @

    code in plotitem_bg (draw)
    @void CPlotitem_bg::draw(QPainter *p, const QwtScaleMap &, const QwtScaleMap &, const QRect &rect) const@

  • Curve Fitting Not Always Applied

    3
    0 Votes
    3 Posts
    3k Views
    M

    Uwe has kindly begun to help me on

    "http://www.qtcentre.org/threads/39533-Cu…ght=#post181435":http://www.qtcentre.org/threads/39533-Cu…ght=#post181435

    I will follow this up there as I don't want to waste experts tiem with multiple posts.

  • 0 Votes
    4 Posts
    5k Views
    W

    lol i know, i know. I get impatient sometimes, i apologize.