Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Event handling
Forum Updated to NodeBB v4.3 + New Features

Event handling

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 2.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kitten
    wrote on last edited by
    #1

    hi to every one
    i am trying to write a program with qt
    i create a form with my qt desigenr,it has a qwidget ,i named it calendarwidget
    then i wrote a widget with my special calendar and i add it to this qwidget with these codes

    @
    jpicker = new JalaliDatepicker(this);
    QGridLayout *layout = new QGridLayout;
    layout->addWidget(jpicker);
    ui.calendarWidget->setLayout(layout);
    @

    (JalaliDatapicker is my special calendar)
    i wrote some slots for this calendar on my constructor;
    but when i do sth to event happen it does'nt do anything?
    how can i make my program moderate its siganls on this widget?

    Edit: added the @ tags around your code as suggested below, please do that yourself next time; Andre

    www.kitten.mihanblog.com

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      Hi kitten,

      you should enclose your code section with '@' at start and at end.
      Furthermore, you should also post the parts with signal-slot handling.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goetz
        wrote on last edited by
        #3

        You should show us at least the connect statements. How should we know what's going on without that?

        http://www.catb.org/~esr/faqs/smart-questions.html

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved