Questions tagged [qtruby]

QtRuby is a cross-platform application framework Qt binding for Ruby.

58 questions
3
votes
0 answers

QtRuby painting crashing on Windows but not Linux

I'm new to QT and am having crashes on Windows 7 x64 when trying to create custom paint events. I'm using Ruby 1.9.3p125 and qtbindings-4.8.3.0-x86-mingw32. This crash does not show up when on my work machine, Redhat Linux using Ruby 1.9.2p180 and…
3
votes
1 answer

handling event in qtruby

I trying Qt with Ruby and QtDesigner but I don't understand how to handle events. I read and tried signals and slots but I don't see how I customize behavior for example if I want to trigger an action when I click on a button.
Cristhian Boujon
  • 4,060
  • 13
  • 51
  • 90
2
votes
2 answers

How can I create debian package (*.deb) from ruby application written with qt4?

I found a lot of tutorials how to build application with Ruby and Qt, but i have no idea how anybody else will be able to run it! I am using Ubuntu 11.10, ruby 1.9.2 with rvm and: rbqtapi -v output "QtRuby 2.0.5 using Qt-4.7.4" P.S. I have no idea…
user999201
  • 21
  • 1
2
votes
3 answers

How to build Qt Ruby/ruby-KDE/Qt Bindings on Windows?

Does anyone know where I can check out the latest source code of http://techbase.kde.org/Development/Languages/Ruby and how I can build it on Windows? I would like to build the latest version against Qt 4.8
denysonique
  • 16,235
  • 6
  • 37
  • 40
2
votes
1 answer

QFileSystemModel -- Detecting empty folder (with 'AllDirs' filter)?

I'm using Qt 4.6 within Ruby (via QtRuby) and am trying to make a generic Directory Selection Dialog which displays a small "loading" glyph whilst the file system is being queried and the Directory Tree (QTreeView) is being updated. UPDATE: I must…
Dr1Ku
  • 2,875
  • 3
  • 47
  • 56
2
votes
1 answer

qtbindings ubuntu install error

I try install qtbindings gem on my new virtual machine. I did everything according to the instructions on gem page, but something is wrong. I have installation errors: vagrant@machine:~$ sudo gem install qtbindings Building native extensions. This…
alexin
  • 243
  • 1
  • 15
2
votes
1 answer

Packaging and distributing a QtRuby app as a gem? Or how?

I have finished developing a GUI desktop Ruby application that uses Qt through the qtbindings gem, and I need to release it with a few requirements: The user doesn't have to build or compile anything, especially Qt libraries, installing Ruby and…
amireh
  • 700
  • 4
  • 13
2
votes
1 answer

how to get model/view working for table using qtruby?

I'm trying to figure out how to use TableView with a model using qtruby. I tried to adapt the example in C++ in the tutorial given at http://doc.qt.io/qt-5/modelview.html and came up with the code shown below. The problem is in the implementation…
varro
  • 2,382
  • 2
  • 16
  • 24
2
votes
1 answer

Qt Ruby: Creating the table and entering the data from text file dynamically

I have a text file named data.txt having various parameters such as number, status and so on. Each line contains a different set of data. Now, in my GUI, I have submit button. On click of that button, I want 'few' of these data to be displayed as a…
topjay
  • 65
  • 6
2
votes
1 answer

How do I add a combobox to first column cells in QtRuby?

I've been trying to add a simple combobox with four items to a stupid table widget cell and I still can't get it placed in the correct row and column. The best I could get was to make it show up only if I tell the combobox its parent is the table…
user5213268
2
votes
0 answers

I'm working with QtRuby and I can't open saved files with Ruby 2.2

I was trying to learn how to save and read data from Ruby binary files while working with QtRuby but Marshal version of the values saved can't be read by Ruby. I know this wouldn't have happend with TXT files but I want to work with binary not TXT…
2
votes
2 answers

Ruby's subclassing and Qt's signals/slots don't work together as expected

When trying to work with Qt's signal/slot mechanisms over more than one level of inheritance, I ran into a problem: When my class does not directly inherit from QObject, signals and slots don't seem to work any more. The output of the following…
Tom
  • 1,096
  • 1
  • 10
  • 15
2
votes
1 answer

Qtruby ListWidgetItem has blank icon after adding data

I am working on a GUI using qtruby. I have a ListWidget that I am filling with ListWidgetItems. So far these have just contained the text that I wanted to display and everything worked fine. I wanted these items to also hold some hidden data to use…
jgelderloos
  • 378
  • 4
  • 19
2
votes
1 answer

Inserting items in a Qt::TreeWidget

Using QtRuby (via qtbindings) I am trying to add items to a QTreeWidget. It says that it has a insertTopLevelItems() method, but it fails to respond to it: hier = $my.appHierarchy hier.column_count = 2 hier.header_labels = ['element', 'kind'] p…
Phrogz
  • 296,393
  • 112
  • 651
  • 745
2
votes
1 answer

QtRuby cannot create QDate to populate QDateEdit

I'm using QtRuby + Mysql2 in a project, and i'm trying to retrieve all the data I need to populate the form. First, a query is made. Then, each value is taken and used to fill each related widget. client = Mysql2::Client.new(:host => "localhost",…
Juank
  • 155
  • 3
  • 13