QtRuby is a cross-platform application framework Qt binding for Ruby.
Questions tagged [qtruby]
58 questions
24
votes
1 answer
How can I get Qt4 running with ruby 1.9.2 on Windows 7?
Summary
I'm writing a Ruby 1.9.2 app using Qt4 for its GUI which I want to distribute on Linux, OS X and Windows. I have the app running fine on everything except my Windows 7 64-bit box.
There are working examples of Win7 + Qt4 + 1.8.7, but…

Max Cantor
- 8,229
- 7
- 45
- 59
19
votes
2 answers
Does QtRuby work with Qt 5?
Everything I can find online about QtRuby uses Qt 4, but the current version of Qt is 5. Is this simply a matter of documentation not catching up with reality, where Qt 5 would work just fine with QtRuby?
If you assert that this is the case (that…

iconoclast
- 21,213
- 15
- 102
- 138
8
votes
1 answer
What are the advantages of QAbstractItemModel over QStandardItemModel?
I want to store custom data using a model. For that , am a bit confused as which item model to choose for subclassing. I need some clarification as, which is the best model to subclassing ? And also i need the advantages of QAbstractItemModel over…

Dev
- 127
- 2
- 8
7
votes
1 answer
Who developes language bindings for Qt?
Here you can see a list of third party language bindings for Qt like PySide, PyQt, QtJambi, QtRuby and PerlQt. I wanted to know who has developed these bindings?
Are they all developed with different open source communities voluntarily?
Are these…

Nejat
- 31,784
- 12
- 106
- 138
6
votes
3 answers
Worker threads in Ruby
I am writing a simple memory game using ruby + qt (trying to get away from c++ for while...)
In order to allow a X second timeout to view two open pieces, I need either timers or do the work in a background thread.
What is the simplest way of…
John
6
votes
2 answers
Ruby Qt documentation
Where can I find the documentation for ruby qt?
(ex. rdoc)

vise
- 12,713
- 11
- 52
- 64
6
votes
1 answer
QtRuby connect signals and slots with parameters/arguments
I would like to know how I can connect to a signal that take parameters (using Ruby blocks).
I know how to connect to one which does not take parameters:
myCheckbox.connect(SIGNAL :clicked) { doStuff }
However, this does not…

Jean-Luc
- 3,563
- 8
- 40
- 78
5
votes
1 answer
Ruby, Qt and third party widgets
I'm learning Ruby and, for this, I'm writing an application in it. My background is in C++/Qt. So I've started writing a Ruby/Qt app.
But there's a few previously written widgets (C++) I would like to use, besides qwt.
Is this possible? If it is,…

Vitor Py
- 5,145
- 4
- 39
- 62
3
votes
1 answer
QtRuby with DRb or EventMachine
I would like to write an application in Ruby using Qt which will communicate over the network with other instances.
How can I integrate Qt's event loop with DRb or EventMachine?
EDIT:
I found the answer when I will have more time I will post it

denysonique
- 16,235
- 6
- 37
- 40
3
votes
3 answers
Display an icon before text in a QTreeView
I'm using QtRuby with Qt 4.8.6 and trying to create a tree view where each item has a custom icon between the tree controls and the name. The end result should be like this:
I am getting space allocated for where the icon…

Phrogz
- 296,393
- 112
- 651
- 745
3
votes
2 answers
Ruby: creating a simple application in Qt
I'm trying to create a simple application, written in Ruby via Qt. I designed a form (MainForm) in a Qt Designer and translated it via rbuic4 to the Ruby code representation. The pure untouched result has four methods, and looks like this:
=begin
**…

oldhomemovie
- 14,621
- 13
- 64
- 99
3
votes
2 answers
Setting up a Qt::MainWindow
So I'm 100% new to ruby qt, I'm used to python, and I got the basics but because the QMenuBar wont align properly with just Qt::Widget I have been trying to figure out the QMainWindow command. I know its like 1000% easy the second you tell me but…

Max Iglehart
- 51
- 2
3
votes
1 answer
QtRuby on OSX restore minimized window on timer
I'm writing a time logging application using QtRuby on OSX. It is important that it periodically reminds users (my team) to log their time, preferably by coming to the foreground (unminimizing, if necessary). This is very un-mac-like, so I would…

Luke Rohde
- 261
- 3
- 14
3
votes
0 answers
qt-ruby and custom widgets on QGraphicsScene
Im using qt-ruby and i want to add an Widget to the QGraphicsScene, using addWidget().
In return, I get an QGraphicsProxyWidget.
Later, when the user clicks the GraphicsScene, use itemAt() to find the Widget that was clicked. But itemAt() returns an…

user1873723
- 31
- 1
3
votes
2 answers
Why am I getting a segmentation fault (qtruby)?
I've been having an issue with segmentation faults when accessing a class variable (an array of Qt::Actions), and I've been trying to whittle it down to a minimal code example that replicates the issue:
#!/usr/bin/ruby
require 'Qt4'
require…

Vala
- 5,628
- 1
- 29
- 55