Questions tagged [custom-widgets]

131 questions
3
votes
2 answers

What is correct way to pass on event parameter in DOJO?

I am working on Dojo Version 1.8.I have designed one custom widget as below. Its a snippet
3
votes
2 answers

Move QGraphicsItem only when pressing inside the shape. Otherwise, drag scene

I have a QGraphicsView with a bigger QGraphicsScene that can be dragged. In the QGraphicsScene I have a subclassed QGraphicsItem (TestItem) that displays a QGraphicsPixmapItem, which can have random shapes. (I don't use QGraphicsPixmapItem directly…
3
votes
1 answer

Qt Designer Custom Widget: using flags

I have a problem with the declaration of flags in a widget which is used as a custom widget for QtDesigner. This widget is a QComboBox using a filter proxy model, called QgsMapLayerComboBox In the filter proxy model (QgsMapLayerProxyModel), I have…
Denis Rouzaud
  • 2,412
  • 2
  • 26
  • 45
3
votes
2 answers

Scale, Translate and Rotate ImageView with border in android

Does anyone have an idea how to make imageview can Scale, Translate and Rotate with button control in it I already try translate and scale imageview using matrix but i can't implement it when it's have 2 imageview and still doesn't have an idea how…
3
votes
2 answers

Custom QDialog causes segfault upon exec()

I have a program that essentially consists of a central QMainWindow and a member QToolbar pointer. One action on this toolbar has its triggered signal connected to a ShowNodeEditBox() slot, which instantiates and attempts to exec a custom…
norman
  • 5,128
  • 13
  • 44
  • 75
3
votes
1 answer

GtkScrolledWindow container sends its child a size allocation with a negative coordinate

I'm porting a custom Gtk+ widget from Gtk2 to Gtk3, and I'm observing that with the latter, I'm getting size_allocation calls from the parent widget (a GtkScrolledWindow) which have an allocation with a negative Y coordinate. This causes my widget…
knocte
  • 16,941
  • 11
  • 79
  • 125
3
votes
2 answers

In GWT, How to use custom widget tag in an .ui.xml file with and without parameters for the tag in the same file

I am creating a custom widget, say "CustomWid" in UiBinder. And in CustomWid.java file I am writing two constructors one with zero args like CustomWid(){....} another with some args like CustomWid(String a,String b){......} So,Now I am…
Azeez
  • 318
  • 3
  • 14
3
votes
2 answers

Connecting slider to Graphics View in PyQt

I'm trying to display image data read in from a binary file (I have the code written for retrieving this data from a file and storing it as an image for use with QImage() ). What I would like to do is connect a slider to a Graphics View widget so…
Victoria Price
  • 637
  • 3
  • 13
  • 26
2
votes
2 answers

Is it possible to disable specific XML attributes from a custom view in Android?

I'm creating my own personalized ListView by extending the ListView itself. This particular ListView shouldn't have scrollbars. How can I disable the XML android:scrollbars attribute for my custom ListView? I can't find a way to disable them…
rfgamaral
  • 16,546
  • 57
  • 163
  • 275
2
votes
0 answers

QTableWidget - setCellWidget

I try to insert a custom widget into a QTableWidget using the setCellWidget function void QTableWidget::setCellWidget ( int row, int column, QWidget * widget ) My problem is now, that the paint method of the custom widget isn't called. Anyone knows…
2
votes
1 answer

Custom LinearLayout width - weight placing problem

I asked another questıon and after, I continued to this problem... Firstly My first Question: how to Custom Button (has two TextFields) on Android I extended a class form LinearLayout, and I add two buttons in it(width- fill_parent, weight-1). But…
2
votes
1 answer

How to make the signals of child widgets inside a custom widget connectable?

I think I have some major problem with a concept that seems pretty basic to me. I created a custom widget, which is actually just a small collection of widgets, which, as such, would appear several times. class CustomWidget : public QWidget { …
LCsa
  • 607
  • 9
  • 30
2
votes
1 answer

How can I make Qt use a user-defined class?

I'd like to user a user-defined class rather Qt's generated in the Ui_MainWindow class so that I can use that control on Qt's GUI Designer. For example, currently it's defined as this: class Ui_MainWindow { public: QPlainTextEdit *list; //…
Jack
  • 16,276
  • 55
  • 159
  • 284
2
votes
0 answers

Custom Widget PyQt

I am trying to create a custom widget and adding it to a listwidget following the example here but used a widget as here(Answer) instead of the progress bar. The custom widget works fine independently. But when it is added to the list widget, the…
Newbieee16
  • 43
  • 5
2
votes
1 answer

Custom widgets are not showing in the cq:dialog for touch ui

Hi I am working on touch ui, and converting the dialogs (page properties, dialog etc) into cq:dialog, normal cq widgets are getting converted automatically using the convertor tool. We have many custom widgets which we are calling in the dialogs for…
Sandeep Rawat
  • 260
  • 1
  • 4
  • 12
1
2
3
8 9