| 원저자 | KDE |
|---|---|
| 개발자 | KDE |
| 발표일 | 2008년 1월 11일 |
| 저장소 | |
| 프로그래밍 언어 | C++ |
| 종류 | |
| 라이선스 | GNU LGPL (LGPL) |
| 상태 | 유지 보수 |

KDE 플랫폼 4(KDE Platform 4)는 KDE의 라이브러리와 소프트웨어 프레임워크의 모음으로, GNU LGPL 라이선스로 배포되는 KDE 소프트웨어 컴필레이션 4의 기술 토대를 제공한다.
KParts는 KDE 플라스마 데스크톱 환경을 위한 컴포넌트 프레임워크이다. 개개의 컴포넌트는 KPart라고 한다.
#include <KApplication>
#include <KAboutData>
#include <KCmdLineArgs>
#include <KMessageBox>
#include <KLocale>
int main (int argc, char *argv[])
{
KAboutData aboutData(
// The program name used internally.
"tutorial1",
// The message catalog name
// If null, program name is used instead.
0,
// A displayable program name string.
ki18n("Tutorial 1"),
// The program version string.
"1.0",
// Short description of what the app does.
ki18n("Displays a KMessageBox popup"),
// The license this code is released under
KAboutData::License_GPL,
// Copyright Statement
ki18n("Copyright (c) 2007"),
// Optional text shown in the About box.
// Can contain any information desired.
ki18n("Some text..."),
// The program homepage string.
"http://example.com/",
// The bug report email address
"submit@bugs.kde.org");
KCmdLineArgs::init( argc, argv, &aboutData );
KApplication app;
KGuiItem yesButton( i18n( "Hello" ), QString(),
i18n( "This is a tooltip" ),
i18n( "This is a WhatsThis help text." ) );
KMessageBox::questionYesNo( 0, i18n( "Hello World" ),
i18n( "Hello" ), yesButton );
return 0;
}