This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Q_DECL_EXPORT int main(int argc, char *argv[]) | |
{ | |
QApplication app(argc, argv); | |
GameView *view = new GameView; | |
view->show(); | |
return app.exec(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bb.cascades 1.0 | |
Page { | |
Button { | |
id: rotatingButton | |
text: "My Rotating Button" | |
animations: [ | |
RotateTransition { | |
id: rotButton | |
toAngleZ: 360 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create the root page and the button | |
Page* root = new Page; | |
Button* myButton = Button::create("My Rotating Button"); | |
// Create a rotation animation and associate it with the button | |
RotateTransition* rotation = RotateTransition::create(myButton) | |
.toAngleZ(360) | |
.duration(350); | |
// Connect the button's clicked() signal to the animation's play() slot, so that |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Drilldown navigation project template | |
import bb.cascades 1.0 | |
Page { | |
Container { | |
Button { | |
text: "add" | |
onClicked: { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Image | |
{ | |
source:"http://img.clubic.com/04027682-photo-qt-logo.jpg" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* WebImageView.h | |
* | |
* Created on: 4 oct. 2012 | |
* Author: schutz | |
*/ | |
#ifndef WEBIMAGEVIEW_H_ | |
#define WEBIMAGEVIEW_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* WebImageView.cpp | |
* | |
* Created on: 4 oct. 2012 | |
* Author: schutz | |
*/ | |
#include "WebImageView.h" | |
#include <bb/cascades/Image> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Default empty project template | |
import bb.cascades 1.0 | |
import org.labsquare 1.0 | |
// creates one page with a label | |
Page { | |
Container { | |
layout: DockLayout {} | |
WebImageView { | |
id:img | |
url:"http://syvolc.briolet.fr/wp-uploads/2010/11/qt-logo1.jpg" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 1.0 | |
Row { | |
Repeater { | |
model: 3 | |
Rectangle { | |
width: 100; height: 40 | |
border.width: 1 | |
color: "yellow" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Container { | |
horizontalAlignment: HorizontalAlignment.Fill | |
verticalAlignment: VerticalAlignment.Fill | |
leftPadding: 30 | |
topPadding: 30 | |
rightPadding: 30 | |
Repeater { | |
// Use a simple number (N) as model -> the delegate will be repeated N times |
OlderNewer