Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. FileDialog issue

FileDialog issue

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
9 Posts 4 Posters 2.2k 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.
  • A Offline
    A Offline
    Apeksha
    wrote on last edited by
    #1

    Hi,

    I am using filedialog, its working fine but when I am trying to open filedialog it was opening whole screen and open and cancel buttons were not coming.
    I am trying it for linux .O.S details are as follows:
    Linux zcu102_base_trd 4.9.0 #5 SMP aarch64 GNU/Linux
    Can anyone please help me.
    Thanks in advance

    1 Reply Last reply
    0
    • Vinod KuntojiV Offline
      Vinod KuntojiV Offline
      Vinod Kuntoji
      wrote on last edited by
      #2

      @Apeksha ,

      Please show the sample code.

      C++, Qt, Qt Quick Developer,
      PthinkS, Bangalore

      A 1 Reply Last reply
      1
      • Vinod KuntojiV Vinod Kuntoji

        @Apeksha ,

        Please show the sample code.

        A Offline
        A Offline
        Apeksha
        wrote on last edited by
        #3

        @Vinod-Kuntoji
        Button{
        id:filebutt
        FileDialog {
        id: saveFileDialog
        title: qsTr("Save to ...")
        onRejected: {
        console.log("Canceled")
        }
        onAccepted: {
        console.log("File selected: " + fileUrl)
        }
        }
        onClicked: {
        saveFileDialog.open()
        }
        }

        JonBJ 1 Reply Last reply
        0
        • A Apeksha

          @Vinod-Kuntoji
          Button{
          id:filebutt
          FileDialog {
          id: saveFileDialog
          title: qsTr("Save to ...")
          onRejected: {
          console.log("Canceled")
          }
          onAccepted: {
          console.log("File selected: " + fileUrl)
          }
          }
          onClicked: {
          saveFileDialog.open()
          }
          }

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by JonB
          #4

          @Apeksha
          This is purely a speculative guess (and assuming your own code is not setting a "full screen" attribute on the dialog). The QFileDialog will be using the Linux/desktop manager native Open File Dialog. I have no idea whether it works this way under Linux, but is it possible that the last time you opened its File Dialog somewhere (even in another application) you full-sized it and it's remembering that last setting?

          1 Reply Last reply
          2
          • Vinod KuntojiV Offline
            Vinod KuntojiV Offline
            Vinod Kuntoji
            wrote on last edited by
            #5

            @Apeksha ,

            I tried your code in windows. It is working fine and file dialog is showing open and cancel buttons.

            C++, Qt, Qt Quick Developer,
            PthinkS, Bangalore

            A 1 Reply Last reply
            1
            • Vinod KuntojiV Vinod Kuntoji

              @Apeksha ,

              I tried your code in windows. It is working fine and file dialog is showing open and cancel buttons.

              A Offline
              A Offline
              Apeksha
              wrote on last edited by
              #6

              @Vinod-Kuntoji

              I windows it's working fine,i have said it's getting issue in Linux OS.
              OS details as follows:
              Linux zcu102_base_trd 4.9.0 #5 SMP aarch64 GNU/Linux

              1 Reply Last reply
              0
              • A Offline
                A Offline
                Apeksha
                wrote on last edited by
                #7

                Hi,

                Can anyone please post custom file dialog source code?

                Thanks in advance.

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  Apeksha
                  wrote on last edited by
                  #8

                  Hi,

                  Anyone please help me

                  thanks in advance

                  P 1 Reply Last reply
                  0
                  • A Apeksha

                    Hi,

                    Anyone please help me

                    thanks in advance

                    P Offline
                    P Offline
                    Praveen_2017
                    wrote on last edited by
                    #9

                    @Apeksha Can you post a screenshot of your issue?

                    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