Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Closed] Is there a problem showing a window fullscreen with showFullScreen ()?
Forum Updated to NodeBB v4.3 + New Features

[Closed] Is there a problem showing a window fullscreen with showFullScreen ()?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 4.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Leon
    wrote on last edited by
    #1

    I want my application to be full screen..
    So
    @MainWindow w;
    w.showFullScreen();@

    works perfect for me.. But i see many people saying that there are some problems..
    Should i do something else? If yes tell me this.. I can see the width and height of my screen with this

    @QDesktopWidget * desk = qApp->desktop() ;
    int width = desk->width() ;
    int height = desk->height() ;@

    Then what?

    @MainWindow w;
    w.setGeometry(width,height);
    w.showFullScreen();@

    won't work with error:
    no matching function for call to 'MainWindow::setGeometry(int, int)'

    The application is intented mainly for ubuntu 12.04(+), maybe windows and maybe mac.. Never have tried the windows or mac one.. So i am just asking if showFullScreen () is a problem...

    Thanks for any answer, Leon

    1 Reply Last reply
    0
    • joborJ Offline
      joborJ Offline
      jobor
      wrote on last edited by
      #2

      I've not seen any problem with showFullScreen().

      If there is any, then the problem should be reported in the bug tracker.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lycis
        wrote on last edited by
        #3

        I personally never experienced any problems with showFullScreen() - on either Linux (Ubuntu) or Windows platforms.

        If you are seeing any problems with that function I'd use a workaround like you suggested but the function for changing the window size of your application is "QWidget::resize()":http://qt-project.org/doc/qt-4.8/qwidget.html#size-prop I'd suspect.

        1 Reply Last reply
        0
        • L Offline
          L Offline
          Leon
          wrote on last edited by
          #4

          Ok then, thanks ;)

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved