Results 1 to 3 of 3

Thread: Fullscreen in qml

  1. #1
    Join Date
    May 2011
    Posts
    120
    Thanks
    33
    Qt products
    Qt4
    Platforms
    Windows

    Thumbs down Fullscreen in qml

    I used this code to get Full screen in my project.
    Qt Code:
    1. qView->setResizeMode(QDeclarativeView::SizeRootObjectToView);
    2. showFullScreen();
    3. setCentralWidget(qView);
    To copy to clipboard, switch view to plain text mode 

    But the problem is that the buttons like play, options are not seen when we navigate to full screen option(I used animation on those buttons to fall from top to bottom).what can I do i n this ? i tried to set the x, y positions yo those buttons when we click fullscreen options. But it doesn't work properly.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Fullscreen in qml

    what can I do i n this ?
    Show us some code/QML pertinent to the positioning and showing of "the buttons". We can only guess otherwise.

  3. #3
    Join Date
    May 2011
    Posts
    120
    Thanks
    33
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Fullscreen in qml

    Qt Code:
    1. Rectangle{
    2. id:fullScreen
    3. width: fullScreenImage.width
    4. height: fullScreenImage.height
    5. color: "transparent"
    6. x:0;y:50;
    7. Image{
    8. id:fullScreenImage
    9. source: "pics/fullScreenDown.png"
    10. }
    11. MouseArea{
    12. id:fullScreenArea
    13. anchors.fill: fullScreenImage
    14. onPressed: {
    15. fscreen=1;
    16. fullScreenImage.source="pics/fullScreenUp.png"
    17. showhanddown(3)
    18. fullscreen(k)
    19. //playIcon.x=250
    20. //playIcon.y=200
    21. }
    22. onReleased: {
    23. fullScreenImage.source="pics/fullScreenDown.png"
    24. showhanddown(0)
    25. }
    26. }
    27.  
    28. }
    To copy to clipboard, switch view to plain text mode 


    in .cpp
    Qt Code:
    1. connect (obj,SIGNAL(fullscreen(int)), this, SLOT(showsfullscreen(int)));
    2.  
    3. void Four_in_a_row::showsfullscreen(int j)
    4. {
    5. qView->setResizeMode(QDeclarativeView::SizeRootObjectToView);
    6. showFullScreen();
    7. setCentralWidget(qView);
    8. }
    To copy to clipboard, switch view to plain text mode 


    this code gives me a 'fullscreen '.But I am not able to see the buttons on it.

Similar Threads

  1. cannot exit from fullscreen
    By lazycoder in forum Qt Programming
    Replies: 1
    Last Post: 7th October 2011, 06:38
  2. QGraphicsItem to fullscreen
    By medved6 in forum Qt Programming
    Replies: 2
    Last Post: 16th June 2010, 22:54
  3. QMenu bar in FullScreen
    By ppaluch in forum Newbie
    Replies: 0
    Last Post: 14th August 2009, 15:52
  4. fullscreen opengl
    By k2 in forum Qt Programming
    Replies: 4
    Last Post: 30th April 2009, 18:15
  5. Fullscreen
    By dragor in forum Qt Programming
    Replies: 1
    Last Post: 21st February 2006, 21:23

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.