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. QInputDialog warning?
Forum Updated to NodeBB v4.3 + New Features

QInputDialog warning?

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 4 Posters 686 Views 3 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.
  • MucipM Offline
    MucipM Offline
    Mucip
    wrote on last edited by
    #1

    Hi,
    I use QInput dialog in below code:

    bool ok;
            QString grupAd = QInputDialog::getText(this, "Ana Grup Girişi?",
                                               "Ana Grup Adını Girin", QLineEdit::Normal,"", &ok);
            
            
            if (ok)
            {
    
            }
    

    But application Output like belov. Why?..

    QWindowsWindow::setGeometry: Unable to set geometry 120x30+604+286 (frame: 136x69+596+255) on QWidgetWindow/"QInputDialogClassWindow" on "\.\DISPLAY1". Resulting geometry: 220x90+604+286 (frame: 236x129+596+255) margins: 8, 31, 8, 8 minimum size: 220x90 maximum size: 524287x90 MINMAXINFO maxSize=0,0 maxpos=0,0 mintrack=236,129 maxtrack=524303,129)

    Regards,
    Mucip:)

    1 Reply Last reply
    0
    • mranger90M Offline
      mranger90M Offline
      mranger90
      wrote on last edited by
      #6

      I can make that warning go away on windows by adding to the windows flags parameter:

      ... &ok, this->windowFlags() | Qt::MSWindowsFixedSizeDialogHint);
      
      MucipM 1 Reply Last reply
      1
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #2

        Hi,

        What version of Qt ?
        What OS ?
        Likely Linux, if so:
        -what distribution ?

        • what desktop environnement ?
        • what window manager ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        MucipM 1 Reply Last reply
        0
        • SGaistS SGaist

          Hi,

          What version of Qt ?
          What OS ?
          Likely Linux, if so:
          -what distribution ?

          • what desktop environnement ?
          • what window manager ?
          MucipM Offline
          MucipM Offline
          Mucip
          wrote on last edited by
          #3

          Hi @SGaist ,
          You're completely right. I'm very sorry...
          I'm using Qt 5.13.2.
          On win10 unfortunately :)

          Regards,
          Mucip:)

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #4

            Virtual Machine ?
            If not, what graphic hardware are you using ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            MucipM 1 Reply Last reply
            0
            • SGaistS SGaist

              Virtual Machine ?
              If not, what graphic hardware are you using ?

              MucipM Offline
              MucipM Offline
              Mucip
              wrote on last edited by
              #5

              Hi @SGaist ,
              No. I'm programing now on laptop not wirtual machine.
              GeForce 920M.

              Regards,
              Mucip:)

              1 Reply Last reply
              0
              • mranger90M Offline
                mranger90M Offline
                mranger90
                wrote on last edited by
                #6

                I can make that warning go away on windows by adding to the windows flags parameter:

                ... &ok, this->windowFlags() | Qt::MSWindowsFixedSizeDialogHint);
                
                MucipM 1 Reply Last reply
                1
                • mranger90M mranger90

                  I can make that warning go away on windows by adding to the windows flags parameter:

                  ... &ok, this->windowFlags() | Qt::MSWindowsFixedSizeDialogHint);
                  
                  MucipM Offline
                  MucipM Offline
                  Mucip
                  wrote on last edited by
                  #7

                  Hi @mranger90 ,
                  It worket for me. Thanks...

                  Regards,
                  Mucip:)

                  1 Reply Last reply
                  0
                  • FriendOfQtF Offline
                    FriendOfQtF Offline
                    FriendOfQt
                    wrote on last edited by
                    #8

                    Unfortunately the flag Qt::MSWindowsFixedSizeDialogHint does not allow to change the dialog size in horizontal direction.
                    Is there any other possibility to get rid of this warning without adding the flag Qt::MSWindowsFixedSizeDialogHint?
                    Thanks for your continued help...

                    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