Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QFormLayout (not able to use in qt.4.3.3)

QFormLayout (not able to use in qt.4.3.3)

Scheduled Pinned Locked Moved Unsolved General and Desktop
qformlayout
6 Posts 2 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    Qt Enthusiast
    wrote on last edited by
    #1

    I am using qt 4.3.3 version I am also not able to use QFormLayout. is it not available in QFormLayout

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      Qt Enthusiast
      wrote on last edited by
      #2

      @Qt-Enthusiast said:

      am using qt 4.3.3 version I am also not able to use QFormLayout. is it not available in QFormLayout

      am using qt 4.3.3 version I am also not able to use QFormLayout. is it not available in q.4.3.3 and if not how to use it

      1 Reply Last reply
      0
      • jsulmJ Online
        jsulmJ Online
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        If you check the documentation (http://doc.qt.io/qt-4.8/qformlayout.html) you will see: "Since: Qt 4.4"
        Do you really have to use such an ancient Qt version?

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • Q Offline
          Q Offline
          Qt Enthusiast
          wrote on last edited by
          #4

          In that case what is the alteranative of QFormLaout ? for qt.4.3.3

          1 Reply Last reply
          0
          • jsulmJ Online
            jsulmJ Online
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Please take a look at the documentation I provided.
            There you can find an alternative implementation using grid layout:

            nameLabel = new QLabel(tr("&Name:"));
            nameLabel->setBuddy(nameLineEdit);
            
            emailLabel = new QLabel(tr("&Name:"));
            emailLabel->setBuddy(emailLineEdit);
            
            ageLabel = new QLabel(tr("&Name:"));
            ageLabel->setBuddy(ageSpinBox);
            
            QGridLayout *gridLayout = new QGridLayout;
            gridLayout->addWidget(nameLabel, 0, 0);
            gridLayout->addWidget(nameLineEdit, 0, 1);
            gridLayout->addWidget(emailLabel, 1, 0);
            gridLayout->addWidget(emailLineEdit, 1, 1);
            gridLayout->addWidget(ageLabel, 2, 0);
            gridLayout->addWidget(ageSpinBox, 2, 1);
            setLayout(gridLayout);
            

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • Q Offline
              Q Offline
              Qt Enthusiast
              wrote on last edited by
              #6

              Thanks and sorry I did not looked at the documenation example first

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved