×

Discussion Board

Results 1 to 3 of 3

Hybrid View

  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    95

    Unhappy problem in the Qt QComboBox!

    hi there;
    we have a problem in the QComboBox, when we localize our program then we click on any combobox a dialog is opened containing
    the items in the combobox localized very well but the title of this dialog is not localized.

    is there any way to localize the title of this dialog ?

    thank you,

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

    Re: problem in the Qt QComboBox!

    Code:
    #include <QApplication>
    #include <QMainWindow>
    #include <QComboBox>
    
    int main(int argc, char* argv[])
    {
        QApplication app(argc,argv);
    
        QComboBox *combo = new QComboBox;
        combo->addItem("item1");
        combo->addItem("item2");
        combo->addItem("item3");
        combo->addItem("item4");
    
        QMainWindow w;
        w.setCentralWidget(combo);
        w.show();
    
        return app.exec();
    }

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

    Re: problem in the Qt QComboBox!

    It shows either localized string "Select option" string or in case the browser localization package is missing, then it shows binary name (exactly the case in the originating post)
    http://qt.gitorious.org/+qt-develope...x.cpp#line2497

Similar Threads

  1. kinetic scrolling
    By stalep in forum Nokia N9
    Replies: 10
    Last Post: 2009-12-08, 12:41

Posting Permissions

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