Questions tagged [qtruby]

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

58 questions
1
vote
1 answer

Updating a QGraphicsTextItem on text change

I’ve been working with QGraphicsTextItem. I currently have the laid out in a scene, each depicting a physical page of text. Right now I’m overriding the keyReleaseEvent function to redistribute the text typed across all of the pages. The problem…
icco
  • 3,064
  • 4
  • 35
  • 49
1
vote
3 answers

How to paginate a QPlainTextEdit?

I've been using QPlainTextEdit for editing text in our application. Recently it was decided that we need to display the text in a paginated format instead of a consistent block of text. After lots of research, I've come to the realization that while…
icco
  • 3,064
  • 4
  • 35
  • 49
1
vote
2 answers

Qt : Reading the text file and Displaying in LineEdit

I have an input file and a batch file. When the batch file is executed using the System command, a corresponding outfile is generated. Now I want a particular text (position 350 to 357) from that outfile to be displayed on to my lineedit widget…
topjay
  • 65
  • 6
1
vote
0 answers

Dropdown Menu and its action

I have a dropdown menu with around 5-6 items in it. require 'Qt' class Auth < Qt::Widget entryIndex = $entryIndex slots 'slotFunctionChanged(int)' def initialize(parent=nil) super(parent) setWindowTitle("Action"); setFixedSize…
topjay
  • 65
  • 6
1
vote
1 answer

Widget should show or hide based on option chosen in drop down menu

I have a dropdown menu with around 5-6 items in it. I want other widgets to appear in the same window when I select the particular option in the ComboBox. For example: when I chose "1-Standard" in the ComboBox, the widget defined in acc_ui has to…
topjay
  • 65
  • 6
1
vote
0 answers

QtRuby: Check Box not toggling

I have created a Checkbox with label AVS . When I click the checkbox, I need the below block of code to be executed. I am neither getting any error, nor is the toggle working. require 'Qt' class Auth < Qt::Widget slots 'on_toggled(bool)' def…
rsram312
  • 31
  • 1
1
vote
1 answer

QtRuby: Stack Level too deep (SystemStackError)

I have the following code: require 'qt' class Menu < Qt::Widget slots 'on_clicked_uAuth()' slots 'quit()' def initialize(parent = nil) super(parent) setWindowTitle "Menu" uAuth_ui exit_ui resize 350, 500 move 300,…
rsram312
  • 31
  • 1
1
vote
1 answer

Qt/Ruby Application Crash in Qt::AbstractItemModel::mimeData - How to find and fix the cause?

Recently I wrote a little application using Ruby and Qt. It was my first non-trivial project with qtruby. After some time I managed to translate C++ references and tutorials into working Ruby code, and got the hang of it. Only when implementing my…
bogl
  • 1,864
  • 1
  • 15
  • 32
1
vote
1 answer

QtRuby InputDialog with default text

With QtRuby, is it possible to create an input dialog that already has a value in the text box?
Anthony DeSimone
  • 1,994
  • 1
  • 12
  • 21
1
vote
1 answer

qtruby draw picture point by point

Hi I'm trying to write BMP reader writer in ruby and now i'm stuck on write it on screen. I have picture stored in pixels array and on every pixel is stored rgb color. But nothing happens in in window? What I'm doing wrong? Or is there any qt object…
zajca
  • 2,288
  • 4
  • 30
  • 40
1
vote
1 answer

Missing QStackedWidget on Ruby

I'm trying to get Qt on Ruby to work, but I have problem with QStackedWidget - it seems missing on Qt4 for Ruby. This code: self.stacked_widgets = Qt::QStackedWidget.new(self) causes: uninitialized constant Qt::QStackedWidget (NameError) Is there…
deha
  • 805
  • 8
  • 29
0
votes
4 answers

How to access Postgresql using Qt in Windows

I am developing an application using QtRuby and PostgreSQL. I successfully developed and running successfully in Linux. Now i want to run the same application in windows. But I am failing to connect to database(postgresql). I am getting the…
dummystories
-1
votes
1 answer

Qt QLineEdit custom validation in ruby

I am trying to implement QLineEdit's text which is all capital letters no matter what user types in. I have found several solutions, none of them working in Ruby. In brief I have QLineEdit object searchEdit and this code: class UpcaseValidator <…
gorn
  • 5,042
  • 7
  • 31
  • 46
1 2 3
4