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. hi Please me out
Forum Updated to NodeBB v4.3 + New Features

hi Please me out

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 325 Views
  • 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.
  • M Offline
    M Offline
    Mantu
    wrote on last edited by
    #1

    I am new to QT. actually,i developed a application. the problem is my application should run in different desktop.so, for that i want to set auto resize the GUI based on Desktop screen size. Is there any function in QT to auto resize the GUI? Thanks in Advance!!!

    jsulmJ JoeCFDJ 2 Replies Last reply
    0
    • M Mantu

      I am new to QT. actually,i developed a application. the problem is my application should run in different desktop.so, for that i want to set auto resize the GUI based on Desktop screen size. Is there any function in QT to auto resize the GUI? Thanks in Advance!!!

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Mantu said in hi Please me out:

      Is there any function in QT to auto resize the GUI?

      Yes, see https://doc.qt.io/qt-6/layout.html
      And please write meaningful titles.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • M Mantu

        I am new to QT. actually,i developed a application. the problem is my application should run in different desktop.so, for that i want to set auto resize the GUI based on Desktop screen size. Is there any function in QT to auto resize the GUI? Thanks in Advance!!!

        JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by JoeCFD
        #3

        @Mantu
        for full screen:
        QRect rec = QGuiApplication::screens().at( 0 )->geometry();
        your_window->resize( QSize( rec.width(), rec.height() ) );
        If it is what you need, it still can not solve your issue while you may need to scale other widgets. And this can be tricky.

        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