Results 1 to 3 of 3

Thread: QInputDialog

  1. #1
    Join Date
    Oct 2006
    Posts
    5
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default QInputDialog

    Hi. I'm new to Qt, and I'm making a small app with Ruby and QT3.

    I can't get QInputDialog to work. My program has this statement:

    newdir = QInputDialog.getText(\
    self.trUtf8("New Playlist"),
    self.trUtf8("Name of Playlist :"),
    QLineEdit.Normal)

    The statement is found in a slot in a subclassed form, and Ruby issues an errormessage about uninitialized constant referring to QInputDialog. I believe this means Ruby does not know about QInputDialog. I have obviously misunderstood something. Can anyone help?

    I use the KDE Ruby bindings Korondum.

    Regards,Bjorn

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

  3. #3
    Join Date
    Oct 2006
    Posts
    5
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: QInputDialog

    Quote Originally Posted by jacek View Post
    Thanks!!!

    This works:

    newdir = Qt::InputDialog.getText(\
    self.trUtf8("New Playlist"),
    self.trUtf8("Name of Playlist :"),
    Qt::LineEdit.Normal)

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.