Skip to content

Commit

Permalink
first-application steps modified
Browse files Browse the repository at this point in the history
  • Loading branch information
uwerat committed Jan 13, 2024
1 parent 7e2e361 commit ffb5934
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions doc/tutorials/03-writing-your-first-application.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ layout: docs

=== Building the QSkinny repository

In this chapter we will write a simple QSkinny application on Linux from scratch.
In this chapter we will write a simple QSkinny application on Linux from scratch in C++.
As a prerequisite, a recent Qt version (>= 5.15) should be available. On debian bullseye we need to install
these packages `build-essential cmake qtbase5-dev qtbase5-private-dev qtdeclarative5-dev qtdeclarative5-private-dev libqt5svg5-dev`.
On Debian these packages need to be installed for Qt6: `build-essential cmake
Expand Down Expand Up @@ -74,14 +74,13 @@ set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
find_package(Qt5 REQUIRED COMPONENTS Widgets Quick)
find_package(Qt5 REQUIRED COMPONENTS Quick)
find_package(QSkinny REQUIRED)
add_executable(myapp
src/main.cpp)
target_link_libraries(myapp PRIVATE
Qt5::Widgets
Qt5::Quick
Qsk::QSkinny)
....
Expand Down Expand Up @@ -122,9 +121,9 @@ int main( int argc, char* argv[] )
{
QGuiApplication app( argc, argv );
auto* horizontalBox = new QskLinearBox( Qt::Horizontal );
auto* button1 = new QskPushButton( "button 1", horizontalBox );
auto* button2 = new QskPushButton( "button 2", horizontalBox );
auto horizontalBox = new QskLinearBox( Qt::Horizontal );
(void) new QskPushButton( "Button 1", horizontalBox );
(void) new QskPushButton( "Button 2", horizontalBox );
QskWindow window;
window.addItem( horizontalBox );
Expand Down

0 comments on commit ffb5934

Please sign in to comment.