score:1
you need 4 things :
- the .ui generated by qt designer
=> about.ui
<?xml version="1.0" encoding="utf-8"?>
<ui version="4.0">
<class>about</class>
<widget class="qdialog" name="dialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowtitle">
<string>a propos</string>
</property>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources/>
<connections/>
</ui>
- the cpp / h associated with the .ui, for example this :
an about window (about.cpp) =>
#include "about.h"
#include "ui_about.h"
about::about(qwidget *parent) : qdialog(parent), ui(new ui::about)
{
ui->setupui(this);
}
about::~about()
{
delete ui;
}
(about.h) =>
#ifndef about_h
#define about_h
#include <qdialog>
namespace ui {
class about;
}
class about : public qdialog
{
q_object
public:
explicit about(qwidget *parent = 0);
~about();
private:
ui::about *ui;
};
#endif // about_h
in the .pro file
sources += about.cpp
headers += about.h
forms += about.ui
Source: stackoverflow.com
Related Query
- Using a Qt GUI created by Qt Designer in Eclipse
- Compiling a Win32 GUI app (without a console) using MinGW and Eclipse
- how to use appcfg.py for google-app-engine projects created using google's eclipse plugin?
- Eclipse Spring Tool Suite add dependencies using GUI after project creation
- What would I have to do to program a GUI in C++ using Eclipse IDE?
- Android GUI using Eclipse
- How to know project was created using Eclipse or NetBeans
- GUI not showing up with JavaFX 15 using Eclipse on Mac
- Create a GUI using WindowBuilder's visual designer
- Text fields are not displayed on the barchart created using jfreechart in Eclipse RCP
- Building C# GUI without using Visual Studio GUI designer (Toolbox)
- Eclipse Kepler (4.3) JUnit (3.81) view not showing test results, using code created by maven-archetype-quickstart
- How can I run an Eclipse plug-in written by me that automates Eclipse through its GUI using SWTBot
- Unable to launch windows GUI application using Sikuli from Eclipse [Can't load IA 32-bit .dll on a AMD 64-bit platform]
- Using Netbeans GUI settings in eclipse
- setting maven archetype using eclipse GUI
- How to use scrollbar for a JTextField in JAVA using eclipse GUI drag and drop tool?
- Clean and build java project without eclipse GUI using another java program
- Delete branch in clearcase in Eclipse using GUI operation
- qt gui project in eclipse using qt plugin
- How to remove default things(functionalities) present in the IDE which was created using eclipse plugins?
- Maven project can not be created in Eclipse Neon using Archetype
- Eclipse: I'm using ANTLR4 plugin, How do I get Eclipse to build the artifacts created by the ANTLR4 plug in?
- using eclipse 3.6 and GWT and GWT Designer
- How to compile a GUI in Java using Eclipse with the given code
- WAR file created using Ant script not debugging in eclipse
- Unable to publish web service which is created in java using eclipse
- While running a script as testng in eclipse using appium. It tells me a new session could not be created
- GUI application in Java using eclipse
- How to redirect the console output into the GUI console view using eclipse plugin?
More Query from same tag
- android handle selector state
- Eclipse development installer
- When ever a question mark is imputed by a user it will display a string
- Eclipse interface icons very small on high resolution screen in Windows 8.1
- Issue in running generated build using Selenium Webdriver?
- Work with Maven, EJBs and Eclipse
- Tomcat won't start on eclipse
- How to control the left and right function of an RC toy car connected to Arduino via Android using Bluetooth in Eclipse?
- How do I get Eclipse to recognize R and the resources in Android's Lunar Lander?
- I can't export the blender object
- Eclipse & Dark Juno - any way to make the console and other features dark?
- Eclipse 4.3.1 projects on Ubuntu 13.10 not working
- How to run Eclipse plugin in the same Workbench?
- java.lang.ClassCastException: org.jboss.ejb.client.naming.ejb.EjbNamingContext cannot be cast to
- Grails 1.4.0.M1 (with STS 2.7.0.M2) NoClassDefFoundError for GantBuilder
- Android Eclipse update Error?
- Having Trouble Running Java Program in CMD
- GDB Debugging on Eclipse hangs for infinite time
- Is there a way how to edit multiple localised string.xml files in one window in Eclipse?
- How to add dependency in maven so Eclipse can use it on the buildpath
- about using a library project in eclipse
- How can I get Eclipse PDT to only show my code templates on CTRL-SPACEBAR?
- Create android project using command line with jars in Libs folder
- can't launch eclipse ubuntu 12.04
- Eclipse IDE and Sass
- Renamed android app.. problems ensue
- Remote Debugging multi-threaded C program with GDB
- Eclipse Freezes Constantly
- two instances of the same editor
- WAS getting changed to 1.6