{"action":"closed","issue":{"url":"https://api.github.com/repos/sofa-framework/sofa/issues/623","repository_url":"https://api.github.com/repos/sofa-framework/sofa","labels_url":"https://api.github.com/repos/sofa-framework/sofa/issues/623/labels{/name}","comments_url":"https://api.github.com/repos/sofa-framework/sofa/issues/623/comments","events_url":"https://api.github.com/repos/sofa-framework/sofa/issues/623/events","html_url":"https://github.com/sofa-framework/sofa/issues/623","id":312282027,"number":623,"title":"Undefined gridLayout in RealGUI.cpp when using SOFA_GUI_INTERACTION","user":{"login":"robot-chenwei","id":34245169,"avatar_url":"https://avatars3.githubusercontent.com/u/34245169?v=4","gravatar_id":"","url":"https://api.github.com/users/robot-chenwei","html_url":"https://github.com/robot-chenwei","followers_url":"https://api.github.com/users/robot-chenwei/followers","following_url":"https://api.github.com/users/robot-chenwei/following{/other_user}","gists_url":"https://api.github.com/users/robot-chenwei/gists{/gist_id}","starred_url":"https://api.github.com/users/robot-chenwei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robot-chenwei/subscriptions","organizations_url":"https://api.github.com/users/robot-chenwei/orgs","repos_url":"https://api.github.com/users/robot-chenwei/repos","events_url":"https://api.github.com/users/robot-chenwei/events{/privacy}","received_events_url":"https://api.github.com/users/robot-chenwei/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-08T07:44:20Z","updated_at":"2018-04-26T07:56:34Z","closed_at":"2018-04-26T07:56:34Z","author_association":"NONE","body":"# Problem\r\nWhen selected the SOFA_GUI_INTERACTION, this problem will appear. (in v17.12 and v17.06)\r\n```\r\napplications/sofa/gui/qt/RealGUI.cpp:432:5: error: ‘gridLayout’ was not declared in this scope\r\n     gridLayout->addWidget(interactionButton, 3, 0, 1, 1);\r\n     ^\r\nSofaGui/SofaGuiQt/CMakeFiles/SofaGuiQt.dir/build.make:1634: recipe for target 'SofaGui/SofaGuiQt/CMakeFiles/SofaGuiQt.dir/RealGUI.cpp.o' failed\r\n```\r\nThere are three line use the object gridLayout, which is undefined.\r\n```\r\napplications/sofa/gui/qt/RealGUI.cpp:432:    gridLayout->addWidget(interactionButton, 3, 0, 1, 1);\r\napplications/sofa/gui/qt/RealGUI.cpp:433:    gridLayout->removeWidget(screenshotButton);\r\napplications/sofa/gui/qt/RealGUI.cpp:434:    gridLayout->addWidget(screenshotButton, 3, 1, 1,1);\r\n```\r\nI only find the defination of gridLayout1 in the file \"RealGUI.h\" and \"RealGUI.cpp\" comes from the file \"ui_GUI.h\":\r\n```\r\nui_GUI.h:84:    QGridLayout *gridLayout1;\r\n```\r\n# Solution\r\nUsing gridLayout1 instead of gridLayout in these three lines, the problem will be disappear. But I do not know if it is the right way?\r\n\r\n______________________________________________________\r\n\r\nSuggested labels: <!--- see https://github.com/sofa-framework/sofa/labels -->"}}
{"actor":{"display_login":"guparan"}}