Results 1 to 3 of 3

Thread: The problem with the transfer of value

  1. #1
    Join Date
    Apr 2011
    Posts
    2
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    Windows

    Default The problem with the transfer of value

    How multiply two SpinBox, and print result in QLabel?
    If you can give some example?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: The problem with the transfer of value

    QSpinBox::value(), QLabel::setText() and some very, very basic C++. What have you tried?

    Surely there is more to this question.

  3. #3
    Join Date
    Apr 2011
    Posts
    2
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    Windows

    Default Re: The problem with the transfer of value

    I have this situation

    void autogentest::createValAG()
    {
    ValAGGroup = new QGroupBox(tr("Parameters Autogenerator"));
    ValAGGroup->setFixedSize(200,500);

    QLabel *Labell = new QLabel(tr("Enter a value l"));
    QSpinBox *SpinBoxl = new QSpinBox; //The values of two SpinBox multiply
    SpinBoxl->setRange(-100, 100);
    SpinBoxl->setSingleStep(1);

    QLabel *LabelR = new QLabel(tr("Enter a value R"));
    QSpinBox *SpinBoxR = new QSpinBox;
    SpinBoxR->setRange(-100, 100);
    SpinBoxR->setSingleStep(1);
    SpinBoxR->setValue(0);

    }

    void autogentest::createEdit()
    {
    EditGroup = new QGroupBox(tr("Resolt"));
    EditGroup->setFixedSize(500,500);

    LabelH = new QLabel; //And the result is print here
    }

Similar Threads

  1. File Transfer in Qt
    By Rajeshsan in forum Qt Programming
    Replies: 6
    Last Post: 11th February 2011, 04:13
  2. QTcpSocket problem in file transfer
    By omprakash in forum Qt Programming
    Replies: 6
    Last Post: 25th January 2010, 08:18
  3. problem in transfer file with tcpip part 2
    By wei243 in forum Qt Programming
    Replies: 4
    Last Post: 9th March 2007, 10:11
  4. Transfer image problem
    By probine in forum Qt Programming
    Replies: 7
    Last Post: 4th May 2006, 10:24
  5. A way to transfer info from .pro to Makefile
    By thawkins in forum Qt Programming
    Replies: 3
    Last Post: 2nd May 2006, 21:06

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.