×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    118

    file dialog on n900

    i want to complete a file-dialog on n900, Qt had a file-dialog already, but i use it on n900, very uncomfortable,
    i want to know , does there have some public functions on 900 to complete a file-dialog which looks like maemo device to show us??

  2. #2
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: file dialog on n900

    QFileDialog is using native dialogs by default (parameter options)
    http://doc.trolltech.com/4.6/qfiledi...etOpenFileName

  3. #3
    Registered User
    Join Date
    Mar 2009
    Posts
    118

    Re: file dialog on n900

    Quote Originally Posted by divanov View Post
    QFileDialog is using native dialogs by default (parameter options)
    http://doc.trolltech.com/4.6/qfiledi...etOpenFileName

    yes, i had used QFileDialog , but it looks not very nice on maemo, because QFileDialog was too big to fit maemo's screen. all the button crowded the dialog.
    does there have something else??

  4. #4
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: file dialog on n900

    Please report SW build you are using (Settings -> About product), make a screenshot of a file dialog (use screenshot-tool screen.png) and attach code snippet showing how do you use QFileDialog.

    Test application:
    Code:
    #include <QApplication>
    #include <QString>
    #include <QFileDialog>
    #include <QDebug>
    
    int main(int argc, char *argv[])
    {
        QApplication app(argc, argv);
    
        QString out_file_name;
        out_file_name = QFileDialog::getSaveFileName(0, QObject::tr("QFileDialog"),
                             QDir::currentPath() + "/File.jpg",
                             QObject::tr("Images (*.jpg);;All files (*)"), 0,
                             QFileDialog::DontUseNativeDialog);
    
        qDebug() << out_file_name;
    
        out_file_name = QFileDialog::getSaveFileName(0, QObject::tr("Native Dialog"),
                             QDir::currentPath() + "/File.jpg",
                             QObject::tr("Images (*.jpg);;All files (*.*)"));
    
        qDebug() << out_file_name;
    
        return 0;
    }
    Last edited by divanov; 2010-03-17 at 13:39. Reason: attaching test application

Similar Threads

  1. [Announce] pygame for S60 for PyS60 1.9.x
    By GameDude in forum Symbian
    Replies: 57
    Last Post: 2011-02-21, 23:18
  2. Select multiple file dialog?
    By foosion in forum Symbian
    Replies: 2
    Last Post: 2009-09-21, 12:31
  3. Carbide Build PKG file to SISX - Phone says: "Can't Install"
    By mikedeklerk in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 6
    Last Post: 2009-05-19, 08:23
  4. [split] mbm build error
    By mando222 in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2009-03-29, 12:32
  5. Help needed with a 3gp file...
    By joedoe_1981 in forum Streaming and Video
    Replies: 0
    Last Post: 2007-07-18, 18:58

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×