Results 1 to 5 of 5

Thread: Rendering Error using FileDialog on Linux (Ubuntu 12.04)

  1. #1
    Join Date
    May 2015
    Posts
    4
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Rendering Error using FileDialog on Linux (Ubuntu 12.04)

    I have encountered an odd rendering error when trying to use FileDialog in a program that I am developing. This program currently uses Qt version 5.4.2. Before running the program, I performed a native compile on a Parallel’s Virtual Machine with the following specifications:
    • Ubuntu 12.04 using Unity Desktop Environment
    • 64-bit
    • 2 CPUs with 8 GB memory
    • 1024 MB Video Memory with 3D acceleration


    When the program first opens a FileDialog, the dialog doesn't seem to render fully
    FileDialogRenderingError_1.jpg

    Then, when you click on an item within the dialog, it adjusts to the following
    FileDialogRenderingError_2.jpg

    The directory navigation tree that is suppose to appear in the center section of the dialog remains empty, so no files or other directories can be selected. This makes the dialog completely unusable.

    I have many other dialogs within this program that seem to render just fine - it is only the FileDialog that seems to be causing me trouble.

    Does anyone have any insight into this issue? Any help would be extremely appreciated!!!!

  2. #2
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    503
    Thanks
    11
    Thanked 76 Times in 74 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Rendering Error using FileDialog on Linux (Ubuntu 12.04)

    Hi, do you open your file dialog using one of the static functions or do you construct it yourself?

    Ginsengelf

  3. #3
    Join Date
    May 2015
    Posts
    4
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Rendering Error using FileDialog on Linux (Ubuntu 12.04)

    I have been using two of the static functions, QFileDialog::getOpenFileName and QFileDialog::getSaveFileName

  4. #4
    Join Date
    May 2015
    Posts
    4
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Rendering Error using FileDialog on Linux (Ubuntu 12.04)

    Still no luck fixing this error:

    I replaced my the static function QFileDialog::getOpenFileName with the following code, and I got the same response:

    Qt Code:
    1. QFileDialog fileDialog(this);
    2. fileDialog.setFileMode(QFileDialog::ExistingFile);
    3. fileDialog.setNameFilter(tr("Script Files (*.py)"));
    4. QStringList fileNames;
    5. if (fileDialog.exec()) fileNames = fileDialog.selectedFiles();
    To copy to clipboard, switch view to plain text mode 

  5. #5
    Join Date
    Feb 2016
    Posts
    1
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Rendering Error using FileDialog on Linux (Ubuntu 12.04)

    Hi, I'm having exactly the same problem. Did you find the solution?


    Added after 1 8 minutes:


    This was a known bug and it is solved by passing the dialog the option QFileDialog:: DontUseNativeDialog, according to this link.
    Last edited by jesusdz; 5th February 2016 at 17:02.

Similar Threads

  1. Replies: 2
    Last Post: 18th November 2015, 14:57
  2. Build QT Embedded Linux Ubuntu Error ?
    By Thành Viên Mới in forum Installation and Deployment
    Replies: 0
    Last Post: 4th November 2010, 05:15
  3. Qt and hardware direct rendering on Linux
    By Vogel Ubrhar in forum Qt Programming
    Replies: 0
    Last Post: 22nd March 2010, 09:58
  4. Rendering 3D Objects on Ubuntu
    By Sandip in forum Qt Programming
    Replies: 3
    Last Post: 19th January 2009, 15:29
  5. 3D rendering on Ubuntu using QGLWidget
    By sanjayshelke in forum Qt Programming
    Replies: 2
    Last Post: 14th January 2009, 13:05

Tags for this Thread

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.