Questions tagged [custom-widgets]

131 questions
2
votes
2 answers

Web2py: Access row from custom widget

In web2py custom widgets get field description and value as arguments, while represent functions get value and table row. Is it possible to pass row to a custom widget function? I need to access other columns of the same row. I use rows inside…
user174916
  • 97
  • 8
2
votes
1 answer

event callback does not get executed in custom gtk3 widget

Currently trying to create a custom widget which is based directly on GtkWidget, marks it as drawable and draws content with cairo. So much for the context. As soon as I try to handle events (so I can implement zoom) - especially the scroll event -…
drahnr
  • 6,782
  • 5
  • 48
  • 75
2
votes
0 answers

Dynamically add instance inherited from QWidget

I have already searched for similar questions but couldn't find anything related to this particular problem. If somebody has any idea, it would be very appreciated. :) I am working on a image annotation tool (the annotation is made of landmarks to…
Luiz Vieira
  • 570
  • 11
  • 35
2
votes
1 answer

How to create WordPress widget using custom menu select

I'm creating a custom widget for WordPress but am wanting to use the same select menu as the default Custom Menu widget does. So far what I have works except the selected menu isn't being saved or displayed on the frontend. Any help or direction…
gstricklind
  • 464
  • 2
  • 6
  • 17
2
votes
1 answer

Access custom qtdesigner plugin's child widget from qtdisgner

I made a custom QtDesigner plugin. It loads well in QtDesigner, I can use it in a .ui file and it works fine in the executable. My only concern is that, when using the plugin in another widget, I can't change the values of the plugin's child…
ibizaman
  • 3,053
  • 1
  • 23
  • 34
2
votes
1 answer

How to create a custom date time widget for the django admin?

My Problem: I have a model that accepts DateTimeField. The user enters this from the django-admin. But, I cant get a way to get the user's local timezone. So my best shot is forcing the user to enter the date-time in UTC. But for the users…
Indradhanush Gupta
  • 4,067
  • 10
  • 44
  • 60
2
votes
1 answer

Django custom widget to split an IntegerField into hours and seconds fields in a Model Form

I am storing time duration as minutes in an IntegerField. In my front end form (Model Form), I want to split the input into one field for minutes and one field for hours. I also want to be able to use the InLineFormset. Can this be done in a nice…
LordNelson
  • 123
  • 1
  • 9
1
vote
1 answer

Header always shows in android-pulltorefresh when customize

I was trying to customize android-pulltorefresh library developed by Johan Nilson. I wanna use my own adapter rather than a String array. I was able to complete almost every thing but the pull to refresh header is always visible. (see the image) I…
Chrishan
  • 4,076
  • 7
  • 48
  • 67
1
vote
0 answers

Build an elementor widget that uses CPT categories

Good morning I'm building a custom Elementor (free) widget to display a masonry gallery on the site. I need a way to load the category list for my custom post type called "opera". I'm currently listing all categories manually, like…
Simone Conti
  • 349
  • 1
  • 17
1
vote
2 answers

Qt LineEdit boundires

I have a QLineEdit which I have place a QPixmap on and at the end of the LineEdit. Is there a way where I can tell the LineEdit where to consider the end of the widget so that text is not drawn on top of the picutre? All good the answer is…
user174084
  • 1,087
  • 3
  • 14
  • 23
1
vote
0 answers

How to add Custom Elementor Divider widget in WordPress

I'm creating a custom Elementor widget, I want to add a Vertical line in my widget in between two text. So I have added a Divider control inside the custom widget and this divider should be customized by the User (the width and the height based on…
san_techie
  • 11
  • 4
1
vote
2 answers

Flutter widget wrapped inside custom widget

I have a custom widget named CustomBox: class CustomBox extends StatelessWidget { @override Widget build(BuildContext context) { return Padding( padding: const EdgeInsets.fromLTRB(15, 15, 15, 15), child: Container( …
Tobias H.
  • 426
  • 1
  • 6
  • 18
1
vote
1 answer

Qt Creating Custom Widget With UI Form

I want to create custom widget with ui form, but if I add ui form to the widget, it is not showing when building widget. Shortly, I want to add one button and one textedit into a ui form, and create a custom widget with that, is there an example…
1
vote
1 answer

Flutter how to programmatically call method in custom widget?

I'm new to Flutter and I've hit my first roadblock while trying to make a custom switch. My switch should functionally work the same like the actual Switch from the material library, the only difference is the UI. I'm using ValueNotifier and…
bunbunn
  • 53
  • 8
1
vote
0 answers

UIC generated header file does not recognize path to include custom widget header

I made a custom widget plugins library for Qt 5 and it was working fine till I upgraded my OS (to ubuntu 19.04). In current version (5.12) UIC can not generate the ui_ header file... Makefile declares custom widget header as a dependency for the cpp…
sorush-r
  • 10,490
  • 17
  • 89
  • 173
1 2
3
8 9